mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #01321
[Bug 618509] Re: XMLRPC link to hosts with underscores in hostname fails
Hi Nathan,
I've tried to replicate this issue but am having trouble in doing so. I've tried both on HEAD and 1.2.5_RELEASE in case this bug had already been fixed elsewhere.
I've tried connecting from moodle_badhostname.local to mahara.local with no issue
When I tried setting up networking from moodle_badhostname.local to
mahara_badhostname.local, Moodle reports an 'Invalid URL parameter'
error so I've not been able to verify this.
Any chance you could give more information on how you hit the errors? It
would be handy to know what you're networking from and to, and at what
point you see the error. Also, what version of the remote app (e.g.
Moodle) would be handy as it may be that the version of Moodle I'm
running prevents me from getting to your scenario.
I believe that the errors will be coming from api/xmlrpc/server.php at line 75 (HEAD) where the hostname visited is compared against the hostname in the wwwroot variable. If so, then the current error message is:
'Networking is not available at this address. You can access this service at'
There are only two other times that get_hostname_from_uri is called:
* lib/peer.php in the bootstrap function
* api/xmlrpc/lib.php in generate_keypair - but this isn't actually used any more.
It could be the bootstrap, but again I wouldn't expect an unknown error
- the exception message is 'Could not find IP address for host: .....'.
--
XMLRPC link to hosts with underscores in hostname fails
https://bugs.launchpad.net/bugs/618509
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Status in Mahara ePortfolio: Invalid
Bug description:
When establishing an XMLRPC connection to a network peer that has an underscore in the hostname an unknown error is thrown.
The get_hostname_from_uri function in api/xmlrpc/lib.php is the cause of the problem. The regular expression (~line 47) does not cater for underscores...
Version is 1.2.5, OS is Windows and database is PostgreSQL.
References