History | Log In     View a printable version of the current page.  
We are currently focused especially on Moodle 2.0, Moodle 1.9.x bugs and Moodle 1.9.x testing.    Confused? Lost? Please read this introduction to the Tracker.
Issue Details (XML | Word | Printable)

Key: MDL-15008
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Howard Miller
Reporter: Jerome Mouneyrac
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Moodle

If wwwroot has been changed in config.php, networking (mnet) will not work

Created: 27/May/08 03:00 PM   Updated: 05/Aug/08 02:33 PM
Component/s: Networking
Affects Version/s: 1.9.1
Fix Version/s: 1.9.3

File Attachments: 1. Text File mnet_environment.diff (1 kb)

Environment: WAMP + Vista
Issue Links:
Duplicate
 

Participants: Howard Miller, Jerome Mouneyrac and Luke Hudson
Security Level: None
QA Assignee: Jerome Mouneyrac


 Description  « Hide
I edited my wwwroot in moodle/config.php ($CFG->wwwroot )
Then I tried to use networking (http://docs.moodle.org/en/Moodle_Network), but when I try to connect to a remote Moodle I've got an error "Payload is not encrypted".

The bug comes from that the wwwroot hasn't been changed in the database (table: mnet_host)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Luke Hudson - 28/May/08 05:10 AM
I've seen this recently as well. Also, the IP needs to be correct, and the host key will need to be regenerated.

For a fix, I would suggest that when the host key is updated, that the wwwroot and IP are updated by the code too.

I will make a patch if I have a spare moment today..

Cheers,
- Luke

Luke Hudson - 29/May/08 12:47 PM
Patch which updates the wwwroot and ip_address whenever the key is deleted.

Howard Miller - 31/Jul/08 11:04 PM
Applied patch to 1.9 branch. It was already in 2.0! Anyway, should work now :-)

Jerome Mouneyrac - 05/Aug/08 02:33 PM
Tested on 1.9. I change the wwwroot, setup the networking, it's working fine.
Thanks for your participation/fixes.