|
Ankit Jain created OFBIZ-4957:
--------------------------------- Summary: Error on Shopping List Page Key: OFBIZ-4957 URL: https://issues.apache.org/jira/browse/OFBIZ-4957 Project: OFBiz Issue Type: Bug Components: party Affects Versions: SVN trunk Reporter: Ankit Jain Priority: Trivial Fix For: SVN trunk On the Shopping List page https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/addItemToShoppingList/editShoppingList its throwing error on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 The problematic instruction: ---------- ==> list shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData [on line 199, column 9 in component://party/webapp/partymgr/party/editShoppingList.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateException: on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 at freemarker.core.DynamicKeyName.dealWithRangeKey(DynamicKeyName.java:157) at -- 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-4957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ankit Jain updated OFBIZ-4957: ------------------------------ Attachment: OFBIZ-4957.patch Minor fix. Attached patch fix the problem. > Error on Shopping List Page > --------------------------- > > Key: OFBIZ-4957 > URL: https://issues.apache.org/jira/browse/OFBIZ-4957 > Project: OFBiz > Issue Type: Bug > Components: party > Affects Versions: SVN trunk > Reporter: Ankit Jain > Priority: Trivial > Fix For: SVN trunk > > Attachments: OFBIZ-4957.patch > > > On the Shopping List page > https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/addItemToShoppingList/editShoppingList > its throwing error > on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 The problematic instruction: ---------- ==> list shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData [on line 199, column 9 in component://party/webapp/partymgr/party/editShoppingList.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateException: on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 at freemarker.core.DynamicKeyName.dealWithRangeKey(DynamicKeyName.java:157) at -- 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-4957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409789#comment-13409789 ] Jacques Le Roux commented on OFBIZ-4957: ---------------------------------------- Hi Ankit, this remembers me http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl?r1=1293379&r2=1293378&pathrev=1293379. I know it's not the same file and it could be completly unrelated. But could you please check why we should remove -1 here when we added it there? TIA > Error on Shopping List Page > --------------------------- > > Key: OFBIZ-4957 > URL: https://issues.apache.org/jira/browse/OFBIZ-4957 > Project: OFBiz > Issue Type: Bug > Components: party > Affects Versions: SVN trunk > Reporter: Ankit Jain > Priority: Trivial > Fix For: SVN trunk > > Attachments: OFBIZ-4957.patch > > > On the Shopping List page > https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/addItemToShoppingList/editShoppingList > its throwing error > on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 The problematic instruction: ---------- ==> list shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData [on line 199, column 9 in component://party/webapp/partymgr/party/editShoppingList.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateException: on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 at freemarker.core.DynamicKeyName.dealWithRangeKey(DynamicKeyName.java:157) at -- 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-4957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410046#comment-13410046 ] Ankit Jain commented on OFBIZ-4957: ----------------------------------- Jacques, In the groovy EditShoppingList.groovy the value of lowIndex is 0 thats why in the ftl we should use lowIndex instead of lowIndex-1. Thats why its throwing error Negative starting index for range, is lowIndex-1..highIndex-1 > Error on Shopping List Page > --------------------------- > > Key: OFBIZ-4957 > URL: https://issues.apache.org/jira/browse/OFBIZ-4957 > Project: OFBiz > Issue Type: Bug > Components: party > Affects Versions: SVN trunk > Reporter: Ankit Jain > Priority: Trivial > Fix For: SVN trunk > > Attachments: OFBIZ-4957.patch > > > On the Shopping List page > https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/addItemToShoppingList/editShoppingList > its throwing error > on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 The problematic instruction: ---------- ==> list shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData [on line 199, column 9 in component://party/webapp/partymgr/party/editShoppingList.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateException: on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 at freemarker.core.DynamicKeyName.dealWithRangeKey(DynamicKeyName.java:157) at -- 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-4957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-4957. ---------------------------------- Resolution: Fixed Fix Version/s: Release Branch 12.04 Assignee: Jacques Le Roux Hi Ankit, It was not really the answer I expected, so I checked myself and indeed there is clearly a difference between each EditShoppingList.groovy ecommerce is : lowIndex = (((viewIndex - 1) * viewSize) + 1); when party is : lowIndex = viewIndex * viewSize; So your patch is in trunk r1359500 R12.04 1359501 Thanks > Error on Shopping List Page > --------------------------- > > Key: OFBIZ-4957 > URL: https://issues.apache.org/jira/browse/OFBIZ-4957 > Project: OFBiz > Issue Type: Bug > Components: party > Affects Versions: SVN trunk > Reporter: Ankit Jain > Assignee: Jacques Le Roux > Priority: Trivial > Fix For: SVN trunk, Release Branch 12.04 > > Attachments: OFBIZ-4957.patch > > > On the Shopping List page > https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/addItemToShoppingList/editShoppingList > its throwing error > on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 The problematic instruction: ---------- ==> list shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData [on line 199, column 9 in component://party/webapp/partymgr/party/editShoppingList.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateException: on line 199, column 38 in component://party/webapp/partymgr/party/editShoppingList.ftl Negative starting index for range, is lowIndex-1..highIndex-1 at freemarker.core.DynamicKeyName.dealWithRangeKey(DynamicKeyName.java:157) at -- 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 |
