runSubscriptionAutoReorders places duplicate orderIds
----------------------------------------------------- Key: OFBIZ-4762 URL: https://issues.apache.org/jira/browse/OFBIZ-4762 Project: OFBiz Issue Type: Bug Components: order Affects Versions: SVN trunk Reporter: Sebastian Leitner Priority: Minor The services "runSubscriptionAutoReorders" runs every midnight by default. It checks for expired subscriptions and places a new order to extend them. It fills up a cart from the previous order and places the order. It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database. I will attach a patch for this. - Sebastian -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebastian Leitner updated OFBIZ-4762: ------------------------------------- Attachment: OrderServices.java.patch > runSubscriptionAutoReorders places duplicate orderIds > ----------------------------------------------------- > > Key: OFBIZ-4762 > URL: https://issues.apache.org/jira/browse/OFBIZ-4762 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Reporter: Sebastian Leitner > Priority: Minor > Attachments: OrderServices.java.patch > > > The services "runSubscriptionAutoReorders" runs every midnight by default. It checks for expired subscriptions and places a new order to extend them. It fills up a cart from the previous order and places the order. > It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database. > I will attach a patch for this. > - Sebastian -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sascha Rodekamp reassigned OFBIZ-4762: -------------------------------------- Assignee: Sascha Rodekamp > runSubscriptionAutoReorders places duplicate orderIds > ----------------------------------------------------- > > Key: OFBIZ-4762 > URL: https://issues.apache.org/jira/browse/OFBIZ-4762 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Reporter: Sebastian Leitner > Assignee: Sascha Rodekamp > Priority: Minor > Attachments: OrderServices.java.patch > > > The services "runSubscriptionAutoReorders" runs every midnight by default. It checks for expired subscriptions and places a new order to extend them. It fills up a cart from the previous order and places the order. > It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database. > I will attach a patch for this. > - Sebastian -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sascha Rodekamp closed OFBIZ-4762. ---------------------------------- Resolution: Fixed Fix Version/s: SVN trunk Release Branch 11.04 Release Branch 10.04 Thanks Sebastian, your Patch is in: trunk @Rev 1306732 11.04 @Rev 1306731 10.04 @Rev 1306729 Have a good day! > runSubscriptionAutoReorders places duplicate orderIds > ----------------------------------------------------- > > Key: OFBIZ-4762 > URL: https://issues.apache.org/jira/browse/OFBIZ-4762 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Reporter: Sebastian Leitner > Assignee: Sascha Rodekamp > Priority: Minor > Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk > > Attachments: OrderServices.java.patch > > > The services "runSubscriptionAutoReorders" runs every midnight by default. It checks for expired subscriptions and places a new order to extend them. It fills up a cart from the previous order and places the order. > It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database. > I will attach a patch for this. > - Sebastian -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |