[IMPLEMENTED] Provide backup after app is deleted

I have…

  • [X] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [X] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Expected behavior

  • Restore recovers project

Minimal reproduction of the problem

  • Create App
  • Create a schema with anything
  • Create a backup
  • Copy backup address
  • Delete the app
  • Attempt a Restore

Environment

  • [X] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 6.7.0

Browser:
Any

It just says that squidex cannot reach or download the backup.

Yes. It appears the original app needs to still exist.

Or you put the file somewhere else.

I don’t believe the location is the issue. I can run a restore utilizing the same url path with a backup that exists in a non deleted app.

I forgot to mention this in my original info, but I can also confirm the backup file still exists.

So you have downloaded the file from the url and it worked?

No, it will produce the 404 response json.

{"traceId":"00-c95a9f48f7ac5dcc06d43e45821a0c39-a4884d12128e956e-01","type":"https://tools.ietf.org/html/rfc7231#section-6.5.4","statusCode":404}

Here is difference between working and 404 backup link
***/api/apps/appname/backups/c754f7b4-4de8-4588-84b5-26bfa1ac38f5 (working)
***/api/apps/appname/backups/2cea7f16-2ab6-4421-a0db-b2b96b47cb84 (404 json)

And file explorer…

Note the file size difference is different app.

If the app does not exists anymore you also get a 404. Or perhaps the backup has not been written to the end? I don’t know.

Yeah this is why we get the 404. Once the app is deleted it cannot be restored. Not sure if this was something that could be changed. We still utilize a mongo backup as the main restore option, but its nice to have this as a secondary.

This topic was automatically closed after 2 days. New replies are no longer allowed.