Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-83350

The linked file in an activity was not updated when the original file was updated

XMLWordPrintable

    • MOODLE_404_STABLE, MOODLE_405_STABLE, MOODLE_500_STABLE
    • MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-83350-405
    • MDL-83350-500
    • MDL-83350-main
    • Hide

      Setup

      1. Login as admin.
      2. Navigate to Site Admin > Plugins > Repositories > Manage repositories.
      3. Set Enable and visible to the Private files repository.
      4. Set Enable and visible to the File system repository.
      5. On your computer, create a new folder /path/to/moodledata/repository/test directory.
      6. Navigate to File system repository settings.
      7. Click the Create a repository instance button.
      8. Specify the instance name with test.
      9. Select test at the dropdown.
      10. Click the Save button.

      Test private files

      1. Login as admin
      2. Click on the User profile menu > Private files.
      3. Drag and drop the cat.jpg file to Files.
      4. Click on the Save changes button.
      5. Create a course.
      6. Add a new Text and Media resource.
      7. In the Text, click on Image button in the text editor.
      8. Click the Browse repositories button > Private files.
      9. Select the cat.jpg.
      10. Select the Link to the file option and click the Select this file button.
      11. Complete the remaining steps to insert the image to the content of the Text.
      12. Click the Save and return to course button.
      13. VERIFY that you see the image.
      14. Download the dog.jpg, rename the filename to cat.jpg.
      15. Click on the User profile menu > Private files.
      16. Drag and drop the new cat.jpg file to Files.
      17. Click Overwrite.
      18. Click on the Save changes button.
      19. VERIFY that you will see a dog image with the filename is cat.jpg.
      20. Navigate to the created course.
      21. VERIFY that you see the new image, a dog image.

      Test file system

      1. Copy the original cat.jpg to the /path/to/moodledata/repository/test
      2. Login as admin
      3. Navigate to the course that created on the previous test
      4. Delete the existing Text and Media resource
      5. Add a new Text and Media resource.
      6. In the Text, click on Image button in the text editor.
      7. Click the Browse repositories button > test.
      8. Select the cat.jpg.
      9. Select the Link to the file option and click the Select this file button.
      10. Complete the remaining steps to insert the image to the content of the Text.
      11. Click the Save and return to course button.
      12. VERIFY that you see the image.
      13. Download the dog.jpg, rename the filename to cat.jpg. Copy it to the /path/to/moodledata/repository/test
      14. Navigate to the created course.
      15. VERIFY that you see the new image, a dog image.
      Show
      Setup Login as admin. Navigate to Site Admin > Plugins > Repositories > Manage repositories. Set Enable and visible to the Private files repository. Set Enable and visible to the File system repository. On your computer, create a new folder / path/to/moodledata/repository/test directory. Navigate to File system repository settings. Click the Create a repository instance button. Specify the instance name with test . Select test at the dropdown. Click the Save button. Test private files Login as admin Click on the User profile menu > Private files. Drag and drop the cat.jpg file to Files. Click on the Save changes button. Create a course. Add a new Text and Media resource. In the Text, click on Image button in the text editor. Click the Browse repositories button > Private files. Select the cat.jpg. Select the Link to the file option and click the Select this file button. Complete the remaining steps to insert the image to the content of the Text. Click the Save and return to course button. VERIFY that you see the image. Download the dog.jpg , rename the filename to cat.jpg. Click on the User profile menu > Private files. Drag and drop the new cat.jpg file to Files. Click Overwrite. Click on the Save changes button. VERIFY that you will see a dog image with the filename is cat.jpg. Navigate to the created course. VERIFY that you see the new image, a dog image. Test file system Copy the original cat.jpg to the  /path/to/moodledata/repository/test Login as admin Navigate to the course that created on the previous test Delete the existing Text and Media resource Add a new Text and Media resource. In the Text, click on Image button in the text editor. Click the Browse repositories button > test. Select the cat.jpg. Select the Link to the file option and click the Select this file button. Complete the remaining steps to insert the image to the content of the Text. Click the Save and return to course button. VERIFY that you see the image. Download the dog.jpg, rename the filename to cat.jpg. Copy it to the  /path/to/moodledata/repository/test Navigate to the created course. VERIFY that you see the new image, a dog image.
    • Hide

      Code verified against automated checks.

      Checked MDL-83350 using repository: https://github.com/meirzamoodle/moodle.git

      More information about this report

      Built on: Thu Mar 13 02:57:10 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83350 using repository: https://github.com/meirzamoodle/moodle.git MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-83350-405 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-83350-main | CI Job ] More information about this report Built on: Thu Mar 13 02:57:10 UTC 2025
    • Hide

      Launching automatic jobs for branch MDL-83350-405

      Launching automatic jobs for branch MDL-83350-500

      Launching automatic jobs for branch MDL-83350-main

      Built on: Tue May 13 06:12:07 UTC 2025

      Show
      Launching automatic jobs for branch MDL-83350 -405 https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19308/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65969/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65970/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65971/ Behat (Firefox - classic / complete) Launching automatic jobs for branch MDL-83350 -500 https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19309/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65972/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65973/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65974/ Behat (Firefox - classic / complete) Launching automatic jobs for branch MDL-83350 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19310/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65975/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65976/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65977/ Behat (Firefox - classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65978/ App tests (stable app version) / complete) Built on: Tue May 13 06:12:07 UTC 2025
    • 2
    • Team Dragons 2025 Sprint 1.2, Team Dragons 2025 Sprint 1.3, Team Hedgehogs 2025 Sprint 2.0

      The linked file in the activity was not updated when the original file was updated

      Steps to replicate:

      1. Save the cat.jpg and dog.jpg files to your computer.
      2. Login as admin.
      3. Click on the User profile menu -> Private files.
      4. Drag and drop the cat.jpg file to Files.
      5. Click on the Save changes button.
      6. Create a course.
      7. Add a new Choice activity
      8. In the description of the Choice activity, click on Image button in the text editor.
      9. Click on Browse repositories button -> Private files.
      10. Select the cat.jpg
      11. Select Link to the file and press Select this file.
      12. Finish the remaining steps to insert the image to the content of the Description.
      13. Press Save and display.
      14. Verify that you will see a Cat image.
      15. Navigate back the course home page.
      16. Click on the three dot menu of the Choice activity -> Duplicate
      17. View that duplicated activity.
      18. Verify that you will see a Cat image.
      19. On your computer, delete the cat.jpg file, rename the dog.jpg to cat.jpg.
      20. Click on the User profile menu -> Private files.
      21. Drag and drop the cat.jpg file to Files.
      22. Click Overwrite.
      23. Click on the Save changes button.
      24. Verify that you will see a Dog image with the filename is cat.jpg.
      25. Navigate to the created course.
      26. View the original Choice activity.
        • Expected: You will see a Dog image
        • Actual: You still see the Cat image
      27. View the duplicated Choice activity.
      28. Verify that you will see a Dog image.

      Expected: All the Choice instances will be updated to use the Dog image.

      Actual: Only the duplicated instance is updated to use the Dog image.

        1. MDL-83350-2025-05-09_18.44.52.mp4
          2.80 MB
        2. dog.jpg
          dog.jpg
          6 kB
        3. cat.jpg
          cat.jpg
          399 kB
        4. (2) 15 Passed -- (Main)MDL-83350.png
          (2) 15 Passed -- (Main)MDL-83350.png
          964 kB
        5. (2) 12 Passed -- (Main)MDL-83350.png
          (2) 12 Passed -- (Main)MDL-83350.png
          1.12 MB
        6. (1) 21 Passed -- (Main)MDL-83350.png
          (1) 21 Passed -- (Main)MDL-83350.png
          934 kB
        7. (1) 19 Passed -- (Main)MDL-83350.png
          (1) 19 Passed -- (Main)MDL-83350.png
          79 kB
        8. (1) 13 Passed -- (Main)MDL-83350.png
          (1) 13 Passed -- (Main)MDL-83350.png
          740 kB

            meirza.arson@moodle.com Meirza
            huongn@moodle.com Huong Nguyen
            Stevani Andolo Stevani Andolo
            David Woloszyn David Woloszyn
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 1 hour, 6 minutes
                4d 1h 6m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.