Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-38682

Using the same id in trash causes a lot of problems

    Details

    • 10 status:
      Resolved
    • Previous Issue Keys:
      SAK-27925, KNL-1310

      Description

      The trash uses the same internal id as the original file in resources, and this causes the following problems:

      1. Upload a file with name "a.txt".
      2. Send file to trash.
      3. Upload a file with name "a.txt", but different content.
      4. Send file to trash again.
      5. Go to trash, you could see 2 files but you won't be able to restore both, only the first one.
      6. After restoring one of them the trash is empty (the other one is missing).

      1. Upload a file with name "a.txt".
      2. Send file to trash.
      3. Upload a file with name "a.txt".
      4. Try to restore file "a.txt", you can't.
      5. After that try to remove "a.txt", you can't either.

      In general any other case you could imagine that generates conflict by using the same internal id.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  buckett Matthew Buckett
                  Reporter:
                  jjmerono@um.es Juan José Meroño Sánchez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code