Opened 7 years ago

Last modified 5 years ago

#3912 new defect

Sugar needs to preserve known extensions

Reported by: greenfeld Owned by: erikos
Priority: Normal Milestone: Unspecified
Component: Browse Version: 0.97.x
Severity: Unspecified Keywords:
Cc: Distribution/OS: OLPC
Bug Status: Unconfirmed

Description

The Sugar environment (Browse, Journal, etc.) needs to be able to preserve extensions when known.

One possible approach:

  • If the Browse activity downloads a file with an extension, we should note this in the metadata along with the mime type.
  • When copied to an external drive or the Documents folder, if the original extension is present in the Journal entry's name or one of the valid mime type names is, we *must* copy the entry to USB with said extension. If no extension is present we should append the original.
  • Activities which convert journal mime types without creating a new item should delete the original extension metadata.
  • Renaming a file on an external device/in the Documents folder to have an extension will give it that extension if it is one of the valid ones for a mime type or the original.

This would allow users to download OLPC leases/development keys without renaming the file afterward. Martin believes this is a regression to previous releases.

Seen in 13.1.0 os1.

Change History (1)

comment:1 Changed 5 years ago by walter

  • Component changed from Sugar to Browse
  • Priority changed from Unspecified by Maintainer to Normal
Note: See TracTickets for help on using tickets.