← Back to team overview

touch-packages team mailing list archive

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

 

Just to check my understanding, this change will cause an error when
trying to import a file with the same name as one that already exists.
Thus, there will be no way to import such a file while using a
ContentScope.  Correct?

-- 
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