Ticket #1066 (closed bug: fixed)

Opened 22 months ago

Last modified 13 months ago

settings torrent and openvpn seems to be switched after updating to 2.3.7.0 beta

Reported by: fon2@… Owned by:
Priority: normal Milestone: Firmware 2.3.7.0
Component: fon-base-firmware Version: 2.3.7.0 beta2
Severity: minor
Cc: Hardware: both

Description

I updated the firmware from 2.3.6.1 (development) to 2.3.7.0 beta. I made a screenshot before and after the update and discovered a difference.

Regards alexb

Attachments

before2631.jpg Download (165.7 KB) - added by anonymous 22 months ago.
after2371beta.jpg Download (166.3 KB) - added by anonymous 22 months ago.

Change History

Changed 22 months ago by anonymous

Changed 22 months ago by anonymous

Changed 20 months ago by matthijs

  • status changed from new to investigate
  • milestone set to Firmware 2.3.7.0

Changed 17 months ago by matthijs

I've looked into this and I think these are actually two separate issues:

  1. When upgrading, the torrent application needs to be reinstalled. The firewall setting is saved during the upgrade, but cannot be restored directly after the upgrade since the setting is not present until the torrent application is installed (or perhaps the setting isn't even saved because it is in another file from the normal firewall settings, I'm not 100% sure). This issue is hard to fix, given the current structure of the torrent plugin.
  2. When upgrading, apparently the firewall status of the openvpn application gets lost. This is similar to the above: The configuration (in /etc/config/services) for openvpn gets added by a script after the upgrade, instead of being embedded in the firmware image. It seems that this script somehow runs _after_ restoring the saved settings (even though it shouldn't, since /etc/uci-defaults/zzz-upgrade should run after /etc/uci-defaults/openvpn.

So the settings didn't get mixed up, they just got reset to their defaults.

I'll have a closer look at what happens in the second case, the first case is probably a won't fix for now.

Changed 14 months ago by matthijs

  • hardware changed from unknown to both
  • status changed from investigate to testing-fix
  • version changed from 2.3.7.0 beta1 to 2.3.7.0 beta2
  • component changed from other to fon-base-firmware
  • severity changed from unknown to minor

I've looked into this a bit more and fixed both issues.

  1. Turns out the settings are already present in the image, instead of being added when installing the fmg image. The problem was just that the firewall settings for Transmission were stored in a different file, which wasn't backed up.
  2. The problem here was that the settings backup only backups the "enabled" values from the firewall configuration. This works for the settings where the default is disabled, but not for OpenVPN. I've changed the backup script to always backup the settings, which should fix this issue.

I'm still doing some tests, but I have fixes ready to be committed.

Changed 13 months ago by matthijs

(In [2046]) luci: Also backup firewall settings for fmg images.

This prevents the firewall settings for Transmission being reset after an upgrade.

References: #1066

Changed 13 months ago by matthijs

  • status changed from testing-fix to closed
  • resolution set to fixed

(In [2047]) luci: Backup all fwall settings, not just those that are 1.

Since the default for openvpn is 1 instead of 0, OpenVPN was re-enabled in the firewall on an upgrade if the user had disabled it.

Closes: #1066

Add/Change #1066 (settings torrent and openvpn seems to be switched after updating to 2.3.7.0 beta)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.