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

Flickr API rejects calls made via flickrlib.php methods

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11.6
    • 3.11.7, 4.0.1
    • Other

    Description

      There seems to have been a recent change to the Flickr API that means it rejects calls that include Bot in the User-agent header.

      Since calls made via flickrlib.php use the default Moodle User-agent which includes Bot they all fail.

      Steps to reproduce

      1. Enable and configure the Flickr public repository (Site Admin > Plugins > Repositories)
      2. Navigate to a course
      3. Create a label in the text insert an image
      4. Open the Flickr public repository
      5. Enter "fish" as the Full text and then press Search

      Expected outcome

      Some images are displayed for selection

      Actual outcome

      No images are displayed

      I expect it will mean that no Flickr calls from Moodle will work.

      Attachments

        1. Flickr Test.postman_collection.json
          3 kB
        2. MDL-74567 311.png
          MDL-74567 311.png
          225 kB
        3. MDL-74567 40.png
          MDL-74567 40.png
          236 kB
        4. MDL-74567 master.png
          MDL-74567 master.png
          257 kB

        Issue Links

          Activity

            People

              pholden Paul Holden
              nmagill Neill Magill
              Neill Magill Neill Magill
              Victor Déniz Falcón Victor Déniz Falcón
              Simey Lameze Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/May/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 12 minutes
                  2h 12m