After importing files via ContentHub files won't be deleted

Bug #1469452 reported by JkB
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Music App
Fix Released
Medium
Andrew Hayzen
content-hub
Invalid
Undecided
Unassigned

Bug Description

After importing music (.zip from 7digital) via content hub, the files will be stored in ~/Music/... but the unzipped files are not deleted in ~/.cache/com.ubuntu.music/HubIncoming/..
The .zip seems to be, though.

This results in using twice the space that is needed.

Or is there an intention to keep them?

It would be even better to be able to change the standard import path from /Music/ to e.g. a directory on the sd-card.

Related branches

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

The way this works currently is content-hub puts them into ~/.cache/com.ubuntu.music/HubIncoming/ for us and then we call a content-hub method to move them into ~/Music/Imported/*, however this method sometimes fails to move the file and falls back to using a copy.

Therefore I suppose it should actually remove the file if a copy was used [0] and I am adding content-hub to this bug.

0 - http://bazaar.launchpad.net/~phablet-team/content-hub/trunk/view/head:/import/Ubuntu/Content/contentitem.cpp#L227

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

After further discussion with the content-hub guys, I've found that this gets cleared currently upon a reboot of the system (I've confirmed this works) and that we are not setting a property after we are done with the files which can tell content-hub to clean them up then.

Therefore I am marking this bug as invalid for content-hub, and assigning myself to fix the missing property set once the transfer is complete.

Changed in content-hub:
status: New → Invalid
Changed in music-app:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Andrew Hayzen (ahayzen)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:music-app at revision 878, scheduled for release in music-app, milestone 3.0

Changed in music-app:
status: In Progress → Fix Committed
Andrew Hayzen (ahayzen)
Changed in music-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.