Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] adding a new test in case the info.json file exists but not the tar and vice versa #667

wants to merge 1 commit into
base: stretch-unstable
Choose a base branch


Copy link

@evilcel3ri evilcel3ri commented Feb 26, 2019

The problem

this issue


Adding one more test but it isn't the best one

PR Status


How to test



  • Principle agreement 0/2 :
  • Quick review 0/1 :
  • Simple test 0/1 :
  • Deep review 0/1 :
Copy link

@alexAubin alexAubin commented Feb 28, 2019

Uh in fact I think that's not the real issue. It turns out that YunoHost is supposed to be able to work even if there's no .info.json file directly associated with the archive - because this file is actually also in the archive itself. This is what is handled here :

I think the original issue lies in here :

The original issue is in fact not trivial to reproduce but I think @e-lie somehow renamed an archive while keeping the .tar.gz in the name. So you can reproduce the issue like this :

  • creating a new backup using yunohost backup create
  • going to /home/yunohost.backup/archives
  • Rename the archive like this mv your_archive.tar.gz your_archive.tar.gz.bkp (it's important to keep .tar.gz in the archive name somewhere ;))
  • Run yunohost backup list
  • If it's still not clear what's happening, try to touch and you should see it's trying to look for a foo.tar.gz archive because of that f.rindex('.tar.gz') :P


@alexAubin alexAubin force-pushed the stretch-unstable branch from 58ead9e to 40f48ff Oct 29, 2019
@zamentur zamentur added this to the 4.3.x milestone Jan 3, 2021
@zamentur zamentur removed this from the 4.x milestone Jan 4, 2021
@zamentur zamentur added this to 4.x in Pending Jan 4, 2021
@zamentur zamentur added -fix and removed -fix labels Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants