Last modified: 2011-09-22 00:37:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32041, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30041 - "You have entered an invalid IP address for Memcached: localhost."
"You have entered an invalid IP address for Memcached: localhost."
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-24 21:37 UTC by Brion Vibber
Modified: 2011-09-22 00:37 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2011-07-24 21:37:41 UTC
When setting up a new wiki on trunk (as of r93014), I put in for the Memcached config option "localhost:11211" to use my local memcached instance.


On submission, I got kicked back to the top of the same form with this error:

"You have entered an invalid IP address for Memcached: localhost."


In addition, some glitches in the page state:
* lost selections from the extension checkboxes
* caching subform shows off, instead of memcached which I last left it at. (reselecting it shows the localhost:11211 line I had put in before, so the data's still there)

Changing it to "127.0.0.1:11211" resolves this for me, but it sounds like the installer is trying to validate the host portion of memcached lines as raw IP addresses *only*. It's perfectly legit to use hostnames here.
Comment 1 Brion Vibber 2011-09-21 23:57:25 UTC
Bug introduced in r82687 for bug 25855.

Switching it to try resolving a hostname should be easy -- on it :D
Comment 2 Brion Vibber 2011-09-22 00:12:40 UTC
r97772 adds a gethostbyname() check if there is something but it's not an IP address; it now passes through 'localhost:11211' and anything else in your DNS or hosts, but will still reject things that can't be resolved to protect against misspells.

The memcached selection is still missing on the next page load...
Comment 3 Brion Vibber 2011-09-22 00:37:05 UTC
r97774 fixes the radio button initial value when coming back to the page via validation check or 'back', and makes sure that the memcached server textarea fold-out is initially shown if memcached is selected.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links