Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
shotwell
shotwell-publishing-use-https-everywhere.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File shotwell-publishing-use-https-everywhere.patch of Package shotwell
From bc26ea644264c85b9355f265b2e0afefe4943986 Mon Sep 17 00:00:00 2001 From: Jens Georg <mail@jensge.org> Date: Sun, 29 Jan 2017 22:58:22 +0100 Subject: [PATCH] publishing: Use HTTPS everywhere Signed-off-by: Jens Georg <mail@jensge.org> --- plugins/shotwell-publishing-extras/TumblrPublishing.vala | 6 +++--- plugins/shotwell-publishing-extras/YandexPublishing.vala | 6 +++--- plugins/shotwell-publishing/PicasaPublishing.vala | 6 +++--- plugins/shotwell-publishing/YouTubePublishing.vala | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/shotwell-publishing-extras/TumblrPublishing.vala b/plugins/shotwell-publishing-extras/TumblrPublishing.vala index e4ca20aa..f883416b 100644 --- a/plugins/shotwell-publishing-extras/TumblrPublishing.vala +++ b/plugins/shotwell-publishing-extras/TumblrPublishing.vala @@ -59,7 +59,7 @@ public class TumblrService : Object, Spit.Pluggable, Spit.Publishing.Service { namespace Publishing.Tumblr { internal const string SERVICE_NAME = "Tumblr"; -internal const string ENDPOINT_URL = "http://www.tumblr.com/"; +internal const string ENDPOINT_URL = "https://www.tumblr.com/"; internal const string API_KEY = "NdXvXQuKVccOsCOj0H4k9HUJcbcjDBYSo2AkaHzXFECHGNuP9k"; internal const string API_SECRET = "BN0Uoig0MwbeD27OgA0IwYlp3Uvonyfsrl9pf1cnnMj1QoEUvi"; internal const string ENCODE_RFC_3986_EXTRA = "!*'();:@&=+$,/?%#[] \\"; @@ -864,7 +864,7 @@ internal class AccessTokenFetchTransaction : Transaction { internal class UserInfoFetchTransaction : Transaction { public UserInfoFetchTransaction(Session session) { - base.with_uri(session, "http://api.tumblr.com/v2/user/info", + base.with_uri(session, "https://api.tumblr.com/v2/user/info", Publishing.RESTSupport.HttpMethod.POST); } } @@ -895,7 +895,7 @@ internal class UploadTransaction : Publishing.RESTSupport.UploadTransaction { public UploadTransaction(Session session,Spit.Publishing.Publishable publishable, string blog_url) { debug("Init upload transaction"); - base.with_endpoint_url(session, publishable,"http://api.tumblr.com/v2/blog/%s/post".printf(blog_url) ); + base.with_endpoint_url(session, publishable,"https://api.tumblr.com/v2/blog/%s/post".printf(blog_url) ); this.session = session; } diff --git a/plugins/shotwell-publishing-extras/YandexPublishing.vala b/plugins/shotwell-publishing-extras/YandexPublishing.vala index 2ee67cfe..00b61d14 100644 --- a/plugins/shotwell-publishing-extras/YandexPublishing.vala +++ b/plugins/shotwell-publishing-extras/YandexPublishing.vala @@ -23,7 +23,7 @@ public class YandexService : Object, Spit.Pluggable, Spit.Publishing.Service { info.translators = Resources.TRANSLATORS; info.version = _VERSION; info.website_name = _("Visit the Yandex.Fotki web site"); - info.website_url = "http://fotki.yandex.ru/"; + info.website_url = "https://fotki.yandex.ru/"; info.is_license_wordwrapped = false; info.license = Resources.LICENSE; } @@ -620,7 +620,7 @@ public class YandexPublisher : Spit.Publishing.Publisher, GLib.Object { public void fetch_account_information(string auth_token) { session.set_auth_token(auth_token); - Transaction t = new Transaction.with_url(session, "http://api-fotki.yandex.ru/api/me/"); + Transaction t = new Transaction.with_url(session, "https://api-fotki.yandex.ru/api/me/"); t.completed.connect(fetch_account_complete); t.network_error.connect(fetch_account_error); @@ -647,7 +647,7 @@ public class YandexPublisher : Spit.Publishing.Publisher, GLib.Object { private void start_web_auth() { host.set_service_locked(false); - web_auth_pane = new WebAuthPane(("http://oauth.yandex.ru/authorize?client_id=%s&response_type=token").printf(client_id)); + web_auth_pane = new WebAuthPane(("https://oauth.yandex.ru/authorize?client_id=%s&response_type=token").printf(client_id)); web_auth_pane.login_succeeded.connect(web_auth_login_succeeded); web_auth_pane.login_failed.connect(web_auth_login_failed); diff --git a/plugins/shotwell-publishing/PicasaPublishing.vala b/plugins/shotwell-publishing/PicasaPublishing.vala index a393c08d..843c7948 100644 --- a/plugins/shotwell-publishing/PicasaPublishing.vala +++ b/plugins/shotwell-publishing/PicasaPublishing.vala @@ -67,7 +67,7 @@ public class PicasaPublisher : Publishing.RESTSupport.GooglePublisher { public PicasaPublisher(Spit.Publishing.Service service, Spit.Publishing.PluginHost host) { - base(service, host, "http://picasaweb.google.com/data/"); + base(service, host, "https://picasaweb.google.com/data/"); this.publishing_parameters = new PublishingParameters(); load_parameters_from_configuration_system(publishing_parameters); @@ -473,7 +473,7 @@ internal class Album { internal class AlbumDirectoryTransaction : Publishing.RESTSupport.GooglePublisher.AuthenticatedTransaction { - private const string ENDPOINT_URL = "http://picasaweb.google.com/data/feed/api/user/" + + private const string ENDPOINT_URL = "https://picasaweb.google.com/data/feed/api/user/" + "default"; public AlbumDirectoryTransaction(Publishing.RESTSupport.GoogleSession session) { @@ -491,7 +491,7 @@ internal class AlbumDirectoryTransaction : private class AlbumCreationTransaction : Publishing.RESTSupport.GooglePublisher.AuthenticatedTransaction { - private const string ENDPOINT_URL = "http://picasaweb.google.com/data/feed/api/user/" + + private const string ENDPOINT_URL = "https://picasaweb.google.com/data/feed/api/user/" + "default"; private const string ALBUM_ENTRY_TEMPLATE = "<?xml version='1.0' encoding='utf-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gphoto='http://schemas.google.com/photos/2007'><title type='text'>%s</title><gphoto:access>%s</gphoto:access><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'></category></entry>"; diff --git a/plugins/shotwell-publishing/YouTubePublishing.vala b/plugins/shotwell-publishing/YouTubePublishing.vala index 7325c326..597cf21b 100644 --- a/plugins/shotwell-publishing/YouTubePublishing.vala +++ b/plugins/shotwell-publishing/YouTubePublishing.vala @@ -104,7 +104,7 @@ private class PublishingParameters { public class YouTubePublisher : Publishing.RESTSupport.GooglePublisher { private class ChannelDirectoryTransaction : Publishing.RESTSupport.GooglePublisher.AuthenticatedTransaction { - private const string ENDPOINT_URL = "http://gdata.youtube.com/feeds/users/default"; + private const string ENDPOINT_URL = "https://gdata.youtube.com/feeds/users/default"; public ChannelDirectoryTransaction(Publishing.RESTSupport.GoogleSession session) { base(session, ENDPOINT_URL, Publishing.RESTSupport.HttpMethod.GET); @@ -518,7 +518,7 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, GLib.Object { } internal class UploadTransaction : Publishing.RESTSupport.GooglePublisher.AuthenticatedTransaction { - private const string ENDPOINT_URL = "http://uploads.gdata.youtube.com/feeds/api/users/default/uploads"; + private const string ENDPOINT_URL = "https://uploads.gdata.youtube.com/feeds/api/users/default/uploads"; private const string UNLISTED_XML = "<yt:accessControl action='list' permission='denied'/>"; private const string PRIVATE_XML = "<yt:private/>"; private const string METADATA_TEMPLATE ="""<?xml version='1.0'?> -- 2.14.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor