-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.2
-
Any
-
MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-52766-master-mnet-url-length -
-
PHP file: /admin/mnet/peers.php
Moodle: 3.0.2
Build: 20160111
MNet is enabled. I wanted to add a new peer.
When adding a peer to:
Administration -> Site Administration -> Networking -> Manage Peers
the Hostname entered is truncated after clicking on "Add host".
Result is that the Public Key for the peer is shown but the URL does not match the URL retrieved, resulting in the error message:
The key is not a valid SSL key. (4: The subject of the certificate:
http://xxx-xx-x-x-x.xx-xxxx-x.compute.amazonaws.com/abcdefgh
does not match the host it came from:
http://xxx-xx-x-x-x.xx-xxxx-x..compute.amazonaws.com/abcdefghi.
)
URL length in use was more than 64 characters long.
I couldn't tell if the URL from the target peer was being truncated or if the URL entered into the local Moodle was being truncated.
Changing the URL of the target peer (an MNet hub) to something shorter resulted in the error message not appearing any more.
I assume that there must be a limit to URL length somewhere in this process.