← Back to team overview

touch-packages team mailing list archive

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

 

@rschroll: correct, it'll abort the transfer, for now.  In the future,
we'll be implementing an error API so we can send it to an error state
with a defined reason for the error.

-- 
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:
  Fix Released
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