When trying to remove a product feature from the quick admin page of a product, you get the following error :
Error calling event: org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [productId] passed to secure (https) request-map with uri [quickAdminRemoveFeatureFromProduct] with an event that calls service [removeFeatureFromProduct]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.
Step to reproduce the error :
Go to the catalog and search for any product (https://localhost:8443/catalog/control/FindProduct)
Go to the "Quick Admin" tab (https://localhost:8443/catalog/control/EditProductQuickAdmin?productId=WG-9943-B3)
Add a standard feature type (Color for example)
Select an option from the drop-down of the feature type (Black for example) and add the feature.
Try to delete it by clicking on the button with a cross.
The error shows up
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748182 13f79535-47bb-0310-9956-ffa450edef68
I kept things as simple as possible. I only changed the following Ant targets
start
start-secure
start-batch
start-batch-secure
run-test
I also changed the startofbiz.bat file. The other start*.bat are for the POS and it's not expected to run on a server.
I put a mention when using "java -jar ofbiz.jar -u" (start)
I will add a mention in "Technical+Production+Setup+Guide" wiki page about using "java -jar ofbiz.jar"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748173 13f79535-47bb-0310-9956-ffa450edef68
Functionality working as expected over ofbiz-13.07.03 but failing in trunk.
Steps to reproduce:
1. Login to facility component.
2. Select any facility.
2. Navigate to Stock Moves tab.
3. Click on From Location lookup from Quick Stock Move section against GZ-8544 product.
4. Try to select any location from List Facility Location popup.
We looked into the problem and found what seems to be the root of this bug.
The form with the not working lookup is described in the following ftl file : PickLiveStock.ftl .
For some reason, the 'Product' input and the 'To Location' input are created with the macro @htmlTemplate.lookupField (and are working well) but the 'From Location' field is created by a direct call to a javascript function (and is not working well).
That causes the lookup to open in another window and to lose the context. That's why the selection didn't work. Moreover, the theme was not rendered with Saphir.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748121 13f79535-47bb-0310-9956-ffa450edef68
(resource == null || resource.length() <= 0)
From Java spec. a String, Collection, Map or CharSequence can't have a negative length, so the pattern above can be reduced to
(resource == null || resource.length() == 0)
which can be replaced using
UtilValidate.isEmpty()
I checked, there are several other occurrences of this pattern (some very old, I guess most were routinely copied from an initial occurrence). I decided to replace all of them, here they are.
I did that already long ago for the
(resource == null || resource.length() == 0)
pattern. It remains 4 of them. Three are justified (because of the dependency on base component or because using isEmpty() on Object is disputable for performance reasons). I took care of the remaining one right aways (in SplashScreen.java)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747976 13f79535-47bb-0310-9956-ffa450edef68
===================================
Override allow-html attribute do not work in service implementing any interface
===================================
Thanks Nameet Jain for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747959 13f79535-47bb-0310-9956-ffa450edef68
===================================
Error while importing party
===================================
Thanks Nameet Jain for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747956 13f79535-47bb-0310-9956-ffa450edef68
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)
I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix
I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to
"The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
Thanks Amardeep Singh Jhajj for reporting the issue and thanks Montalbano Florian for looking into the issue and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747661 13f79535-47bb-0310-9956-ffa450edef68
=======================================
Report "Sale Orders By Channel" is not rendering details
=======================================
Thanks Nameet Jain for your contirbution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747642 13f79535-47bb-0310-9956-ffa450edef68
=======================================
Monthly "Sales Report" PDF is not rendering details
=======================================
Thanks Nameet Jain for your contirbution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747639 13f79535-47bb-0310-9956-ffa450edef68