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

Flickr API rejects calls made via flickrlib.php methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11.7, 4.0.1
    • 3.11.6
    • Other
    • MOODLE_311_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • Hide
      1. Log in as admin
      2. Set up public Flickr repository as per documentation: https://docs.moodle.org/310/en/Flickr_public_repository#Setting_up_a_Flickr_API
      3. Create a new course
      4. Add a label to the course
      5. Press Insert or edit image from the Label text editor toolbar
      6. Press Browse repositories
      7. Press Flickr public
      8. Enter "Green frog" in the Full text field and press Search
      9. Confirm matching images are displayed
      Show
      Log in as admin Set up public Flickr repository as per documentation: https://docs.moodle.org/310/en/Flickr_public_repository#Setting_up_a_Flickr_API Create a new course Add a label to the course Press Insert or edit image from the Label text editor toolbar Press Browse repositories Press Flickr public Enter "Green frog" in the Full text field and press Search Confirm matching images are displayed

      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.

        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

            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

              Created:
              Updated:
              Resolved:

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

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