Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32999 META: Files UI Stage 2 polishing in master
  3. MDL-33409

Newly copied files should take on the userid of the current user, and dates reset

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.3
    • Component/s: Files API
    • Labels:
    • Testing Instructions:
      Hide

      1. Login as admin/teacher USER1
      2. Create a file/folder resource and add files there
      3. Login as admin/teacher USER2
      4. Create a file/folder resource
      5. Add files created in #2 from Server files repository using filepicker (change the name when adding them so you don't confuse them with those from #2 later)
      6. Make sure the files from #5 have timecreated and timemodified as of now
      7. Save changes and start editing again
      8. Make sure that you can see files from #5 in your Recent files (which means that you are the owner)
      9. You can also login as USER1 and make sure you DO NOT see files from #5 in your Recent files (because you are not the owner)

      Show
      1. Login as admin/teacher USER1 2. Create a file/folder resource and add files there 3. Login as admin/teacher USER2 4. Create a file/folder resource 5. Add files created in #2 from Server files repository using filepicker (change the name when adding them so you don't confuse them with those from #2 later) 6. Make sure the files from #5 have timecreated and timemodified as of now 7. Save changes and start editing again 8. Make sure that you can see files from #5 in your Recent files (which means that you are the owner) 9. You can also login as USER1 and make sure you DO NOT see files from #5 in your Recent files (because you are not the owner)
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      wip-MDL-33409-master

      Description

      The userid field generally should mean "the person who created this file record".

      When a file is copied from another existing file in Moodle, the new copy should have the userid of the current user, and all timestamps reset to the current time.

      Apparently this is not currently the case - the userid and timestamps are blindly copied.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12