cancel
Showing results for 
Search instead for 
Did you mean: 

EndPointProxyServlet with POST method

dhalupa
Champ on-the-rise
Champ on-the-rise
Hi,
yesterday I was playing with an idea to embed Jibe based application within Share page and make it shown inside of site, just as document library application is shown.
After arming myself with basic Share and Surf overview using this excellent tutorial this turned out to be easier than expected. Besides some icons and css issues, jibe repository browser seem to be working nicely embedded into the site page. No cheat with iframe was used Smiley Happy

However, I faced one issue.. I am not able to invoke web script through proxy using POST method. Looking at the firebug I can see that processing seems to be blocked for about 20sec and after that 302 is returned. Changing the method to GET makes the same request go smoothly.  

Did anybody else has face this issue with EndPointProxyServlet when using POST method?

Small part of log where relevant POST request is processed is shown bellow.

Kind regards,

Denis


41:06,887  DEBUG [scripts.servlet.EndPointProxyServlet] EndPointProxyServlet preparing to proxy:
14:41:06,887  DEBUG [scripts.servlet.EndPointProxyServlet]  - endpointId: alfresco
14:41:06,887  DEBUG [scripts.servlet.EndPointProxyServlet]  - userId: admin
14:41:06,887  DEBUG [scripts.servlet.EndPointProxyServlet]  - connector: http://localhost:8080/alfresco/s - {cleartextUsername=admin, cleartextPassword=admin}
14:41:06,887  DEBUG [scripts.servlet.EndPointProxyServlet]  - method: GET
14:41:06,887  DEBUG [scripts.servlet.EndPointProxyServlet]  - url: /jibe/resource/resources/images/default/layout/mini-top.gif
14:41:06,918  DEBUG [scripts.servlet.EndPointProxyServlet] EndPointProxyServlet preparing to proxy:
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - endpointId: alfresco
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - userId: admin
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - connector: http://localhost:8080/alfresco/s - {cleartextUsername=admin, cleartextPassword=admin}
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - method: POST
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - url: /jibe/dispatch
14:41:06,918  DEBUG [scripts.servlet.EndPointProxyServlet] EndPointProxyServlet preparing to proxy:
14:41:06,918  DEBUG [scripts.servlet.EndPointProxyServlet] EndPointProxyServlet preparing to proxy:
14:41:06,918  DEBUG [scripts.servlet.EndPointProxyServlet] EndPointProxyServlet preparing to proxy:
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - endpointId: alfresco
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - userId: admin
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - connector: http://localhost:8080/alfresco/s - {cleartextUsername=admin, cleartextPassword=admin}
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - method: GET
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - url: /jibe/resource/resources/images/default/s.gif
14:41:06,902  DEBUG [scripts.servlet.EndPointProxyServlet] EndPointProxyServlet preparing to proxy:
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - endpointId: alfresco
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - userId: admin
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - connector: http://localhost:8080/alfresco/s - {cleartextUsername=admin, cleartextPassword=admin}
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - method: GET
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - url: /jibe/resource/resources/images/default/dd/drop-no.gif
14:41:06,934  DEBUG [alfresco.connector.AuthenticatingConnector] Received 200 on first call to: /jibe/resource/resources/images/default/s.gif
14:41:06,934  DEBUG [alfresco.connector.AuthenticatingConnector] Received 200 on secondcall to: /jibe/resource/resources/images/default/s.gif
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet] Return code: 200
14:41:06,934  DEBUG [scripts.servlet.EndPointProxyServlet]  - endpointId: alfresco
3 REPLIES 3

marcus
Champ in-the-making
Champ in-the-making
I'm getting the same problem, and it appears to have something to do with the endpoint proxy servlet dropping the POST request body when forwarding the request… anyone else able to confirm this?

mikeh
Star Contributor
Star Contributor
Have a look at this recently-closed issue: https://issues.alfresco.com/jira/browse/ETHREEOH-2183

Thanks,
Mike

dhalupa
Champ on-the-rise
Champ on-the-rise
Thanks for info..

Kind regards,

Denis