storefront UI metadata updates are not protected by metadata conflict handling
Bug #1782368 reported by
Martin Wimpress
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Fix Released
|
High
|
Matias Bordese |
Bug Description
We have noticed that periodically the metadata of snaps that are hooked up to build.snapcraft.io are being reset to what the snapcraft.yaml defines.
For example, the metadata has been manually updated for ffmpeg, vscode and tmnationsforever their respective https:/
At some point, the following fields are reset to what the snapcraft.yaml defines destroying what may have been manually entered:
* title
* icon
* summary
* description
* license
Changed in snapstore: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Matias Bordese (matiasb) |
Changed in snapstore: | |
status: | Confirmed → In Progress |
Changed in snapstore: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Hello,
I've determined that it's not build.snapcraft.io that's doing this; I was able to reproduce this problem just with snapcraft and a locally built snap.
(However - the snap was registered and initially uploaded with build.snapcraft.io - it would be very weird for b.s.io to be leaving things in a crappy state that then allows the following to happen, but let's not discard the possibility).
steps to repro: io/account/ snaps/thesnap that the metadata is ok snapcraft. io/snaps/ thesnap that metadata is ok
- register a snap
- create a snapcraft.yaml with a description and summary nicely written.
- build, push with snapcraft
- confirm in snapcraft.
- confirm in dashboard.
- confirm in snap info thesnap that metadata is ok
- in snapcraft. io/account/ snaps/thesnap modify the metadata
- update summary
- update description
- set an icon
- rebuild the snap (change the version but not the metadata in the yaml) whatever. snap
- snapcraft push thesnap-
- snapcraft doesn't say anything about metadata:
$ snapcraft push thesnap_ 2018-07- 20-04_amd64. snap 2018-07- 20-04_amd64. snap ubuntu/ thesnap/ thesnap_ 2018-07- 20-04_amd64. snap' to the store. thesnap/ thesnap_ 2018-07- 20-04_amd64. snap.xdelta3. 2018-07- 20-04_amd64. snap.xdelta3 [====== ======= ======= ======= ======= ======= ======= ] 100%
Pushing thesnap_
Preparing to push '/home/
Pushing delta /home/ubuntu/
Pushing thesnap_
Ready to release!
Revision 10 of 'thesnap' created.
WHat should happen:
- snap info, dashboard and snapcraft.io/store all show the manually-updated metadata, because since there was a conflict, snapcraft should NOT have updated metadata from the snapcraft.yaml.
What actually happens:
- snap info shows the metadata we'd set manually earlier didn't change (https:/ /dashboard. snapcraft. io/snaps/ thesnap/) /snapcraft. io/account/ snaps/thesnap/ listing shows the data was clobbered / reoverwritten with what the snap.yaml had
- the public storefront page also shows the correct manually-edited metadata.
HOWEVER:
- reloading https:/
- dashboard was also reset
- icon disappeared from dashboard and storefront