Project

General

Profile

Actions

Bug #11840

closed

[API] [Workbench] unique constraint violation error on index_collections_on_owner_uuid_and_name when untrashing a trashed collection

Added by Radhika Chippada almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
-
Target version:
Story points:
-

Description

I deleted a collection in my home project.

Then renamed another collection to have the same name as the deleted collection.

After that, I went to /trash page, and tried to untrash the first collection.

The collection was not untrashed, but no error message was shown either.

Looking at the workbench log, I see that the unique constraint violation took place.


Subtasks 1 (0 open1 closed)

Task #11885: Review 11840-unique-constraint-untrash-collResolvedRadhika Chippada06/21/2017Actions
Actions #1

Updated by Radhika Chippada almost 7 years ago

  • Description updated (diff)
Actions #2

Updated by Tom Clegg almost 7 years ago

See Expiring collections

add the "ensure_unique_name" feature to the "update" method (currently it is only available in "create").

Now that we also have a separate "untrash" API, we'd also need to add the "ensure_unique_name" feature there too.

Presumably Workbench would always set the ensure_unique_name flag when calling untrash.

Actions #3

Updated by Radhika Chippada almost 7 years ago

  • Subject changed from [Workbench] unique constraint violation error on index_collections_on_owner_uuid_and_name when untrashing a trashed collection to [API] [Workbench] unique constraint violation error on index_collections_on_owner_uuid_and_name when untrashing a trashed collection
Actions #4

Updated by Radhika Chippada almost 7 years ago

  • Assigned To set to Radhika Chippada
  • Target version set to 2017-07-05 sprint
Actions #5

Updated by Radhika Chippada almost 7 years ago

  • Status changed from New to In Progress
Actions #6

Updated by Radhika Chippada almost 7 years ago

Actions #8

Updated by Radhika Chippada almost 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:69e9a3e41a8d381adc095718a73a8a99a7943a5a.

Actions

Also available in: Atom PDF