Server Hit Bin, counterHit receive delegator
-------------------------------------------- Key: OFBIZ-3984 URL: https://issues.apache.org/jira/browse/OFBIZ-3984 Project: OFBiz Issue Type: Improvement Components: ALL COMPONENTS Affects Versions: SVN trunk Reporter: Sascha Rodekamp Fix For: SVN trunk Hi, here is a little patch to improve the delegator call in the countHit method. The method got the delegator name from the session and get with this delegator name over the delegator factory the delegator. But when the delegator name is not available in the session the method crashes. I try to get the delegator from the request, and if their is no delegator object i go the factory way. I think it's a little bit saver to get an delegator object over this way Have a nice day Sascha -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sascha Rodekamp updated OFBIZ-3984: ----------------------------------- Attachment: OFBIZ-3984_serverHitBin.patch > Server Hit Bin, counterHit receive delegator > -------------------------------------------- > > Key: OFBIZ-3984 > URL: https://issues.apache.org/jira/browse/OFBIZ-3984 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Sascha Rodekamp > Fix For: SVN trunk > > Attachments: OFBIZ-3984_serverHitBin.patch > > > Hi, > here is a little patch to improve the delegator call in the countHit method. > The method got the delegator name from the session and get with this delegator name over the delegator factory the delegator. > But when the delegator name is not available in the session the method crashes. > I try to get the delegator from the request, and if their is no delegator object i go the factory way. > I think it's a little bit saver to get an delegator object over this way > Have a nice day > Sascha -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-3984. ---------------------------------- Resolution: Fixed Assignee: Jacques Le Roux Sascha, Your patch is in trunk at r1021344 I wondered why you removed the _if (UtilValidate.isNotEmpty(delegatorName)) {_ check, but found that anyway _DelegatorFactory.getDelegator(_ will pick _"default"_ in such case > Server Hit Bin, counterHit receive delegator > -------------------------------------------- > > Key: OFBIZ-3984 > URL: https://issues.apache.org/jira/browse/OFBIZ-3984 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Sascha Rodekamp > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-3984_serverHitBin.patch > > > Hi, > here is a little patch to improve the delegator call in the countHit method. > The method got the delegator name from the session and get with this delegator name over the delegator factory the delegator. > But when the delegator name is not available in the session the method crashes. > I try to get the delegator from the request, and if their is no delegator object i go the factory way. > I think it's a little bit saver to get an delegator object over this way > Have a nice day > Sascha -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919829#action_12919829 ] Sascha Rodekamp commented on OFBIZ-3984: ---------------------------------------- That's exactly the point Jacques ;) Thanks for commit! Have a good day > Server Hit Bin, counterHit receive delegator > -------------------------------------------- > > Key: OFBIZ-3984 > URL: https://issues.apache.org/jira/browse/OFBIZ-3984 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Sascha Rodekamp > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-3984_serverHitBin.patch > > > Hi, > here is a little patch to improve the delegator call in the countHit method. > The method got the delegator name from the session and get with this delegator name over the delegator factory the delegator. > But when the delegator name is not available in the session the method crashes. > I try to get the delegator from the request, and if their is no delegator object i go the factory way. > I think it's a little bit saver to get an delegator object over this way > Have a nice day > Sascha -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Hi Sascha, Jacques
Does this also resolve issue 3972? https://issues.apache.org/jira/browse/OFBIZ-3972 Regards, Pierre 2010/10/11 Sascha Rodekamp (JIRA) <[hidden email]> > > [ > https://issues.apache.org/jira/browse/OFBIZ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919829#action_12919829] > > Sascha Rodekamp commented on OFBIZ-3984: > ---------------------------------------- > > That's exactly the point Jacques ;) > Thanks for commit! > > Have a good day > > > Server Hit Bin, counterHit receive delegator > > -------------------------------------------- > > > > Key: OFBIZ-3984 > > URL: https://issues.apache.org/jira/browse/OFBIZ-3984 > > Project: OFBiz > > Issue Type: Improvement > > Components: ALL COMPONENTS > > Affects Versions: SVN trunk > > Reporter: Sascha Rodekamp > > Assignee: Jacques Le Roux > > Fix For: SVN trunk > > > > Attachments: OFBIZ-3984_serverHitBin.patch > > > > > > Hi, > > here is a little patch to improve the delegator call in the countHit > method. > > The method got the delegator name from the session and get with this > delegator name over the delegator factory the delegator. > > But when the delegator name is not available in the session the method > crashes. > > I try to get the delegator from the request, and if their is no delegator > object i go the factory way. > > I think it's a little bit saver to get an delegator object over this way > > Have a nice day > > Sascha > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > |
'Hi Pierre,
no sorry, the patch was only a little improvement between the lines :). It don't solves the issue 3972. Cheers 2010/10/12 Pierre Smits <[hidden email]> > Hi Sascha, Jacques > > Does this also resolve issue 3972? > > https://issues.apache.org/jira/browse/OFBIZ-3972 > > Regards, > > Pierre > > 2010/10/11 Sascha Rodekamp (JIRA) <[hidden email]> > > > > > [ > > > https://issues.apache.org/jira/browse/OFBIZ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919829#action_12919829 > ] > > > > Sascha Rodekamp commented on OFBIZ-3984: > > ---------------------------------------- > > > > That's exactly the point Jacques ;) > > Thanks for commit! > > > > Have a good day > > > > > Server Hit Bin, counterHit receive delegator > > > -------------------------------------------- > > > > > > Key: OFBIZ-3984 > > > URL: https://issues.apache.org/jira/browse/OFBIZ-3984 > > > Project: OFBiz > > > Issue Type: Improvement > > > Components: ALL COMPONENTS > > > Affects Versions: SVN trunk > > > Reporter: Sascha Rodekamp > > > Assignee: Jacques Le Roux > > > Fix For: SVN trunk > > > > > > Attachments: OFBIZ-3984_serverHitBin.patch > > > > > > > > > Hi, > > > here is a little patch to improve the delegator call in the countHit > > method. > > > The method got the delegator name from the session and get with this > > delegator name over the delegator factory the delegator. > > > But when the delegator name is not available in the session the method > > crashes. > > > I try to get the delegator from the request, and if their is no > delegator > > object i go the factory way. > > > I think it's a little bit saver to get an delegator object over this > way > > > Have a nice day > > > Sascha > > > > -- > > This message is automatically generated by JIRA. > > - > > You can reply to this email to add a comment to the issue online. > > > > > -- Sascha Rodekamp Lynx-Consulting GmbH Johanniskirchplatz 6 D-33615 Bielefeld http://www.lynx.de |
Free forum by Nabble | Edit this page |