How to adapt Flickrsync to new HTTPS communication?

Jul 6, 2014 at 7:24 AM
Already discussed here: https://flickrsync.codeplex.com/workitem/21114 but, if any chance that somebody here knows how to fix the "Error connecting to flickr. Error: HTTP Error 403. Forbidden" message...
Developer
Jul 6, 2014 at 10:29 AM
Edited Jul 9, 2014 at 10:50 AM
  1. Flickr now requires HTTPS (that is to say encrypted) authentication to its services. This is a sensible move probably in response to things like the Snowden revelations about mass NSA spying. Any company should now be using HTTPS for anything to do with user data as a minimum because they have no right to that data.
  2. FlickrSync never communicated with Flickr directly. Instead it uses a software library called FlickrNet which implements the interface for communicating with Flickr e.g. FlickrSync -> FlickrNet -> Flickr and vice versa.
  3. FlickrNet (at least the version FlickrSync uses) didn't fully implement HTTPS authentication with Flickr. Now I'm not sure if HTTP was an option for some communications (but not ALL) and FlickrSync simply didn't use them or if FlickrNet offered no HTTPS authentication - I simply can't remember, but the point is...
  4. FlickrNet software library, in its latest versions has been upgraded to support Flickr's new requirements of HTTPS authentication. It was hoped that we could just 'drop' the new version in place of of the old version and FlickrSync would just work. (Now that I've thought about this more I've realised that was a vain hope as moving to HTTPS would almost certainly have changed some implementation details but anyway...) This DIDN'T work so some kind people are now trying to fix the errors listed in the in the bug report you've linked to. It is likely that this is the only way to fix this problem.
Unfortunately I no longer have a development environment set up so that I could easily take a quick look at this issue. On top of that I also don't have the time to spare as I unfortunately need to concentrate on paid work. I've tried to give as much help as I can to these other people to work on this, but while the fix is probably straightforward, the FlickrSync code is rather convoluted (something I was trying to fix before) and that might slow things down a bit, but I have reason to believe that the people working on it now are probably much better coders than I was so there is hope - providing they have the time to spare to work on it of course.
Coordinator
Jul 9, 2014 at 6:43 AM
Yes. Flickr now requires HTTPS. I am working on a fix to FlickrSync and should be released until the end of July.
Marked as answer by DanielRyan on 7/9/2014 at 3:43 AM
Jul 9, 2014 at 6:49 AM
Merci beaucoup !!!
Developer
Jul 9, 2014 at 10:43 AM
That's great news!

Even though I don't use Flickr / FlickrSync anymore that's great for all the people who still do :)
Developer
Jul 9, 2014 at 5:56 PM
Thanks Geada, I was beginning to think I would have to attempt the fix. For me this was going to be a rebuild from the ground up starting with Flickr authentication - an intensive exercise that would have taken me 3-6 months to complete.
Coordinator
Jul 13, 2014 at 5:34 PM
The version has now been updated to 0.9 and should solve the HTTPS/SSL problems.
Please be aware that due to the urgency of the fix, this version has not gone through extensive testing. I appreciate any feedback/testing on this version carefully, specially taking into account that this required quite some changes due to upgrade to the latest flickr.net library which deprecated some of the methods being used before.
You can download the upgraded flickrsync from http://flickrsync.freehostia.com
Jul 15, 2014 at 9:46 AM
Very good news. Thank you. I will download it now and am already looking forward to using FlickrSync again
Jul 17, 2014 at 5:03 AM
Flickr Sync is running again - great. And it seems that the problem with permissions are resolved (replace). But there are problems with delete. I get an error - Insufficient permissions. Method requires delete privileges; write granted (99).
Jul 17, 2014 at 9:26 AM
Muito obrigado Pedro!
Unfortunately my internet box gave up yesterday morning, so it was difficult to test, sharing my poor 3G connection. It seems to be working, but the connection being so slow that some errors were maybe caused by it.
I'll confirm it is OK on my side ASAP.
Thank you again.
Coordinator
Jul 17, 2014 at 9:33 AM
@jorn:_jensen. Yes. We know there are issues with delete. We have the code fix prepared (thanks to altauber) and I'll submit it soon.
Jul 17, 2014 at 6:10 PM
Fortunately, I found a solution to place the 3G key closer to the window and could test Flickrsync.
It launches after the authorisation process, but I get an error message https://www.flickr.com/gp/jocelynbouriant/92L4X8
in a second window...
Coordinator
Jul 18, 2014 at 10:10 AM

That looks like a flickr issue. I think it would be good to retry again later.

Pedro Geada

Jul 20, 2014 at 8:41 AM
Finally got a replacement box and could run a sync. Got some weird messages sometimes and some pictures were replaced, though I do not think (or did not remember!) I updated them...
Anyway the process seems to have gone through and I got a message telling it was all OK. So I tried to resync adding a new folder and I got the following error message (sorry in french!):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Consultez la fin de ce message pour plus de détails sur l'appel du débogage
juste-à-temps (JIT) à la place de cette boîte de dialogue.

************** Texte de l'exception **************
System.InvalidOperationException: La collection a été modifiée ; l'opération d'énumération peut ne pas s'exécuter.
à System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
à FlickrSync.SyncView.CalcSync()
à FlickrSync.SyncView..ctor(ArrayList pSyncFolders)
à FlickrSync.FlickrSync.ViewAndSync()
à FlickrSync.FlickrSync.btnViewSync_Click(Object sender, EventArgs e)
à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
à System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
à System.Windows.Forms.ToolStrip.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assemblys chargés **************
mscorlib
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18444 built by: FX451RTMGDR

CodeBase : file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

FlickrSync
Version de l'assembly : 0.9.0.0
Version Win32 : 0.9.0.0

CodeBase : file:///C:/Users/Jocelyn/AppData/Local/Apps/2.0/L2JTPY2M.2RG/M7EDQZ74.T9W/flic..tion_9b565125f3d47d0f_0000.0009_321c6af9f591ffba/FlickrSync.exe

System.Windows.Forms
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

mscorlib.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll

FlickrNet
Version de l'assembly : 3.13.0.0
Version Win32 : 3.13.0.0

CodeBase : file:///C:/Users/Jocelyn/AppData/Local/Apps/2.0/L2JTPY2M.2RG/M7EDQZ74.T9W/flic..tion_9b565125f3d47d0f_0000.0009_321c6af9f591ffba/FlickrNet.DLL

System.Configuration
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.GeneratedCode
Version de l'assembly : 1.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.mshtml
Version de l'assembly : 7.0.3300.0
Version Win32 : 7.0.3300.0

CodeBase : file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

Microsoft.GeneratedCode
Version de l'assembly : 1.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

PresentationCore
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

WindowsBase
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

System.Xaml
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

PresentationCore.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_fr_31bf3856ad364e35/PresentationCore.resources.dll

ThumbDBLib
Version de l'assembly : 1.0.2302.22260
Version Win32 : 1.0.2302.22260

CodeBase : file:///C:/Users/Jocelyn/AppData/Local/Apps/2.0/L2JTPY2M.2RG/M7EDQZ74.T9W/flic..tion_9b565125f3d47d0f_0000.0009_321c6af9f591ffba/ThumbDBLib.DLL

System.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.resources.dll

System.Windows.Forms.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL

CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll

************** Débogage JIT **************
Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette
application ou cet ordinateur (machine.config) doit avoir la valeur
jitDebugging définie dans la section system.windows.forms.
L'application doit également être compilée avec le débogage
activé.

Par exemple :

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Lorsque le débogage juste-à-temps est activé, les exceptions non gérées
seront envoyées au débogueur JIT inscrit sur l'ordinateur
plutôt que d'être gérées par cette boîte de dialogue.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If it can help...
Thank you for your time on this matter!
Coordinator
Dec 30, 2014 at 4:09 PM
That seems a completely different issue. Can you confirm if you're still experiencing problems, so that we can close the HTTPS discussion which seems to be fully solved for all other users?
Dec 31, 2014 at 1:36 PM
The problem with HTTPS is now fixed, as far as I could test. I finally checked the xml config file, and searched for empty synch date or empty set number. When all was uptodate, synching became possible for new folders.
Now, one thing is missing, synching video files...
Anyway, thank you for the software!