[ 
https://issues.apache.org/jira/browse/OFBIZ-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930151#action_12930151
 ] 

Sascha Rodekamp commented on OFBIZ-3988:
----------------------------------------

Hi Jacques,

here is a example on the DEMO System:


http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/setdistributor?distributor=4711

Have a look in the log file, you will find something like:
 
[ RequestHandler.java:694:INFO ] Sending redirect to: 
[https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/setdistributor?distributor=4711],
 sessionId=6168538EE2980500EAC52585C21EB384.jvm1 
2010-11-09 14:27:33,593 (TP-Processor31) [ ThirdPartyEvents.java:175:WARN ] 
Cannot associate distributor since not logged in yet 
2010-11-09 14:27:33,594 (TP-Processor31) [ ThirdPartyEvents.java:175:WARN ] 
Cannot associate distributor since not logged in yet 


ThirdPartyEvents is called twice.

Cheers
Sascha

> Redirect from Http to Https causes double service call
> ------------------------------------------------------
>
>                 Key: OFBIZ-3988
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3988
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Sascha Rodekamp
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3988_RequestHandler.java.patch
>
>
> Hi guys,
> little patch a big effect :)
> The problem is, when you call a request over http, but the controller wants 
> an https request, the RequestHandler make an redirect to https (which is 
> indeed pretty cool). But this redirect causes that Events/ Services will be 
> called twice.
> This can be avoided when we return from the Service/ Event directly after 
> doing the redirect.
> Have a good day
> Sascha

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to