← Back to team overview

touch-packages team mailing list archive

[Bug 1429687] Re: Cannot import two files with the same name to ContentStore.App

 

This bug was fixed in the package content-hub -
0.0+15.04.20150319-0ubuntu1

---------------
content-hub (0.0+15.04.20150319-0ubuntu1) vivid; urgency=medium

  [ Ken VanDine ]
  * Abort transfers when a file already exists matching the requested
    name and ContentStore. (LP: #1429687)
 -- CI Train Bot <ci-train-bot@xxxxxxxxxxxxx>   Thu, 19 Mar 2015 15:27:11 +0000

** Changed in: content-hub (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to content-hub in Ubuntu.
https://bugs.launchpad.net/bugs/1429687

Title:
  Cannot import two files with the same name to ContentStore.App

Status in Content sharing/picking infrastructure and service:
  Confirmed
Status in content-hub package in Ubuntu:
  Fix Released

Bug description:
  When you import a file using a ContentScope and ContentStore.App, it
  gets copied to ~/.local/share/<appid>/<content-type>/<filename>.  If
  you try to import another file with the same name and content type,
  the existing file will be left in place and the new file not copied
  over.  However, you get a ContentItem returned with the a URL pointing
  to the old imported file.

  My expectation is that the new file should be copied to file(1) or
  similar.  Perhaps this should only happen if the files are distinct.
  Failing this, ContentHub should throw an error and not let me think
  that the import succeeded.

To manage notifications about this bug go to:
https://bugs.launchpad.net/content-hub/+bug/1429687/+subscriptions