Opened 10 years ago

Closed 10 years ago

#431 closed bug (fixed)

google documents integration, ...

Reported by: ales.list Owned by:
Priority: minor Milestone:
Component: Google Drive Version: 6.8.4
Keywords: cookie, ajp, apache, proxy Cc:

Description

Hello,

Our setup:

Frontend apache with config:


...
ServerName? server.example.org
...
SSLEngine on
...
ProxyPass? / ajp://server.example.org:8009/
ProxyPassReverse? / ajp://server.example.org:8009/
...


Backend tomcat with ajp conector enabled.


server-url==https://server.example.org


Error: (when creating/saving/edit document in Google documents)

ERROR (com.logicaldoc.gdocs.GDocsServiceImpl: 278) -- Error importing document spreadsheet:...

java.lang.IllegalArgumentException: Trying to set foreign cookie
        at com.google.gdata.client.http.GoogleGDataRequest$GoogleCookie.<init>(GoogleGDataRequest.java:167)
        at com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.put(GoogleGDataRequest.java:400)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:711)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(HttpURLConnection.java:2701)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFields(HttpsURLConnectionImpl.java:283)
        at com.google.gdata.client.http.HttpGDataRequest.isOAuthProxyErrorResponse(HttpGDataRequest.java:566)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:557)
        at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)
        at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)
        at com.google.gdata.client.media.MediaService.getMediaResource(MediaService.java:233)
        at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:285)
        at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:301)
        at com.logicaldoc.gdocs.GDocsClient.downloadFile(GDocsClient.java:557)
        at com.logicaldoc.gdocs.GDocsClient.downloadSpreadsheet(GDocsClient.java:618)
        at com.logicaldoc.gdocs.GDocsServiceImpl.importDocuments(GDocsServiceImpl.java:258)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.logicaldoc.web.CharsetFilter.doFilter(CharsetFilter.java:26)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.logicaldoc.web.SessionFilter.doFilter(SessionFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)

Change History (4)

comment:1 Changed 10 years ago by car031

  • Milestone 7.0 deleted
  • Priority changed from Major to Minor

the proxy confoiguration you do on apache or tomcat doesn't matter. The problem is that the GDocs client must be able to connect directly to google docs server directly from your logicaldoc machine without any intermediary proxy.

comment:2 Changed 10 years ago by ales.list

Hello,

  • logicaldoc (back-end server) is able to directly connect GDocs server
  • connection to GDocs server does not traverse proxy
  • apache is configured as reverse proxy and traversed only by clients accessing back-end logicaldoc server
  • same operation is successful when client is accessing logicaldoc back-end server directly

Br, Ales

comment:3 Changed 10 years ago by car031

in this case log in GDocs with your browser so your browser will acquire the google cookies. then open the Menu: Tools->Google Docs->Account and setup your account

Now try again to edit in GDocs.

comment:4 Changed 10 years ago by ales.list

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.