Configuration backup download not working cockpit

Dear Team,

In cockpit browser configuration download in the backup, not working.

Thanks & Regards
Harish Aravilli

1 Like

Thank you for reporting!

I confirm that is not working with Firefox, but it works with Chrome.

@edoardo_spadoni could you take a look?

It seems a CSP issue only on FIrefox, if you open the console on your browser you can see the error in details. I’ll work on it for a solution. On Google Chrome works well.

console query:

API exec: system-backup/read
echo '{"action":"running-info"}' | /usr/bin/sudo /usr/libexec/nethserver/api/system-backup/read | jq API exec: system-backup/execute echo ‘{“action”:“download-backup-config”,“name”:“c06”}’ | /usr/bin/sudo /usr/libexec/nethserver/api/system-backup/execute | jq
API exec: system-backup/read
$ echo ‘{“action”:“running-info”}’ | /usr/bin/sudo /usr/libexec/nethserver/api/system-backup/read | jq

![Screenshot%20from%202019-10-04%2010-54-11|1x1]

1 Like

Basically Firefox implements CSP from other browsers.
This is a known Firefox bug, see:

Upstream Cockpit found a really ugly workaround.
We are investigating if we can apply the same fix.

The issue is opened: https://github.com/NethServer/dev/issues/5855 and the package will be in testing repo soon.

@HarishAravilli feel free to test the fix and tell us if it works. Thank you

1 Like

Now Iam unable to test ,please confirm once changes affected in new updates.Then i can use the service.
Thanks in Advance

The packages have been tested released. Everything will be soon available on all mirrors :slight_smile:

This dude rised again!
Steps to reproduce:

  • access to cockpit
  • create a new configuration backup (it will be classified as “snapshot”
  • try to download the file
  • with firefox, the file downloaded will hava a random name (mine is called odBJatrQ )
  • using another browser (in my case, edge-chromium) the name will be coherent with the paradigm (s00.tar.xz)

(file comparison show no differencies)

The bug persits

Download with Firefox… (with Safari completely impossible to download)

wrong extension: DMS
wrong identifier: random characters

Thanks for the wakeup call!
@giacomo, what do you think is needed to fix this one?
A single malt glass? A fine coffee beans package? A nice italian beer?

1 Like

The original bug was: the user can’t download the file.
That bug has been fixed, but we can’t fix the file name inside Firefox (please, se above upstream issues).

I do not like the file name, not the bad file extension, but it’s the only way to make it work on Firefox.
About Safari, sorry but we do not have any Apple machine to develop it.

1 Like

Confirm for Firefox part. I worked on it and I was able only to fix the filename of VPN configuration, but not in Cockpit main module :confused: