snapweb URL display error msg "Forbidden" if IP address changed

Bug #1693456 reported by Darren Wu
6
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.snapweb.service
3. Plug ethernet cable and make sure the IP address is obtained.
4. Access snapweb, eg. http://xxx.xxx.xx.xx:4200

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

Revision history for this message
Darren Wu (musicguitar) wrote :

From the snapweb source code:
https://github.com/snapcore/snapweb/blob/master/cmd/snapweb/handlers.go#L374

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.

Revision history for this message
Darren Wu (musicguitar) wrote :

This bug sometimes happens when system boots up and snapweb service enabled faster than IP obtained.

Revision history for this message
Roberto Mier Escandon (rmescandon) wrote :

Fixed on snapweb 0.26-10 (300)

Changed in snapweb:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.