Jacopo Cappellato
1a71a69ea6
Removed the ClassLoaderContainer: it is no more used.
...
Moved the portOffset field from ClassLoaderContainer to the Start/Config class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624700 13f79535-47bb-0310-9956-ffa450edef68
2014-09-13 06:57:02 +00:00
Jacopo Cappellato
fa8115dba5
Removed the custom CachedClassLoader and related artifacts in favour of a simpler bootstrap process and a simpler classpath tree; now the classpath tree is made of: bootstrap classloader (primordial+ext) -> system classloader (aka applications or classpath classloader) -> two custom classloaders (one loads the framework/base classes and one loads all the other classes) -> Webapp classloaders (one per web application).
...
Junit tests are included. The two custom classloaders could be merged into one but this will be addressed in a second phase because it will require some changes to the bootstrap componenr and process.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624549 13f79535-47bb-0310-9956-ffa450edef68
2014-09-12 13:49:17 +00:00
Adrian Crum
bf360c3d37
Fix FOP A4 page size.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624538 13f79535-47bb-0310-9956-ffa450edef68
2014-09-12 13:18:13 +00:00
Jacques Le Roux
7b0fc305c9
Ant svninfo target adds now a date (in a raw format) after the Release.revision.
...
Nobody seems against and I have no idea on how to format the date there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624278 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 13:10:02 +00:00
Vikas Mayur
31e2bf5642
Use the prop() method to change/retrieve DOM properties like checked, disabled state of form elements as recommended in jQuery API.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624244 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 10:03:34 +00:00
Jacopo Cappellato
18b5ac49fa
Fixed a few issues in the unit tests of the specialpurpose/lucene component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624217 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 07:42:55 +00:00
Jacopo Cappellato
9be3230d22
Removed unused jar.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623738 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:19:39 +00:00
Jacques Le Roux
8e7dac0c09
I found convenient to have an icon in Windows File explorer for my local OFBiz checkouts, must ignore it
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623514 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 19:42:10 +00:00
Jacques Le Roux
b42d3e4779
I found convenient to have an icon in Windows File explorer for my local OFBiz checkouts, must ignore it
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623375 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 12:32:29 +00:00
Jacques Le Roux
8f8a5ce868
Updates from poi-3.9-20121203.jar to poi-3.10.1-20140818.jar for security reasons
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623370 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 12:27:35 +00:00
Jacques Le Roux
a61be3e0ff
A patch from Shi Jinghai for "Add/Revise Traditional Chinese (zh-TW) translations in framework" https://issues.apache.org/jira/browse/OFBIZ-5737
...
I fixed the duplicated zh:
<value xml:lang="zh">分类页面</value>
<value xml:lang="zh">分類頁面</value>
to
<value xml:lang="zh">分类页面</value>
<value xml:lang="zh_TW">分類頁面</value>
in this patch.
Others are corrections on zh labels thank to Nick Ho's translation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623359 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 11:13:00 +00:00
Jacopo Cappellato
189b8a4b34
A series of simplifications, cleanups of old code, and improvements to the code that setup the class paths for the OFBiz classloaders; the former code was setting the same jars (e.g. ofbiz.jar and all the base libs) in both the parent/child classloaders; it was unnecessarily setting the classpath system property when not required/useful.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623352 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 10:38:28 +00:00
Jacopo Cappellato
12303aa5a4
Removed the "rmi" loader from test startup configuration: it was loading the ComponentContainer two times.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623305 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 06:51:22 +00:00
Jacopo Cappellato
4483e59e1d
removed unused old file in the catalina component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623268 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 04:51:55 +00:00
Jacopo Cappellato
4833915d0d
Removed unused jars.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623042 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 15:04:31 +00:00
Jacopo Cappellato
3c76aa4b89
Removed unused jars.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623005 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 12:35:38 +00:00
Jacopo Cappellato
c50eb3abfb
Removed three asm jars not used by OFBiz code or any other jars in the OFBiz trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622996 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 10:31:29 +00:00
Jacopo Cappellato
943b173f43
In my last commit I forgot to remove the Velocity jar.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622982 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 07:01:12 +00:00
Jacopo Cappellato
c907d4dbe2
Removed old, not maintained and never really used integration with the Apache Velocity template engine.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622980 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:57:19 +00:00
Jacopo Cappellato
281209d0d1
Removed unused and not maintained integration with DataVision.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622979 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:43:41 +00:00
Jacopo Cappellato
75fe5a9107
Removed the old UtilJ2eeCompat util class that was probably created for compatibility with some old application servers.
...
UtilJ2eeCompat was used to figure out, by checking the servlet container implementation, if the response should be sent using a Writer or a OutputStream; a Writer was used for Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity and an OutputStream was used for all the other servlet containers.
However accordingly to the Servlet api:
ServletResponse.getWriter():
Returns a PrintWriter object that can send character text to the client.
ServletResponse.getOutputStream():
Returns a ServletOutputStream suitable for writing binary data in the response.
Based on this getWriter() should always be used (for html pages) in all the containers, not just Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622976 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:32:25 +00:00
Jacques Le Roux
5451d2f255
Fixes <value xml:lang="zh_TW"> duplicates in CommonUiLabels.xml
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622837 13f79535-47bb-0310-9956-ffa450edef68
2014-09-06 09:07:01 +00:00
Scott Gray
3778bb24f4
Replace dead code with a try/catch block that could actually get hit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622779 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 20:01:28 +00:00
Scott Gray
9ee6b36638
Add/correct some generics markup and remove some unused SuppressWarnings annotations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622778 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 19:51:56 +00:00
Scott Gray
0459cd590b
Removed reference to a jar file removed with the upgrade to Log4j2
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622771 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 19:42:16 +00:00
Jacques Le Roux
59c004530a
A patch from Julien NICOLAS for "Wrong label in Product Config Item" https://issues.apache.org/jira/browse/OFBIZ-5753
...
In the screen Product Config, when you want to add a componant to your config option, the label is wrong because it show : Add Configurations and not Add a component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622672 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 10:11:54 +00:00
Jacopo Cappellato
0136f12d3a
Removed some obsolete properties set at startup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622468 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 12:40:15 +00:00
Jacopo Cappellato
0a5af77359
Moved the constructor at the top of the class, removed 2 static methods that were used to construct the object and embedded the logic in the constructor.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622441 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 10:01:07 +00:00
Jacopo Cappellato
1c904a98d8
The Config class, that was used as an immutable object, is now effectively immutable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622427 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 09:05:32 +00:00
Jacopo Cappellato
8796e166d0
Removed unused field.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622412 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 07:44:41 +00:00
Jacopo Cappellato
b324c22bcc
Misc cleanups to remove dead code (that could never run or was not used), made a series of fields private and/or final, added some comments, formatting fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622409 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 06:47:31 +00:00
Jacopo Cappellato
d4d1d92fff
Conversion from FastList to ArrayList
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622407 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 06:25:05 +00:00
Jacopo Cappellato
f041056b9f
removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622406 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 06:23:29 +00:00
Adrian Crum
c84824d1a7
A code cleanup/reorganization in the service engine.
...
The LocalDispatcher is supposed to represent the state of a single application, but that state was split between LocalDispatcher and DispatchContext. In addition, both classes shared a lot of fields.
This commit moves application state to LocalDispatcher and DispatchContext becomes a lightweight container for objects service implementations need to use.
In addition, some minor thread-safety issues were fixed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622256 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 13:45:44 +00:00
Adrian Crum
d81bf5b0c4
Bug fix: Limit internal organization list to parties that have the internal organization role.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622246 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 13:25:21 +00:00
Jacopo Cappellato
6f112e3ea7
Greatly simplified the UtilJ2eeCompat class by removing a series of variables and methods no more in use.
...
The class was not thread safe and this didn't cause particular issues probably just because all the threads using it were passing ServletContext with the same server info value (because they were associated to the same servlet container); it was however inefficient.
Now it is thread safe using the DCL pattern which I usually tend to avoid but is useful here.
However this class should probably go away but before taking a decision I will start a discussion in the dev list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622193 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 09:10:04 +00:00
Jacopo Cappellato
47651f3e78
Unit test to confirm that running several queries within one transaction is faster than running them wrapped in individual transactions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622171 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 06:36:33 +00:00
Jacopo Cappellato
6c680d11e9
Improved formatting, comments and variable names.
...
A failed insert due to duplicated pk will generate an SQLException rather than returning 0 from executeStatement(), so changed the code to reflect this.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622170 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 06:34:54 +00:00
Jacques Le Roux
4d28c3174a
A patch from Nicolas Malin for "Convert Party entites CRUD service from simple to entity-auto" https://issues.apache.org/jira/browse/OFBIZ-5750
...
I converted CRUD service to entity-auto for :
PartyRole
PostalAddressBoundary
PartyClassification
PartyClassificationGroup
PartyAttribute
Vendor
PartyCarrierAccount
Only entity with their services present on PartyServices.xml
I change the PartyRole attributes service like that
{code}
- <attribute name="partyId" type="String" mode="IN" optional="true"/>
- <attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
+ <auto-attributes include="pk" mode="IN" optional="false"/>
{code}
The currently simple method haven't a specific resolution if the partyId isn't pass, so the service failed with database constraint error.
I run manual test from Party Profile screen with success (except for PostalAddressBoundary that haven't standard screen, so call by runService) and I run ./ant clean-all load-demo run-tests without error
jleroux: after looking at
https://issues.apache.org/jira/browse/OFBIZ-585
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyRoleServices.java?view=markup&pathrev=522473
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?r1=524899&r2=524898&pathrev=524899
and content of ServiceUtil.getPartyIdCheckSecurity()
I agree with Nicolas about createPartyRole and deletePartyRole, we can neglect having PARTYMGR_CREATE for creating/deleting a party role
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622161 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 03:55:32 +00:00
Jacques Le Roux
b74da066f1
Changes for "Add/Revise Traditional Chinese (zh-TW) translations in framework" https://issues.apache.org/jira/browse/OFBIZ-5737 after an exchange between Shi Jinghai and Nick Ho. We really miss a Chinese committer :D
...
What I did (jleroux):
1. I used <value xml:lang="zh_TW">阿富汗尼</value>
2. I used <value xml:lang="zh_TW">內容管理系統站台</value>
3. I did not change
4. I did not change
5. I used <value xml:lang="zh_TW">此</value>, noticed that: <value xml:lang="zh"> </value>
6. I did not change
7. I used <value xml:lang="zh_TW">度量單位</value> (several places)
8. I did not change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622124 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 21:04:14 +00:00
Jacques Le Roux
48c1327413
A patch from Ritu Raj Lakhera for "Forgot password functionality is not honoring the 'password.lowercase' property of 'security.properties'" https://issues.apache.org/jira/browse/OFBIZ-5745
...
Forgot password functionality (LoginEvents.emailPassword) is not honoring the 'password.lowercase' property of 'security.properties'. And thus customer is not able to Login on e-commerce site with new generated password.
Test Case:
1. Set property 'password.lowercase' as true in 'security.properties'.
2. Request a forgot password and customer get the new password as 'a0e7J'
3. Customer is not able to login on e-commerce site.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622050 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 16:17:36 +00:00
Jacopo Cappellato
1830aee2c7
Removed old code for JPublish
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622010 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 14:18:17 +00:00
Jacopo Cappellato
4f78f82b1d
Removed the old and no more used custom JSP taglib.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621979 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 13:31:31 +00:00
Jacopo Cappellato
9d4de1ee06
Removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621977 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 13:15:26 +00:00
Jacopo Cappellato
b939882980
Removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621976 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 13:13:45 +00:00
Jacopo Cappellato
a129f3631f
Moved support for JSP Regions to the Attic.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621971 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 12:48:49 +00:00
Jacopo Cappellato
5dc38e6d35
Misc cleanups to some groovy scripts (no functional changes).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621956 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 10:20:21 +00:00
Jacopo Cappellato
30c092f2d2
Minor cleanups; no functional changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621953 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:38:50 +00:00
Jacopo Cappellato
b299e33825
Replaced * notation with specific class inclusion.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621952 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:36:58 +00:00
Jacopo Cappellato
2a6a8e7347
Misc cleanups to the SimpleContentViewHandler class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621950 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:30:23 +00:00