gorhill / uMatrix

uMatrix: Point and click matrix to filter net requests according to source, destination and type
GNU General Public License v3.0
4.55k stars 470 forks source link

Error while restoring backup of the beta on stable. #937

Open Havokdan opened 6 years ago

Havokdan commented 6 years ago

Good morning, I'm using the google translator, but I hope you get something you can understand. I'm using uMatrix beta in Opera, which is my default browser here, is working as expected, I installed Vivaldi (another browser based on Chromium), but in Vivaldi I installed the stable version of uMatrix, I backed up the configuration of the version that is in the Opera and I tried to import to Vivaldi, however gave the following error:

sem titulo

Will there be incompatibility between backup files between this stable version and the next? I'm on Windows x64 10, Opera 50.0.2762.67 with uMatrix 1.3.3b2 and Vivaldi 1.14 with uMatrix 1.3.2.

gorhill commented 6 years ago

I made modifications which makes the backup file not forward compatible, i.e. you can load old backups with the newer versions of uMatrix, but not newer backups with older versions of uMatrix. You will have to install the beta version of uMatrix on Vivaldi.

At some point I can't keep forward compatibility if I want to improve the output of the backup file, there is old stuff in there that was not saved concisely. For example, one of the change I want to do today is save the rules as an array in the backup file, so that all rules are easy to see/modify with a simple text editor. Currently it's very difficult because the rules are all concatenated into a single JSON string.

gorhill commented 6 years ago

I missed the fact that the error also occurs when restoring from current backup.

gorhill commented 6 years ago

Partial workaround is to export/import rules from with the "My rules" pane.