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

OneDrive Repo does not handle special character when creating access controlled links

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Sprint:
      Internationals - 3.11 Sprint 1, Internationals - 3.11 Sprint 2, Internationals - 3.11 Sprint 3

      Description

      The OneDrive repo does not handle special characters such as æøå  etc 

      Make sure OneDrive repo is activated with option to hand in assignments as access controlled links meaning that a system onedrive account is connected to the O365 oAuth settings. 

      Steps to reproduce: 

      As admin/teacher

      1. Create a category with name name Dånish 
      2. Add a course in the category. Enroll student  
      3. Add two assignemnts (1 and 2) with file submission enabled. 

      As student: 

      1. Add file to assignment 1 as access controlled link 

      As admin

       2. Flush Onedrive cache store  (repository_onedrive) 

      As student: 

      1, Add file to assignment 2 as access controlled link 

       

      Result: Error message is displayed : The specified item name already exists. 

      Expected result: The file was placed in the system OneDrive account. 

       

      The error is due to wrong encoding of special characters when creating the OneDrive folder  . The proposed solution does not fix that - but fixes the lookup for folders since a fix of the original error would create new folders. 

       

        Attachments

        1. course_and_category_folders.png
          course_and_category_folders.png
          13 kB
        2. image-2020-10-22-15-35-01-776.png
          image-2020-10-22-15-35-01-776.png
          371 kB
        3. image-2020-10-22-15-38-24-562.png
          image-2020-10-22-15-38-24-562.png
          117 kB
        4. image-2020-10-22-15-39-22-158.png
          image-2020-10-22-15-39-22-158.png
          422 kB
        5. image-2020-10-22-15-40-11-147.png
          image-2020-10-22-15-40-11-147.png
          365 kB
        6. image-2020-10-22-15-41-20-875.png
          image-2020-10-22-15-41-20-875.png
          167 kB
        7. image-2020-10-22-15-44-17-053.png
          image-2020-10-22-15-44-17-053.png
          439 kB
        8. image-2020-10-22-15-44-54-123.png
          image-2020-10-22-15-44-54-123.png
          439 kB
        9. image-2020-10-22-15-45-25-551.png
          image-2020-10-22-15-45-25-551.png
          428 kB
        10. image-2020-10-22-15-46-13-009.png
          image-2020-10-22-15-46-13-009.png
          163 kB
        11. image-2020-10-22-15-46-50-178.png
          image-2020-10-22-15-46-50-178.png
          129 kB
        12. image-2020-10-22-15-47-31-285.png
          image-2020-10-22-15-47-31-285.png
          115 kB
        13. MDL-64809 1.png
          MDL-64809 1.png
          37 kB
        14. MDL-64809 2.png
          MDL-64809 2.png
          45 kB
        15. MDL-64809 3.png
          MDL-64809 3.png
          25 kB
        16. MDL-64809 4.png
          MDL-64809 4.png
          28 kB
        17. MDL-64809 5.png
          MDL-64809 5.png
          23 kB
        18. MDL-64809 6.png
          MDL-64809 6.png
          15 kB
        19. MDL-64809 7.png
          MDL-64809 7.png
          80 kB
        20. MDL-64809 8.png
          MDL-64809 8.png
          73 kB
        21. MDL-64809 9.png
          MDL-64809 9.png
          45 kB
        22. Teams_ZhxnQzm0HU.png
          Teams_ZhxnQzm0HU.png
          389 kB

          Activity

            People

            Assignee:
            tuekorsgaard Tue Korsgaard
            Reporter:
            tuekorsgaard Tue Korsgaard
            Peer reviewer:
            Simey Lameze Simey Lameze
            Integrator:
            Jake Dallimore Jake Dallimore
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 6 hours, 37 minutes
                1d 6h 37m