3

Closed

needs upgrade to https protocol

description

flickr has killed every uploader I would consider using, including FlickrSync, by switching to https communication. https://www.flickr.com/groups/api/discuss/72157644984640397/

I downloaded the source and to see if I could apply the fix but am unable to get past the error thrown by the protected flickrsync.pfx key file.

file attachments

Closed Jul 17, 2014 at 9:33 AM by geada
Closed

comments

jorn_jensen wrote Jul 3, 2014 at 1:11 PM

Hi
have you seen
https://flickrnet.codeplex.com/releases/view/124951
if so
do you have an idea of ​​how to translate FlickrNet so that Flickr Sync can use this?

DanielRyan wrote Jul 3, 2014 at 3:19 PM

You have correctly identified that you need to upgrade the FlickrNet library which FlickrSync uses to interface with Flickr.

Unfortunately I am too busy with other projects and work at the moment to spend any serious time with this but I suspect if you just replace the the FlickrNet.dll in the program install folder that it might work as I suspect the API calls haven't changed and FlickrNet now defaults to all https communication as this seems to be a (sensible) new requirement to interface with Flickr.

wrote Jul 3, 2014 at 3:46 PM

DanielRyan wrote Jul 3, 2014 at 3:46 PM

(This isn't related to this bug per se but at least one person who has posted in this bug has indicated they might want to do some future work on this project)

I've attached a few class diagrams (existing and proposed - using the MVC design pattern) which I made as part of the report when I was working on this as a University project.

I am NOT in any way suggesting my proposals are the way to go about this (in fact some the changes I was planning to make were more about fulfilling requirements for my University assessment than necessary changes) but you may find it useful and if it saves you any time trying to work out the class diagrams or how the code works then I'll be happy.

Also I did comment quite a lot of the code even if I didn't get to finish many of the changes I wanted to make so feel free to look at my documentation under the FlickrSyncDevelopmentBranch here: https://flickrsync.codeplex.com/SourceControl/latest

jorn_jensen wrote Jul 4, 2014 at 4:16 AM

Hi Daniel.
Thanks for your response.
In Flickr Sync installation files thereis not a file called FlickrNet, but instead a file called FlickrNet.dll.deploy.
The question is how I transform FlickrNet to FlickrNet.dll.deploy.

altauber wrote Jul 4, 2014 at 7:13 PM

I actually made some progress today by unlinking my local workspace. Managed to get FlickrNet.dll replaced with version 3.13. The fix isn't going to be as simple as we had hoped. A code analysis reveals 20 errors and 3 warnings.

Please do not count on me to fix this in a reasonable amount of time. I will continue to work on this as it will be a great way to learn how to support Flickrsync, and hopefully tackle some of the other issues.

Here's the error list.

Error 1 The type name 'UploadProgressHandler' does not exist in the type 'FlickrNet.Flickr' Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 26 50 FlickrSync
Error 2 'FlickrNet.PhotosetCollection' does not contain a definition for 'PhotosetCollection' and no extension method 'PhotosetCollection' accepting a first argument of type 'FlickrNet.PhotosetCollection' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 27 45 FlickrSync
Error 3 'FlickrNet.FoundUser' does not contain a definition for 'Username' and no extension method 'Username' accepting a first argument of type 'FlickrNet.FoundUser' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 41 83 FlickrSync
Error 4 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Auxiliary\PhotoSort.cs 43 30 FlickrSync
Error 5 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Auxiliary\PhotoSort.cs 50 33 FlickrSync
Error 6 'FlickrNet.PhotosetCollection' does not contain a definition for 'PhotosetCollection' and no extension method 'PhotosetCollection' accepting a first argument of type 'FlickrNet.PhotosetCollection' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 52 41 FlickrSync
Error 7 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Auxiliary\PhotoSort.cs 60 30 FlickrSync
Error 8 'FlickrNet.PhotosetPhotoCollection' does not contain a definition for 'PhotoCollection' and no extension method 'PhotoCollection' accepting a first argument of type 'FlickrNet.PhotosetPhotoCollection' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 63 69 FlickrSync
Error 9 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Auxiliary\PhotoSort.cs 66 33 FlickrSync
Error 10 'FlickrNet.Flickr' does not contain a definition for 'DownloadPicture' and no extension method 'DownloadPicture' accepting a first argument of type 'FlickrNet.Flickr' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 126 44 FlickrSync
Error 11 'FlickrNet.Flickr' does not contain a definition for 'DownloadPicture' and no extension method 'DownloadPicture' accepting a first argument of type 'FlickrNet.Flickr' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 142 22 FlickrSync
Error 12 Cannot implicitly convert type 'System.Collections.ObjectModel.Collection<FlickrNet.PhotoInfoTag>' to 'FlickrNet.PhotoInfoTag[]' Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 192 44 FlickrSync
Error 13 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Sync\SyncView.cs 228 35 FlickrSync
Error 14 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Sync\SyncView.cs 230 39 FlickrSync
Error 15 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Sync\SyncView.cs 231 39 FlickrSync
Error 16 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Sync\SyncView.cs 232 39 FlickrSync
Error 17 'FlickrNet.Photo' does not contain a definition for 'CleanTags' and no extension method 'CleanTags' accepting a first argument of type 'FlickrNet.Photo' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\Sync\SyncView.cs 233 39 FlickrSync
Error 18 Cannot implicitly convert type 'System.Collections.ObjectModel.Collection<FlickrNet.PhotoInfoTag>' to 'FlickrNet.PhotoInfoTag[]' Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 241 36 FlickrSync
Warning 19 'FlickrNet.Flickr.AuthGetFrob()' is obsolete: 'Use OAuth now.' Z:\VisualStudio\flickrsync\FlickrSync\MainApp\FlickrSync.cs 283 31 FlickrSync
Warning 20 'FlickrNet.Flickr.AuthCalcUrl(string, FlickrNet.AuthLevel)' is obsolete: 'Use OAuth now.' Z:\VisualStudio\flickrsync\FlickrSync\MainApp\FlickrSync.cs 284 30 FlickrSync
Warning 21 'FlickrNet.Flickr.AuthGetToken(string)' is obsolete: 'Use OAuth now.' Z:\VisualStudio\flickrsync\FlickrSync\MainApp\FlickrSync.cs 289 33 FlickrSync
Error 22 'FlickrNet.UploadProgressEventArgs' does not contain a definition for 'Bytes' and no extension method 'Bytes' accepting a first argument of type 'FlickrNet.UploadProgressEventArgs' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 317 28 FlickrSync
Error 23 'FlickrNet.UserStatus' does not contain a definition for 'FilesizeMax' and no extension method 'FilesizeMax' accepting a first argument of type 'FlickrNet.UserStatus' could be found (are you missing a using directive or an assembly reference?) Z:\VisualStudio\flickrsync\FlickrSync\MainApp\RemoteInfo.cs 324 50 FlickrSync

DanielRyan wrote Jul 5, 2014 at 9:14 AM

Drat.

Can you just confirm which source version of FlickrSync you are pulling. I'm not sure if the last source version I uploaded may have had some errors because I was still developing it at the time :S

It does look like there are some fairly substantial changes though to how FlickrNet handles authorisation. Your best bet might be to read some of the documentation / forums of that project to see if they offer any clues - I'm pretty sure that's what I did when I was doing my work.

Sorry I can't be of more help but too busy with work that actually pays at the moment.

wrote Jul 5, 2014 at 1:08 PM

wrote Jul 7, 2014 at 6:23 PM

DanielRyan wrote Jul 9, 2014 at 10:45 AM

Just in case people here haven't seen it, the original developer is working on a fix for this issue: https://flickrsync.codeplex.com/discussions/550707

geada wrote Jul 13, 2014 at 5:40 PM

This is now solved in v0.9

wrote Jul 17, 2014 at 9:33 AM