Commit Graph
781 Commits
Author SHA1 Message Date
Jacques Le Roux 82c74b62f6 A patch from Mohammed Rehan Khan for "Getting console error while reading property value" https://issues.apache.org/jira/browse/OFBIZ-7331
We are getting same console error on following two screens.

Steps to regenerate: 
1) Go to eCommerce
2) Click on Register link
3) After click on register link, we can see error on console.

1) Now click on profile link
2) Click on create new contact information link
3) select "postal address" contact type and click on create button
4) After click on create button, we can see error on console.

Console Error:
 Error executing FreeMarker template
     [java] freemarker.template.TemplateModelException: No error description was specified for this error; low-level message: java.lang.ClassNotFoundException: org.ofbiz.base.util.EntityUtilProperties
     [java] 
     [java] ----
     [java] FTL stack trace ("~" means nesting-related):
     [java] 	- Failed at: #assign defaultCountryGeoId = Static[...  [in template "component://ecommerce/template/customer/EditContactMech.ftl" at line 185, column 13]
     [java] ----
     [java] 	at freemarker.ext.beans.ClassBasedModelFactory.get(ClassBasedModelFactory.java:52) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.DynamicKeyName.dealWithStringKey(DynamicKeyName.java:140) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.DynamicKeyName._eval(DynamicKeyName.java:75) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Dot._eval(Dot.java:41) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.MethodCall._eval(MethodCall.java:58) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Assignment.accept(Assignment.java:134) ~[freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:326) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at freemarker.core.Environment.process(Environment.java:305) [freemarker-2.3.24.jar:2.3.24]
     [java] 	at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:261)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748286 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 17:06:26 +00:00
Pranay Pandey 18ad70fe16 [OFBIZ-7296] Fixed Create Request for Quote, Create New Quote and Save links on shopping list details screen.
Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748199 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 12:39:29 +00:00
Mridul Pathak 4c874ff77e [OFBIZ-7008] Support to add condition for Geo Location in Promo Engine. Adding back the code reverted in r1739637 as the tests were failing. Thanks Vishal Chhabria for providing the updated patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748186 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 12:02:27 +00:00
Pranay Pandey 893a553bf5 [OFBIZ-7291] Correcting anchor location, a line break was disturbing UI with form introduction for security error fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748164 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 09:47:01 +00:00
Pranay Pandey 227f2c8389 [OFBIZ-7291] Applied slightly modified patch from the ticket to fix security error on Remove Shopping List Item link in eCommerce.
Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748156 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 09:35:41 +00:00
Pranay Pandey 8174d2b8f2 [OFBIZ-7270] - Fixed security error on Create New Shopping List in eCommerce.
Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748133 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 08:15:35 +00:00
Deepak Dixit eb523b9805 (OFBIZ-7245) Renamed groovy file in upper camel case as per best practices
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747850 13f79535-47bb-0310-9956-ffa450edef68
2016-06-11 06:12:27 +00:00
Deepak Dixit dac494ac6a (OFBIZ-7237) Relocate .groovy files in the specialpurpose/ecommerce component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747786 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:35:12 +00:00
Deepak Dixit 840949dfc2 (OFBIZ-7227) Relocate .groovy files in the order component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747769 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 18:36:39 +00:00
Jacques Le Roux 5e65059e4d A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
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/specialpurpose@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Deepak Dixit 3e08dd1c04 (OFBIZ-7164) Fix typo in freemarker else tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1746691 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 08:59:56 +00:00
Deepak Dixit 05df1480b4 (OFBIZ-7021) Corrected path for Content.ftl in DemoContent.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1746097 13f79535-47bb-0310-9956-ffa450edef68
2016-05-30 08:58:30 +00:00
Deepak Dixit 80bf5222f3 Fixed typo in file names, found during data load.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1746095 13f79535-47bb-0310-9956-ffa450edef68
2016-05-30 08:43:30 +00:00
Jacques Le Roux 289fc3f589 Implements "Use only HTTPS in OFBiz" - https://issues.apache.org/jira/browse/OFBIZ-6849
All tests passes and the normal use of OFBiz seems to work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1745525 13f79535-47bb-0310-9956-ffa450edef68
2016-05-25 18:02:23 +00:00
Deepak Dixit c4b52ebe5c (OFBIZ-6810) Removed some unused screen and ftl, found during ftl cleanup. I took extra care while removing these code this should not break anything.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1745500 13f79535-47bb-0310-9956-ffa450edef68
2016-05-25 15:05:50 +00:00
Deepak Dixit 583f209423 (OFBIZ-7021) Renamed and moved data template to correct location for ecommerce component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1745483 13f79535-47bb-0310-9956-ffa450edef68
2016-05-25 13:31:26 +00:00
Deepak Dixit 374449d47e (OFBIZ-7021) Renamed specialpurpose ecommerce component ftl file name from lower camel case to upper camel case pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1744942 13f79535-47bb-0310-9956-ffa450edef68
2016-05-21 13:43:11 +00:00
Deepak Dixit dd5cf2fe5f (OFBIZ-7021) Renamed framework common component ftl file name from lower camel case to upper camel case pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1744783 13f79535-47bb-0310-9956-ffa450edef68
2016-05-20 18:52:54 +00:00
Pranay Pandey 8695816f1d [OFBIZ-7080] Minor improvement for change password screen title in ecommerce.
Thanks Chandan Khandelwal for reporting this improvement and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1744667 13f79535-47bb-0310-9956-ffa450edef68
2016-05-20 07:41:16 +00:00
Jacques Le Roux 195def6c07 Closes "Move all Groovy scripts in components WEB-INF/actions sub-folders" - https://issues.apache.org/jira/browse/OFBIZ-6981
Currently there are few Groovy scripts not in components WEB-INF/actions sub-folders.
Before moving Groovy scripts as we decided in OFBIZ-6810 we should move the few Groovy scripts not in components WEB-INF/actions sub-folders to these WEB-INF/actions sub-folders. So we will not miss one and it will be a "straightforward" task to move then as we decided in OFBIZ-6810.
Note: most of the Groovy scripts not in components WEB-INF/actions sub-folders are related with events. But not all events related Groovy scripts are not placed components WEB-INF/actions sub-folders, just a very few. There are other cases were Groovy scripts are not in components WEB-INF/actions sub-folders, like ShowProductionRun.groovy and OrderReportPrepare.groovy...





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1743949 13f79535-47bb-0310-9956-ffa450edef68
2016-05-15 18:44:19 +00:00
Deepak Dixit 27fb7a69cf (OFBIZ-7021) Renamed order component ftl file name from lower case to upper case pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1743881 13f79535-47bb-0310-9956-ffa450edef68
2016-05-15 06:06:11 +00:00
Pranay Pandey 3f6a4d4b8e OFBIZ-7057 - Fixed UiLabel for the GeneratedDescription in ordermgr after applying promotion which was missing due to the usage from EcommerceUiLabels. Thanks Swapnil M Mane for reporting this issue and providing patch for the same.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742712 13f79535-47bb-0310-9956-ffa450edef68
2016-05-07 13:45:37 +00:00
Deepak Dixit af00cd6aa0 (OFBIZ-7043) Remove commented code labeled as "TO BE REMOVED" since 2008.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742503 13f79535-47bb-0310-9956-ffa450edef68
2016-05-06 06:48:38 +00:00
Deepak Dixit bf1908152b (OFBIZ-7021) Renamed content component ftl file name from lower case to upper case pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742457 13f79535-47bb-0310-9956-ffa450edef68
2016-05-05 18:11:54 +00:00
Jacques Le Roux bfa06e0065 Things got totally wrong with r1742196 which contained much more than expected.
This reverts things which should not have been committed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742197 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 21:03:11 +00:00
Jacques Le Roux becdb02a08 "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
Completes in screens the changes done in forms at r1741873. I then replaced few form lists by grids, where it was possible to do it with regexp.
Also complete StatsForms.xml to use only grids and "searchList" form in ecommerce ContentForms to NOT use grid (not called in screen)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742196 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 20:50:10 +00:00
Jacques Le Roux fda394a21f "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
Replaces few form lists by grids, where it was possible to do it with regexp. For a reason I still don't understand I could not do it for all...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1741873 13f79535-47bb-0310-9956-ffa450edef68
2016-05-01 17:36:52 +00:00
Jacques Le Roux 660b753b56 No functional change, this file is not used so useless, removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1740635 13f79535-47bb-0310-9956-ffa450edef68
2016-04-23 04:32:12 +00:00
Deepak Dixit b4f65d473b (OFBIZ-6823) relocate .ftl files in the framework/common component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1740497 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:28:46 +00:00
Deepak Dixit a8c5938b19 (OFBIZ-6821) Added missing content folder in specialpurpose/ecommerce component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1740489 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:02:20 +00:00
Deepak Dixit 6d65904ec1 (OFBIZ-6821) relocate .ftl files in the specialpurpose/ecommerce component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1740485 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 11:42:03 +00:00
Deepak Dixit a29b597838 (OFBIZ-6811) Renamed ecommerce/templates to ecommerce/tempalte to make it consistent.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1740483 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 11:22:42 +00:00
Michael Brohl f71d844c94 Applied patch for OFBIZ-6793: Have configuration options for the ecommerce component.
Thanks Pierre Smits for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1739982 13f79535-47bb-0310-9956-ffa450edef68
2016-04-19 18:52:41 +00:00
Mridul Pathak 84a61bef83 Reverting r1739457 as tests does not pass.
[OFBIZ-7008] Support to add condition for Geo Location in Promo Engine.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1739637 13f79535-47bb-0310-9956-ffa450edef68
2016-04-17 19:07:21 +00:00
Mridul Pathak 768622529a [OFBIZ-7008] Support to add condition for Geo Location in Promo Engine. Thanks Vishal Chhabria for contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1739457 13f79535-47bb-0310-9956-ffa450edef68
2016-04-16 13:25:59 +00:00
Jacques Le Roux e403543de9 Oops, this was redundant in previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737609 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 21:43:06 +00:00
Jacques Le Roux 95aff0a67d Just stumbled upon it by chance, these changes needed in ecommerce were missing in r1736868 for OFBIZ-6819 (order)
I will double-check all screens changes kept in r1737557 (ie initially committed for subtasks 25 to 32 of OFBIZ-6810) 
From 1st investigation I believe there are no others (at least dependency in specialpurpose from applications, I did not check specialpurpose interdependencies yet...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737608 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 21:40:33 +00:00
Jacques Le Roux a0e2f5a749 A patch from James Yong for <<Tree showing categories has empty labels>> https://issues.apache.org/jira/browse/OFBIZ-6970
Problem
=======
Go to https://localhost:8443/ecommerce/
There are missing labels in the categories section



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737156 13f79535-47bb-0310-9956-ffa450edef68
2016-03-30 19:29:24 +00:00
Jacques Le Roux 800a0c22a7 Removes old simple-methods.xsd from the trunk as it's useless now (was replaced by simple-methods-v2.xsd)
Also renames simple-methods-v2.xsd in simple-methods.xsd and replaces simple-methods-v2.xsd references by simple-methods.xsd references everywhere it's needed



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737087 13f79535-47bb-0310-9956-ffa450edef68
2016-03-30 09:13:03 +00:00
Jacques Le Roux e5bd917be1 Fixes "Failed to load contentForum.css" - https://issues.apache.org/jira/browse/OFBIZ-6956
Got the following error when accessing ecommerce main page
"NetworkError: 404 Not Found - https://127.0.0.1:8443/contentimages/contentForum.css"

jleroux: contentimages webapp path was wrongly used there instead of simply content. I replaced all occurrences


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736628 13f79535-47bb-0310-9956-ffa450edef68
2016-03-25 18:02:16 +00:00
Jacques Le Roux 56a5229f04 Fixes "jquery plugin jgrowl is loaded before jquery in ecommerce" - https://issues.apache.org/jira/browse/OFBIZ-6957
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736614 13f79535-47bb-0310-9956-ffa450edef68
2016-03-25 16:41:36 +00:00
Jacques Le Roux f790372856 Reverts r1735777, it was for "Credit card valdation does not work properly during anonymous quick checkout process" - https://issues.apache.org/jira/browse/OFBIZ-1585
Few tests don't pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736164 13f79535-47bb-0310-9956-ffa450edef68
2016-03-22 09:18:59 +00:00
Divesh Dutta c62106f466 Fixed : Credit Card validation does not work properly during anonymous quick checkout process. Added new method checkoutValidation which will validate if shipping method and payment method are in cart and if not available then this method will return error. Thanks Jagpreet Kaur for the patch and Late Raj Saini for reporting this bug.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735777 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 14:38:48 +00:00
Deepak Dixit aec99281a5 (OFBIZ-6859) Fixed Search.groovy, use correct method for analyzer, QueryParser and TopScoreDocCollector.
Thanks Pierre for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735756 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 11:40:05 +00:00
Deepak Dixit bc45785b8c Added missing jgrowl js and css file for ecommerce main-decorator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735747 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 09:28:09 +00:00
Jacques Le Roux 23d9786ef9 A patch from Amit Gadaley for "Exclusion of Manufacturing components leads to load errors" https://issues.apache.org/jira/browse/OFBIZ-6757
Pierre Smits: When loading data into OFBiz without the manufacturing component the process ends unsuccessful.

Deepak: Entity related error should be fixed under OFBIZ-6760, apart from it there are dependency of ecommerce demo data on manufacturing demo data. 

jleroux: Duplicating those data (present in Manufacturing) into ecommerce is indeed a smart solution. If they are already loaded (like OOTB) they will not be loaded twice. If they are not there they will be loaded. 
Conclusion: sometimes duplication is smart (especially with OFBiz data) and this is a good way to introduce independency between components...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1731665 13f79535-47bb-0310-9956-ffa450edef68
2016-02-22 15:49:05 +00:00
Jacopo Cappellato f89c50833e OFBIZ-6568 With the implementation of @BaseScript annotations (introduced with Groovy 2.3.0) something was broken in the CompilerConfiguration.setScriptBaseClass method and an error is thrown when our scripts are executed; the workaround is to execute at startup a script containing the @BaseScript annotation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729809 13f79535-47bb-0310-9956-ffa450edef68
2016-02-11 11:24:51 +00:00
Jacopo Cappellato aa6c3a64ab OFBIZ-6568: upgraded Groovy to the latest version (2.4.5).
[CVE-2016-2170] The infamous Java serialization vulnerability


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729609 13f79535-47bb-0310-9956-ffa450edef68
2016-02-10 14:38:00 +00:00
Jacques Le Roux cfe634bb57 To be consistent with r1729002, removes also one of the ".properties" part which was left in ecommerce/login.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729004 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:33:13 +00:00
Jacques Le Roux 5ca66960d4 A modified patch from Pierre Smits for "Replace Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue in .ftl files with EntityUtilProperties variant" https://issues.apache.org/jira/browse/OFBIZ-6884
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue is used in several .ftl files. 

Replaces with EnittyUtilProperties variant where appropriate. 

jleroux: In this is the 2nd commit from the 3rd patch (the 2nd had issues) I fixed 2 "typos" I spotted while reviewing in
  ecommerce/customer/editcontactmech.ftl
  ecommerce/customer/newcustomer.ftl
where "UtilProperties" was not replaced



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729002 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:23:49 +00:00