snapweb URL display error msg "Forbidden" if IP address changed
Bug #1693456 reported by
Darren Wu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapweb |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Test steps:
1. Unplug ethernet cable and make sure the IP address is not obtained.
2. Restart snapweb
$ sudo systemctl restart snap.snapweb.
3. Plug ethernet cable and make sure the IP address is obtained.
4. Access snapweb, eg. http://
Expected result:
Can access snapweb interface.(At step4, it can access the URL completed)
Actual result:
Cannot browse URL and display the error msg of "Forbidden".
The snapweb version:
0.26.1
To post a comment you must log in.
From the snapweb source code: /github. com/snapcore/ snapweb/ blob/master/ cmd/snapweb/ handlers. go#L374
https:/
snapweb would update the local network interfaces with allowNetwork ip when initURLHandlers() function, but it would run only one shot. It seems not update allowNetwork IP if interface IP address changed.