[jira] Commented: (OFBIZ-3988) Redirect from Http to Https causes double service call

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3988) Redirect from Http to Https causes double service call

Nicolas Malin (Jira)

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

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

hi Jacques how are you today,

let me explain my test case, i think the log is (maybe) a little bit confusing.

I set a breakpoint in the setAssociationId Method of the class ThirdPartyEvents.java.

When i know call the request with *http://* (without patch)
http://localhost:8080/ecommerce/control/setdistributor?distributor=4711

The Debugger stops four times in the method. After applying the patch the debugger stops (only) two times in the message.

So without the patch he tries to call the method two times for the http request and again two times for the https request. (can be seen in the request object, the first two have the secure attribute false and the second two true)

I hope that makes my point a little bit clearer.

Have a good day
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.