Package: flickrbackup
Version: 0.2-3
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,

   * What led up to the situation?
  flickrbackup does not work at all anymore after:

  https://code.flickr.net/2014/04/30/flickr-api-going-ssl-only-on-june-
27th-2014/

  I changed the http calls to https calls in the code, and the package works
fine again.

  I'm attaching a patch.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13.1 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages flickrbackup depends on:
ii  python          2.7.6-2
ii  python-pyexiv2  0.3.2-6+b1

flickrbackup recommends no packages.

flickrbackup suggests no packages.

-- no debconf information
--- flickrbackup.orig	2011-11-05 00:00:00.000000000 +0100
+++ flickrbackup	2014-06-29 13:42:00.000000000 +0200
@@ -54,7 +54,7 @@
     hash   = hashlib.md5(string).digest().encode("hex")
 
     # Formulate the request
-    url    = "http://api.flickr.com/services/rest/?method=flickr.auth.getFrob";
+    url    = "https://api.flickr.com/services/rest/?method=flickr.auth.getFrob";
     url   += "&api_key=" + API_KEY + "&api_sig=" + hash
 
     try:
@@ -84,7 +84,7 @@
     hash   = hashlib.md5(string).digest().encode("hex")
 
     # Formulate the request
-    url    = "http://api.flickr.com/services/auth/?";
+    url    = "https://api.flickr.com/services/auth/?";
     url   += "api_key=" + API_KEY + "&perms=" + perms
     url   += "&frob=" + frob + "&api_sig=" + hash
 
@@ -109,7 +109,7 @@
     hash   = hashlib.md5(string).digest().encode("hex")
 
     # Formulate the request
-    url    = "http://api.flickr.com/services/rest/?method=flickr.auth.getToken";
+    url    = "https://api.flickr.com/services/rest/?method=flickr.auth.getToken";
     url   += "&api_key=" + API_KEY + "&frob=" + frob
     url   += "&api_sig=" + hash
 
@@ -162,7 +162,7 @@
 def getphoto(id, token, filename):
     try:
         # Contruct a request to find the sizes
-        url  = "http://api.flickr.com/services/rest/?method=flickr.photos.getSizes";
+        url  = "https://api.flickr.com/services/rest/?method=flickr.photos.getSizes";
         url += "&photo_id=" + id
 
         # Sign the request
@@ -207,7 +207,7 @@
 def getmetadata(id, token):
     try:
         # Contruct a request to find the sizes
-        url  = "http://api.flickr.com/services/rest/?method=flickr.photos.getInfo";
+        url  = "https://api.flickr.com/services/rest/?method=flickr.photos.getInfo";
         url += "&photo_id=" + id
 
         # Sign the request
@@ -313,7 +313,7 @@
         cache.close()
 
     # Now, construct a query for the list of photo sets
-    url  = "http://api.flickr.com/services/rest/?method=flickr.photosets.getList";
+    url  = "https://api.flickr.com/services/rest/?method=flickr.photosets.getList";
     url += "&user_id=" + config["user"]
     url  = flickrsign(url, config["token"])
 
@@ -334,7 +334,7 @@
         dir = normalizeToASCII(dir)
 
         # Build the list of photos
-        url   = "http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos";
+        url   = "https://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos";
         url  += "&photoset_id=" + pid
 
         # Append to our list of urls
@@ -344,11 +344,11 @@
     dom.unlink()
 
     # Add the photos which are not in any set
-    url   = "http://api.flickr.com/services/rest/?method=flickr.photos.getNotInSet";
+    url   = "https://api.flickr.com/services/rest/?method=flickr.photos.getNotInSet";
     urls.append( (url, "No Set") )
 
     # Add the user's Favourites
-    url   = "http://api.flickr.com/services/rest/?method=flickr.favorites.getList";
+    url   = "https://api.flickr.com/services/rest/?method=flickr.favorites.getList";
     urls.append( (url, "Favourites") )
 
     # Time to get the photos

Reply via email to