Ticket #10321 (new defect)

Opened 4 years ago

Last modified 3 years ago

Software update misrepresents the URL it uses for activities and versions

Reported by: skierpage Owned by: dsd
Priority: low Milestone: Future Release
Component: sugar Version: Development build as of this date
Keywords: Cc:
Action Needed: design Verified: no
Deployments affected: Blocked By:


Both My Settings > Software update and sugar-control-panel -g available_updates misrepresent the URL they're using to figure out what activities and versions to update. They both print "Fetching http://wiki.laptop.org/go/Activities/G1G1..." even though that usually *isn't* the web page they retrieve and use. As I understand it from http://wiki.laptop.org/go/Software_update#Activity_groups , they use the first URL matching the activity group plus build, full release, major release, or no suffix.

To reproduce, in Software update set your Activity group in "Modify activity groups" to "http://wiki.laptop.org/go/Activities/G1G1" if it wasn't this already. Then in 8.2.1 or 10.1.2 do a software update. It'll display "Fetching http://wiki.laptop.org/go/Activities/G1G1..." but the list of activities and versions it updates is not this URL, but something like Activities/G1G1/10.1 or Activities/G1G1/758 (see http://wiki.laptop.org/go/Special:PrefixIndex/Activities/G1G1/ , that set of 9 possibilities is part of the problem!)

The fix is for /usr/share/sugar/extensions/cpsection/updater/model.py to print the actual URL it's using (the activity group URL usually followed by a build number, major, or minor release). Unfortunately that's handled by bitfrost internals so this is not an easy fix.

It appears that the "Modify activity group" expanding section in the UI displays information from the actual URL it uses. So the workaround (that should be fixed in any case) is to give each subpage of http://wiki.laptop.org/go/Activities/G1G1/ very descriptive microformat information that Software updater will display, see http://wiki.laptop.org/go/Activity_microformat . But that info only appears after the Fetching... display and if you expand.

Change History

Changed 4 years ago by Quozl

  • next_action changed from never set to design
  • version changed from not specified to Development build as of this date
  • milestone changed from 10.1.2 to 10.1.3

Won't block this pending release.

Changed 4 years ago by martin.langhoff

  • milestone changed from 10.1.3 to Future Release

To be considered when working on the new updated in Sugar 0.90 .

Changed 4 years ago by martin.langhoff

  • priority changed from normal to low
  • milestone changed from Future Release to 11.2.0-M3

Changed 3 years ago by dsd

  • milestone changed from 11.3.0 to Future Release
Note: See TracTickets for help on using tickets.