Dynalon / Rainy

Simple Tomboy/Tomdroid cloud/syncing server. Written in C# with AngularJS web frontend. Supports SQLite & Postgres Backends.
http://dynalon.github.io/Rainy
GNU Affero General Public License v3.0
88 stars 15 forks source link

Rainy does nothing after Tomboy passes oAuth #46

Open hans109h opened 10 years ago

hans109h commented 10 years ago

I launch Rainy, and it brings up the Admin panel, I create a user, then launch tomboy and try to do a first sync and it launches this url: https://192.168.0.2:8080/oauth/authorize///?oauth_token=27f0d9cfe6076257b1dd43d85fe1073a&oauth_callback=http%3a%2f%2flocalhost%3a8001%2ftomboy-web-sync%2f

and then nothing happens.

debug log:

14/09/09_19:33:50.429 [DEBUG] Main->SetupLogging - Writing all log messages to file: debug.log 14/09/09_19:33:50.432 [DEBUG] Main->ConfigureSslCerts - using SSL cert ./data/ssl-cert.cer with private key file ./data/ssl-cert.pvk 14/09/09_19:33:50.629 [DEBUG] Rainy.RainyStandaloneServer->Start - starting http listener at: https://192.168.0.2:8080/ 14/09/09_19:33:51.825 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request at: /api/admin/alluser/ Deserialized data (JSV): {

} 14/09/09_19:33:51.825 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request headers:

14/09/09_19:33:51.826 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Host: 192.168.0.2:8080 14/09/09_19:33:51.826 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 14/09/0919:33:51.826 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept: /_ 14/09/09_19:33:51.826 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Language: en-US,en;q=0.5 14/09/09_19:33:51.826 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Encoding: gzip, deflate 14/09/09_19:33:51.826 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - X-Requested-With: XMLHttpRequest 14/09/09_19:33:51.827 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Referer: https://192.168.0.2:8080/admin/ 14/09/09_19:33:51.827 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Connection: keep-alive 14/09/09_19:33:53.759 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request at: /api/admin/status/ Deserialized data (JSV): {

} 14/09/09_19:33:53.759 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request headers:

14/09/09_19:33:53.759 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Host: 192.168.0.2:8080 14/09/09_19:33:53.759 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 14/09/0919:33:53.759 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept: /_ 14/09/09_19:33:53.759 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Language: en-US,en;q=0.5 14/09/09_19:33:53.759 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Encoding: gzip, deflate 14/09/09_19:33:53.760 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - X-Requested-With: XMLHttpRequest 14/09/09_19:33:53.760 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Referer: https://192.168.0.2:8080/admin/ 14/09/09_19:33:53.760 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Connection: keep-alive 14/09/09_19:33:53.828 [DEBUG] Rainy.WebService.ResponseLogFilterAttribute->ResponseFilter - Unserialized response data to send (JSV): { Uptime: 2014-09-09T19:33:50.664432Z, NumberOfUser: 1, NumberOfRequests: 0, TotalNumberOfNotes: 0, AverageNotesPerUser: 0 } 14/09/09_19:33:53.903 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request at: /api/admin/alluser/ Deserialized data (JSV): {

} 14/09/09_19:33:53.904 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request headers:

14/09/09_19:33:53.904 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Host: 192.168.0.2:8080 14/09/09_19:33:53.904 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 14/09/0919:33:53.904 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept: /_ 14/09/09_19:33:53.904 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Language: en-US,en;q=0.5 14/09/09_19:33:53.904 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Encoding: gzip, deflate 14/09/09_19:33:53.905 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - X-Requested-With: XMLHttpRequest 14/09/09_19:33:53.905 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Referer: https://192.168.0.2:8080/admin/ 14/09/09_19:33:53.905 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Connection: keep-alive 14/09/09_19:33:53.939 [DEBUG] Rainy.WebService.ResponseLogFilterAttribute->ResponseFilter - Unserialized response data to send (JSV): [ { Username: , Password: , EmailAddress: @test.com, IsVerified: True, IsActivated: True } ] 14/09/09_19:34:06.101 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request at: ///api/1.0 Deserialized data (JSV): { Username: , Password: } 14/09/09_19:34:06.101 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request headers:

14/09/09_19:34:06.102 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Host: 192.168.0.2:8080 14/09/09_19:34:06.104 [DEBUG] Rainy.WebService.ApiService->Get - ApiRequest received 14/09/09_19:34:06.109 [DEBUG] Rainy.WebService.ResponseLogFilterAttribute->ResponseFilter - Unserialized response data to send (JSV): { user-ref: { api-ref: "https://192.168.0.2:8080/api/1.0/", href: "https://192.168.0.2:8080/" }, oauth_request_token_url: "https://192.168.0.2:8080/oauth/request_token", oauth_authorize_url: "https://192.168.0.2:8080/oauth/authorize///", oauth_access_token_url: "https://192.168.0.2:8080/oauth/access_token", api-version: 1.0 } 14/09/09_19:34:06.170 [DEBUG] Rainy.ErrorHandling.ExceptionHandler->HandleException - When obtaining a request token, you must not supply the oauth_token parameter 14/09/09_19:34:06.170 [DEBUG] Rainy.ErrorHandling.ExceptionHandler->LogExceptionDetails - at DevDefined.OAuth.Framework.Error.RequestForTokenMustNotIncludeTokenInContext (DevDefined.OAuth.Framework.IOAuthContext) [0x00001] in /home/timo/Rainy/tomboy-library-websync/DevDefined.OAuth/src/DevDefined.OAuth/Framework/Error.cs:201 at DevDefined.OAuth.Provider.OAuthProvider.AssertContextDoesNotIncludeToken (DevDefined.OAuth.Framework.IOAuthContext) [0x00014] in /home/timo/Rainy/tomboy-library-websync/DevDefined.OAuth/src/DevDefined.OAuth/Provider/OAuthProvider.cs:107 at DevDefined.OAuth.Provider.OAuthProvider.GrantRequestToken (DevDefined.OAuth.Framework.IOAuthContext) [0x00001] in /home/timo/Rainy/tomboy-library-websync/DevDefined.OAuth/src/DevDefined.OAuth/Provider/OAuthProvider.cs:54 at Rainy.WebService.OAuth.OAuthRequestTokenService.Get (Rainy.WebService.OAuth.OAuthRequestTokenRequest) [0x00029] in /home/timo/Rainy/Rainy/WebService/OAuth/OAuthService.cs:52 at Rainy.WebService.OAuth.OAuthRequestTokenService.Post (Rainy.WebService.OAuth.OAuthRequestTokenRequest) [0x00001] in /home/timo/Rainy/Rainy/WebService/OAuth/OAuthService.cs:62 at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure,object,object) <IL 0x00007, 0x00074> at ServiceStack.ServiceHost.ServiceRunner`1.Execute (ServiceStack.ServiceHost.IRequestContext,object,Rainy.WebService.OAuth.OAuthRequestTokenRequest) <0x002af>

14/09/09_19:34:07.751 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request at: ///api/1.0 Deserialized data (JSV): { Username: , Password: } 14/09/09_19:34:07.752 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request headers:

14/09/09_19:34:07.752 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Host: 192.168.0.2:8080 14/09/09_19:34:07.752 [DEBUG] Rainy.WebService.ApiService->Get - ApiRequest received 14/09/09_19:34:07.752 [DEBUG] Rainy.WebService.ResponseLogFilterAttribute->ResponseFilter - Unserialized response data to send (JSV): { user-ref: { api-ref: "https://192.168.0.2:8080/api/1.0/", href: "https://192.168.0.2:8080/" }, oauth_request_token_url: "https://192.168.0.2:8080/oauth/request_token", oauth_authorize_url: "https://192.168.0.2:8080/oauth/authorize///", oauth_access_token_url: "https://192.168.0.2:8080/oauth/access_token", api-version: 1.0 } 14/09/09_19:34:07.868 [DEBUG] Rainy.WebService.OAuth.OAuthRequestTokenService->Get - granting request token oauth_token=26ef1c044269716922bbf93c27da6768&oauth_token_secret=480dfe080adb31dd981275d2c5d02cff&oauth_callback_confirmed=true to consumer 14/09/09_19:34:07.944 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request at: /oauth/authorize///?oauth_token=26ef1c044269716922bbf93c27da6768&oauth_callback=http%3a%2f%2flocalhost%3a8002%2ftomboy-web-sync%2f Deserialized data (JSV): { Username: , Password: } 14/09/09_19:34:07.944 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request headers:

14/09/09_19:34:07.945 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Host: 192.168.0.2:8080 14/09/09_19:34:07.945 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 14/09/0919:34:07.945 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8 14/09/09_19:34:07.945 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Language: en-US,en;q=0.5 14/09/09_19:34:07.945 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Accept-Encoding: gzip, deflate 14/09/09_19:34:07.945 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Connection: keep-alive 14/09/09_19:34:08.078 [DEBUG] Rainy.WebService.OAuth.OAuthAuthenticateService->TokenExchangeAfterAuthentication - created an access token for user : 26ef1c044269716922bbf93c27da6768 14/09/09_19:34:15.540 [DEBUG] Main->Main - received signal, exiting

Dynalon commented 10 years ago

What version of tomboy are you using on what system (distro, version)?

Additionally, from the log I can see way to many trailing slashes '///' on the url - you should adjust that in the rainy settings and / or tomboy sync url setting.

hans109h commented 10 years ago

I'm not sure why it posted so many trailing slashes. This is what I get:

https://192.168.0.2:8080/oauth/authorize/testuser/password/?oauth_token=3df0e23b4ba6add7a02aafcdd0b80ca6&oauth_callback=http%3a%2f%2flocalhost%3a8001%2ftomboy-web-sync%2f

I am using Tomboy 1.15.4 on Ubuntu Gnome 14.04