After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722202 - Add support for Rajce.net photo sharing service
Add support for Rajce.net photo sharing service
Status: RESOLVED FIXED
Product: shotwell
Classification: Other
Component: web-sharing
unspecified
Other Linux
: Normal normal
: 0.20
Assigned To: Shotwell Maintainers
Shotwell Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-14 18:56 UTC by Jim Nelson
Modified: 2014-05-06 18:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
New and changed files to add Racje.net photo sharing support to Shotwell (23.46 KB, application/x-xz)
2014-01-14 18:57 UTC, Jim Nelson
  Details
Rajce publishing extra plugin - patch for Shotwell 0.14.1 (85.15 KB, patch)
2014-02-17 22:50 UTC, Petr
none Details | Review

Description Jim Nelson 2014-01-14 18:56:41 UTC
We received a request on the Shotwell mailing list to add an extras plugin to support Racje.net, a photo sharing service in the Czech Republic.  The plugin was developed by Racje.net.

I'll attach the original diff to this ticket.  It's not a proper patch, but an archive of new and changed files that must be moved into the right locations in the Shotwell source tree.
Comment 1 Jim Nelson 2014-01-14 18:57:21 UTC
Created attachment 266291 [details]
New and changed files to add Racje.net photo sharing support to Shotwell
Comment 2 Jim Nelson 2014-01-14 19:22:53 UTC
There's an issue with this patch.  The plugin stores the password in the clear in GSettings.  Our other plugins (including in Extras) store authentication tokens generated server-side.

Petr, does Rajce.net generate auth tokens for its service?  Can those be stored instead of passwords?

I've created a branch with this plugin at wip/722202-rajce
Comment 3 Petr 2014-02-17 14:36:20 UTC
(In reply to comment #2)
> There's an issue with this patch.  The plugin stores the password in the clear
> in GSettings.  Our other plugins (including in Extras) store authentication
> tokens generated server-side.
> 
> Petr, does Rajce.net generate auth tokens for its service?  Can those be stored
> instead of passwords?
> 
> I've created a branch with this plugin at wip/722202-rajce

I've changed the code to be safer - storing hashes instead of unencrypted passwords in GSettings. Rajce.net does generate tokens, but with limited lifetime only. Storing those tokens would be another possibility, but not so reliable.
Comment 4 Jim Nelson 2014-02-17 19:20:58 UTC
Petr, can you attach a diff to this ticket, or a link to a repo?

I'm wary of hashing the password if your code is simply obfuscating it.  If the tokens have a reasonable lifetime, it's okay to store them.  Our other web sharing plugins do that as well.
Comment 5 Petr 2014-02-17 22:50:06 UTC
Created attachment 269474 [details] [review]
Rajce publishing extra plugin - patch for Shotwell 0.14.1
Comment 6 Petr 2014-02-17 22:57:54 UTC
(In reply to comment #4)
> Petr, can you attach a diff to this ticket, or a link to a repo?
> 
> I'm wary of hashing the password if your code is simply obfuscating it.  If the
> tokens have a reasonable lifetime, it's okay to store them.  Our other web
> sharing plugins do that as well.

Jim,
the patch has been attached (as a patch to Shotwell 0.14.1, still the version storing encrypted passwords on client side). I'm going to check usability and exact lifetime of tokens with Rajce.net service developer. If possible, I'll use them in the next version, merged with the latest Shotwell code. Will you agree?
Comment 7 Jim Nelson 2014-05-06 18:14:54 UTC
Pushed to master, commit afd4a3

Thanks for your patience, Petr, this is now committed to master.  One thing: I don't believe your patch included the racje.png icon file.  I've created a new ticket for at at bug #729666.  If you attach the file directly to that ticket, I'll commit it to Shotwell.