After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770918 - Fix updating remotes' appstream
Fix updating remotes' appstream
Status: RESOLVED OBSOLETE
Product: gnome-software
Classification: Applications
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-09-05 23:16 UTC by Joaquim Rocha
Modified: 2018-01-24 17:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Continue refresh even if it's not possible to update a remote's appstream (1.92 KB, patch)
2016-09-05 23:16 UTC, Joaquim Rocha
none Details | Review

Description Joaquim Rocha 2016-09-05 23:16:28 UTC
Currently if there are multiple remotes to fetch the appstream data from, and doing so fails for one of them, then the remaining remotes will never be updated. This leads to cases where, e.g. having one remote with a broken gpg key (or with a user without permissions to pull from an untrusted source) may prevent getting updates from other valid remotes.

Maybe the solution I provide is an easy one but in any case, one failing remote should never prevent refreshing the appstream data of other remotes so I think the operation should continue and a warning should be printed when that situation happens.
Comment 1 Joaquim Rocha 2016-09-05 23:16:32 UTC
Created attachment 334860 [details] [review]
Continue refresh even if it's not possible to update a remote's appstream

Otherwise it leads to cases where, e.g. having one remote with a broken gpg
key (or with a user without permissions to pull from an untrusted
source) may prevent updating other valid remotes.

These changes do not quit the refresh operation when updating one remote
fails and promote a debug message to a warning so it is more visible.
Comment 2 Richard Hughes 2016-09-06 08:51:10 UTC
Whilst I think you're right in the bug description, I still think we need to show these warnings to the user (perhaps in a GtkInfoBox) rather than just hide it on the console. I'll have a play with this idea today.
Comment 3 Richard Hughes 2016-09-06 17:49:53 UTC
I've pushed up some ideas to wip/hughsie/GsPluginEvent
Comment 4 GNOME Infrastructure Team 2018-01-24 17:13:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-software/issues/86.