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 698178 - Problem with goa and http/https gnome proxy
Problem with goa and http/https gnome proxy
Status: RESOLVED FIXED
Product: gnome-online-accounts
Classification: Core
Component: general
3.8.x
Other Linux
: Normal critical
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-04-17 07:00 UTC by Baste
Modified: 2013-04-23 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use SoupProxyResolverDefault with GoaEwsClient and GoaHttpClient (1.82 KB, patch)
2013-04-22 16:20 UTC, Debarshi Ray
committed Details | Review

Description Baste 2013-04-17 07:00:25 UTC
Hi,

I have problems with goa and http/https gnome proxy.
I use libsoub-2.42.1, glib-networking-2.36.1 and goa-3.8.1.

I can well create a google account in goa, but when i use gnome-document or empathy, Goa asks to re-authenticate me.

I check with seahorse, i'm have one account.

for exemple, i'm delete my google account, i'm use /usr/libexex/goa-daemon --replace, create a google account, and use gnome-document

/usr/libexec/goa-daemon --replace
08:52:42.742:[10536]:[NOTICE]: goa-daemon version 3.8.1 starting [main.c:113, main()]
08:52:42.743:[10536]:[INFO]: Entering main event loop [main.c:133, main()]
08:52:42.750:[10536]:[INFO]: Connected to the session bus [main.c:58, on_bus_acquired()]
08:52:42.751:[10536]:[INFO]: Acquired the name org.gnome.OnlineAccounts on the session message bus [main.c:75, on_name_acquired()]
08:58:12.427:[10536]:[DEBUG]: Stored keyring credentials for identity: account_1366181892 [goautils.c:292, goa_utils_store_credentials_for_id_sync()]
08:58:12.427:[10536]:[DEBUG]: adding /org/gnome/OnlineAccounts/Accounts/account_1366181892 [goadaemon.c:598, process_config_entries()]
08:58:12.427:[10536]:[DEBUG]: updating /org/gnome/OnlineAccounts/Accounts/account_1366181892 1 [goadaemon.c:459, update_account_object()]
08:58:13.090:[10845]:[DEBUG]: Retreived keyring credentials for id: account_1366181892 [goautils.c:218, goa_utils_lookup_credentials_sync()]
08:58:13.090:[10845]:[DEBUG]: Returning locally cached credentials (expires in 3599 seconds) [goaoauth2provider.c:1584, goa_oauth2_provider_get_access_token_sync()]
08:58:13.639:[10536]:[INFO]: Reloading configuration files
 [goadaemon.c:160, on_config_file_monitor_timeout()]
08:58:13.640:[10536]:[DEBUG]: unchanged /org/gnome/OnlineAccounts/Accounts/account_1366181892 [goadaemon.c:631, process_config_entries()]
08:58:13.640:[10536]:[DEBUG]: updating /org/gnome/OnlineAccounts/Accounts/account_1366181892 0 [goadaemon.c:459, update_account_object()]
08:58:13.690:[10845]:[DEBUG]: Retreived keyring credentials for id: account_1366181892 [goautils.c:218, goa_utils_lookup_credentials_sync()]


08:58:27.773:[10536]:[NOTICE]: /org/gnome/OnlineAccounts/Accounts/account_1366181892: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: Invalid password with username `svincent.fw@gmail.com' (goa-error-quark, 0): Code: 6 - Unexpected response from server (goa-error-quark, 4) [goadaemon.c:1085, ensure_credentials_cb()]


But without proxy, i'm not a problem.
Comment 1 Debarshi Ray 2013-04-22 16:20:33 UTC
Created attachment 242149 [details] [review]
Use SoupProxyResolverDefault with GoaEwsClient and GoaHttpClient

Can you please try this patch?
Comment 2 Baste 2013-04-23 06:07:34 UTC
Hi,
i rebuild goa with patch, delete my google user, recreate, check seahorse, but same issue.

/usr/libexec/goa-daemon --replace
07:55:34.283:[1206]:[NOTICE]: goa-daemon version 3.8.1 starting [main.c:113, main()]
07:55:34.285:[1206]:[INFO]: Entering main event loop [main.c:133, main()]
07:55:34.291:[1206]:[DEBUG]: adding /org/gnome/OnlineAccounts/Accounts/account_1366696512 [goadaemon.c:598, process_config_entries()]
07:55:34.291:[1206]:[DEBUG]: updating /org/gnome/OnlineAccounts/Accounts/account_1366696512 1 [goadaemon.c:459, update_account_object()]
07:55:34.291:[1206]:[INFO]: Connected to the session bus [main.c:58, on_bus_acquired()]
07:55:34.292:[1206]:[INFO]: Acquired the name org.gnome.OnlineAccounts on the session message bus [main.c:75, on_name_acquired()]
07:55:44.441:[1208]:[DEBUG]: Retreived keyring credentials for id: account_1366696512 [goautils.c:218, goa_utils_lookup_credentials_sync()]
07:55:44.441:[1208]:[DEBUG]: Returning locally cached credentials (expires in 3567 seconds) [goaoauth2provider.c:1584, goa_oauth2_provider_get_access_token_sync()]
07:55:44.908:[1208]:[DEBUG]: Retreived keyring credentials for id: account_1366696512 [goautils.c:218, goa_utils_lookup_credentials_sync()]
07:55:45.506:[1206]:[NOTICE]: /org/gnome/OnlineAccounts/Accounts/account_1366696512: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: Invalid password with username `svincent.fw@gmail.com' (goa-error-quark, 0): Code: 401 - Unexpected response from server (goa-error-quark, 4) [goadaemon.c:1085, ensure_credentials_cb()]
Comment 3 Debarshi Ray 2013-04-23 11:45:29 UTC
Looks like you got error code [1] SOUP_STATUS_SSL_FAILED  or 6 from libsoup without the patch and SOUP_STATUS_UNAUTHORIZED  or 401 with it.

Does the proxy require you to authenticate with it? Do you have the proxy configured in Network -> Network proxy?

I don't have a proxy set up on my network so I am lost here. For what it is worth, goa_http_client_check and http_client_check_response_cb in goahttpclient.c is the site of the error.

[1] https://developer.gnome.org/libsoup/stable/libsoup-2.4-soup-status.html#SoupKnownStatusCode
Comment 4 Baste 2013-04-23 13:51:57 UTC
Hi,

Well I just retested and does it work now.

Good work, I due to a false manipulation :(

Thank you very much
Comment 5 Debarshi Ray 2013-04-23 14:08:06 UTC
Comment on attachment 242149 [details] [review]
Use SoupProxyResolverDefault with GoaEwsClient and GoaHttpClient

Thank you very much for testing it. Pushing to both master and gnome-3-8.