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

Flickr repository not working (changes in Flickr API?)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.4, 2.3.1, 2.4
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: Repositories
    • Labels:
    • Testing Instructions:
      Hide

      Test pre-requisites

      • Access to a Flickr account
      • Flickr and Flickr public repository enabled
      • Flickr repository set up
      • Created an instance of Flickr Public using your account's email address
      • Two pics on the Flickr account
        • One massively bigger than 320x240 (1024x768 recommended)
        • One very small (any 16x16 icon from Moodle will do)

      Test steps

      1. Go to your private files, click 'Add'
      2. Browse your Flickr repository
        1. Add the small image
        2. Make sure it is correctly download (check filesize, try to preview it)
        3. Add the large image
        4. Make sure it is correctly download (check filesize, try to preview it)
        5. Make sure the image dimensions are close or exactly the same as the original one
      3. Browse your Flickr Public instance
        1. Add the small image
        2. Make sure it is correctly download (check filesize, try to preview it)
        3. Add the large image
        4. Make sure it is correctly download (check filesize, try to preview it)
        5. Make sure the image dimensions are close or exactly the same as the original one
      Show
      Test pre-requisites Access to a Flickr account Flickr and Flickr public repository enabled Flickr repository set up Created an instance of Flickr Public using your account's email address Two pics on the Flickr account One massively bigger than 320x240 (1024x768 recommended) One very small (any 16x16 icon from Moodle will do) Test steps Go to your private files, click 'Add' Browse your Flickr repository Add the small image Make sure it is correctly download (check filesize, try to preview it) Add the large image Make sure it is correctly download (check filesize, try to preview it) Make sure the image dimensions are close or exactly the same as the original one Browse your Flickr Public instance Add the small image Make sure it is correctly download (check filesize, try to preview it) Add the large image Make sure it is correctly download (check filesize, try to preview it) Make sure the image dimensions are close or exactly the same as the original one
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-34633-master

      Description

      After picking a file from Flickr repository it has 0 size. Seems that Flickr API has changed recently.

      After digging a little I noticed that function repository_flickr::build_photo_url() returns empty string. Flickr method flickr.photos.getSizes returns smaller array than we expect.

      Did not test on versions smaller than 2.3

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Sep/12