Commit Graph
921 Commits
Author SHA1 Message Date
Nicolas Malin 179106169f correct typo, no functional change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728560 13f79535-47bb-0310-9956-ffa450edef68
2016-02-04 22:07:55 +00:00
Nicolas Malin 0c5de17f41 Add the possibility to set a blackout period for job manager service. During this time all async and scheduled service are put on hold.
This improvement add a entity JobManagerLock, a new screen to add/edit job manager lock and an information for end user on FindJob and ScheduleJob screen.
See more information on issue OFBIZ-6790. Thanks to Jacques for sharing on this improvement.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727570 13f79535-47bb-0310-9956-ffa450edef68
2016-01-29 12:52:34 +00:00
Nicolas Malin 916823d5a4 When ofbiz reload crashed jobs when it start, replay only one time the crashed jobs. Remove all temporal information to ensure that the new job don't create any reccurent schedule that duplicate the origin job's configuration, See OFBIZ-6784, thanks Scott to spot the good correction
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1722816 13f79535-47bb-0310-9956-ffa450edef68
2016-01-04 09:46:42 +00:00
Jacques Le Roux bcf00752dd Upgrades Axis2 to 1.6.3, with its dependencies on Axiom 1.2.9 and Neethi 3.0.2 - OFBIZ-5801
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718023 13f79535-47bb-0310-9956-ffa450edef68
2015-12-04 20:30:39 +00:00
Jacques Le Roux b32ea9f89f No functional change, completes r1713985: removes superfluous .properties extension from UtilProperties requests (and yes I checked UspsServicesTests ;))
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1714652 13f79535-47bb-0310-9956-ffa450edef68
2015-11-16 19:02:25 +00:00
Taher A. Alkhateeb e48fe0b23a another round of javolution removal in achieving OFBIZ-5169
Remove javolution reference from multiple java source files and a few
BIRT reports. I had to replace the FastList with a LinkedList in 
SolrProductSearch.getSideDeepCategories(..) because it uses the 
implementation methods getLast() and removeFirst()

REF https://issues.apache.org/jira/browse/OFBIZ-5169


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710122 13f79535-47bb-0310-9956-ffa450edef68
2015-10-23 05:52:25 +00:00
Arun Patidar 3d444b6b8d [OFBIZ-6666] Added missing service model attributes while cloning it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1707837 13f79535-47bb-0310-9956-ffa450edef68
2015-10-10 06:16:51 +00:00
Gil Portenseigne fced6c0a42 OFBIZ-6637 : Work Effort Month Calendar View Is Broken
Fix a possible endless loop in TemporalExpression Evaluation. Daybump flag must be turned off when used.
Thanks Adrian Crum for Report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1707782 13f79535-47bb-0310-9956-ffa450edef68
2015-10-09 18:18:52 +00:00
Arun Patidar 3865ff485d [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Michael Brohl cd6eedc2c3 Applied patch for OFBIZ-6632: Incorrect comparison in TemporalExpressionWorker.java
This patch introduces some constants for the expression types and corrects the wrong comparison.

Thanks Vyom Jain for spotting this issue and Martin Becker for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704043 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 14:27:54 +00:00
Michael Brohl b9816d1d5d Applied patch for OFBIZ-6594: Wrong Documentation for Temporal Expressions.
The integer value representing the HOUR was wrong in the documentation.

Thanks Mirco Vogelsmeier for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703965 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 09:14:48 +00:00
Jacques Le Roux 32b4877639 A patch from Gareth Carter for "PurgeJob.java does not delete RecurrenceRule because it is still referenced by RecurrenceInfo" https://issues.apache.org/jira/browse/OFBIZ-6619
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703121 13f79535-47bb-0310-9956-ffa450edef68
2015-09-15 08:34:41 +00:00
Shi Jinghai 85bed69778 Refs #6518.
Translated new labels in trunk version into zh locale (Simplified Chinese).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686778 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 07:10:41 +00:00
Deepak Dixit 0cb6d60dc8 Added locale and timeZone as a service in parameter for groovy dsl. Now locale and timeZone not passed as service in parameter then groovy dsl will get it from context and passed as service in parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680274 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 12:43:54 +00:00
Adrian Crum a1bb4ff6bc Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674064 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 13:05:55 +00:00
Jacques Le Roux 3a047fadda Mark this feature as deprecated, due to OFBIZ-6228
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1670999 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 06:43:26 +00:00
Adrian Crum f315f0d5be Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1669537 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 10:04:14 +00:00
Jacopo Cappellato da98976ab0 Fixed code to prevent that two or more threads at startup run the same startup services (defined in serviceengine.xml using the startup-service element) more than once.
This will also prevent a deadlock condition (similar to the one fixed with rev. 1655046) that could occur at bootstrap under certain conditions and unlucky timing.
Thanks to Deepak Dixit and Ravi Lodhi for the report, tests and feedback.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668657 13f79535-47bb-0310-9956-ffa450edef68
2015-03-23 14:46:46 +00:00
Adrian Crum f6d334704b Added null check to avoid intermittent NPE - https://issues.apache.org/jira/browse/OFBIZ-5879.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662084 13f79535-47bb-0310-9956-ffa450edef68
2015-02-24 19:00:36 +00:00
Adrian Crum a44b24b6ea Revert rev 1622256 to fix a service definition caching problem - https://issues.apache.org/jira/browse/OFBIZ-6060.
I'm reverting this instead of fixing it because the original commit was a first step in an effort to eliminate ThreadLocal variables in the framework (so we can make better use of multi-threading). But since then I have come to the conclusion that it will not be possible without a framework redesign.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1657714 13f79535-47bb-0310-9956-ffa450edef68
2015-02-05 23:25:50 +00:00
Jacopo Cappellato 71891a76fb Moved out from JobManager.getInstance the call to reloadCrashedJobs because it was causing a deadlock issue at bootstrap when an eca rule of type "validate" is defined on the JobSandbox entity.
At bootstrap an eca definition like the following:
   <eca entity="JobSandbox" operation="store" event="validate">
          <action service="ping" mode="sync"/>
   </eca>
 is causing a deadlock because it is triggered at startup when the reloadCrashedJobs method is executed; reloadCrashedJobs  is executed holding a lock on the JobManager object; within this method a "find" operation is performed that (because of the "validate" event) triggers the action; but for this a getDispatchContext is executed and this blocks until the task (executed by a thread Executor) that reads and setups the eca rules is complete; but this task requires a lock on the same JobManager object and thus we get the deadlock
Thanks to Arun Patidar and Deepak Dixit for analyzing the issue with me.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655046 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 14:02:50 +00:00
Jacopo Cappellato 7388a6407e Reverting my last commit for now as it because, after furthr testing it has no effect on the deadlock issue we are facing (the cache is already disabled by default so the change I did was irrelevant).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655013 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 11:32:31 +00:00
Jacopo Cappellato 9673c8c1a6 When selecting crashed JobSandbox records, disable cache: this makes sense for the specific use case but more importantly it fixes an intermittent deadlock issue that was occurring at startup when loading eca rules. Thanks to Arun Patidar and Deepak Dixit for reporting and analyzing the issue with me.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655010 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 11:22:52 +00:00
Jacopo Cappellato 836b1e578f Since ServiceEcaSetField are cached, if a seca definition contains a set operation with an env-name like:
<set field-name="partyId" env-name="${userLogin.partyId}"/>
then the expanded value (at the time of creation) is stored in the ServiceEcaSetField and then reused even when the seca is re-executed with a different context.
This commit fix the bug by removing the outer if statement "if (UtilValidate.isEmpty(this.value))".
Thanks to Deepak Dixit for spotting this issue.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651593 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 08:40:08 +00:00
Jacques Le Roux b8ca5543c9 Changes in all labels files: <value xml:lang="(.*)_(.*)"> to <value xml:lang="$1-$2">
Changes also listLocales.ftl to show dashes rather than underscores

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650880 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 09:59:32 +00:00
Adrian Crum 91feff5f51 Updated the UI label files so they reference a schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649666 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:24:18 +00:00
Jacopo Cappellato a5879b6f8f Moved code dependent on OWASP ESAPI and utilities for codec tasks from StringUtil to a new UtilCodec class: now the UtilCodec class is the only class dependent on OWASP ESAPI.
The DefaultEncoder from OWASP ESAPI, used internally by UtilCodec is now built with the default constructor that also adds the JavascriptCodec to the list of codecs used to canonicalize and validate the input.
Renamed the UrlEncoder class to UrlCodec in order to better describe its behavior.
Misc minor cleanups.
Added to the list of tests of the base component a series of Junit test classes that were missing.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648403 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 18:24:57 +00:00
Ashish Vijaywargiya 039f0608bc Applied framework related patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646212 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 12:13:46 +00:00
Ashish Vijaywargiya 9e044d163a Applied patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue(). Thanks so much Arun for this important contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1644015 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 10:09:22 +00:00
Nicolas Malin a87126d4a7 Complete the entity-auto engine for manage a service can be wait a pk or not. In this last case the field need to present on OUT part. This appears when you have a fromDate and you offer the possibility to user to indicate it, otherwise it's instantiate with now. It's a small improvement to complete the issue OFBIZ-5800, you have an example with entity PartyQual and the screen humanres/control/EditEmployeeQuals?partyId=DemoEmployee
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643303 13f79535-47bb-0310-9956-ffa450edef68
2014-12-05 14:49:36 +00:00
Jacques Le Roux aee44a7bfc A patch from Deepak Dixit for "EntityListIterator Not Closed for Entity JobSandbox, caught in Finalize" https://issues.apache.org/jira/browse/OFBIZ-5885
EntityListIterator Not Closed for Entity JobSandbox in ServiceUtil.purgeOldJobs method. Need to close the entity list iterator properly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641548 13f79535-47bb-0310-9956-ffa450edef68
2014-11-25 09:14:36 +00:00
Jacques Le Roux 682c9014a2 Fixes and completes r1640588 and more minor things which were left after the change from run-install to load-demo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640727 13f79535-47bb-0310-9956-ffa450edef68
2014-11-20 12:18:59 +00:00
Jacopo Cappellato 94c01378ce Removed the findOne and findList methods from the OFBiz DSL: with the new support for the Entity Query Builder (thanks Scott) we can then run much more powerful queries in a simpler way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640679 13f79535-47bb-0310-9956-ffa450edef68
2014-11-20 05:28:49 +00:00
Jacopo Cappellato 06abae3dfa Enhanced the OFBiz DSL with an alternative way of invoking a service; converted one service call in OrderView.groovy to demonstrate its usage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638801 13f79535-47bb-0310-9956-ffa450edef68
2014-11-12 14:45:56 +00:00
Jacopo Cappellato e24c111f05 Added to the OFBiz DSL the ability to invoke the new EntityQuery builder.
Modified two calls in OrderView.groovy to demonstrate the new feature.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638054 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 09:33:15 +00:00
Nicolas Malin 5bbff9f365 Manage multi pk with sub-sequence on entity-auto (OFBIZ-5800),
Add the possibility to the entity-auto engine on the create action to manage entities with more than 2 primary keys which one is under sub sequence or fromDate, like PerfReview (employeePartyId, employeeRoleTypeId, perfReviewId) or PartyQual (partyId, partyQualTypeId, fromDate).

Improve return message for the create action if the entity value exist and the delete action if the entity value not exist instead of the database message error.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637596 13f79535-47bb-0310-9956-ffa450edef68
2014-11-08 21:00:55 +00:00
Jacopo Cappellato 66daa32f1a Cleaned up and inproved the code that integrates Groovy in the OFBiz framework:
* Groovy services and Groovy events now use the same util methods from GroovyUtil to parse/execute the scripts
* the script base class is now specified in the base/config/groovy.parameter file rather than in the serviceengine.xml
* the same util methods (DSL) are now available to all Groovy scripts (executed as services, events or widget actions)
* removed a series of unused methods in the GroovyUtil class



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636346 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 13:15:29 +00:00
Adrian Crum 159734866e Remove Javolution from the service component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635860 13f79535-47bb-0310-9956-ffa450edef68
2014-10-31 20:45:45 +00:00
Scott Gray 44e2c4fda1 Regex search/replace for delegator.findOne() to EntityQuery.queryOne()
Apologies for the large commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635383 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:18:05 +00:00
Scott Gray 96cd99914e Remove unnecessary imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634027 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:28:47 +00:00
Nicolas Malin 37bb53af64 Add junit test to control entity-auto on create, update and delete to ensure no regression when the entity-auto engine will be improve (like OFBIZ-5800)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630079 13f79535-47bb-0310-9956-ffa450edef68
2014-10-08 12:17:55 +00:00
Nicolas Malin 52d93e3ef3 No functional change, clean end line space
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629816 13f79535-47bb-0310-9956-ffa450edef68
2014-10-07 07:35:55 +00:00
Jacopo Cappellato 81f333f845 Fixed a trivial typo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628971 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 13:46:50 +00:00
Jacopo Cappellato 7ad9702ecb Trivial change to the format of an INFO message in order to be consistent with the format of the logs produced by the ServiceDispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626125 13f79535-47bb-0310-9956-ffa450edef68
2014-09-19 04:49:45 +00:00
Jacques Le Roux 3b118d4842 An excerpt of a patch from Nick Ho for "Add/Revise Traditional Chinese (zh-TW) translations" https://issues.apache.org/jira/browse/OFBIZ-5764
added/revised zh-TW translations in the framework, applications and specialpurpose folders to have consistent, commonly-used meaningful terms in Traditional Chinese.

jleroux: from Nick Ho's patch I have extracted only the Chinese changes, w/o the proposed  dash to underscore changes
This contains notably this 14 "zh" (not "sh-TW") changes:
<value xml:lang="zh">人将由电子邮件接受一个临时密码。</value><!-- was 客户将通过电子邮件收到一个临时密码。 -->
<value xml:lang="zh">合计属于公司: </value>
<value xml:lang="zh"> 完整文本:${fullText}</value>
<value xml:lang="zh">供货商佣金百分比</value>
<value xml:lang="zh">文本大小</value>
<value xml:lang="zh">值</value>
<value xml:lang="zh">算子</value>
<value xml:lang="zh">不能转移已序列化的库存。</value>
<value xml:lang="zh">货运收据</value>
<value xml:lang="zh">获取标识为 ${productStoreShipMethId} 的产品店铺送货方法(ProductStoreShipmentMeth)时出错:${errorString}</value>
<value xml:lang="zh">中国人民币元</value>
<value xml:lang="zh">如果选择"specify other",下拉框旁边会出现文本框。参考form的drop-down元素的other-field-size属性说明</value>
<value xml:lang="zh">文本消息</value>
<value xml:lang="zh">能够收到和解析XML消息,但是BSR->NOUN(买卖关系->名词) ${bsrNoun} 和/或 BSR->VERB(买卖关系->动词) ${bsrVerb} 是空的</value>
I have no competency to judge these changes, but from previous Shi Jinghai's feedback I believe there are OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625816 13f79535-47bb-0310-9956-ffa450edef68
2014-09-17 20:44:07 +00:00
Jacques Le Roux 6a26060c20 No functional change, removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624817 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 08:53:33 +00:00
Jacques Le Roux ea994aee40 OFBIZ-5770 - Removes the harcoded ports related with service locations introduced with OFBIZ-4794
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624809 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 08:37:46 +00:00
Jacopo Cappellato c80170456d Fixed the regression that Jacques introduced with the work on portOffset when the immutability of ServiceLocation was broken; now the class is thread-safe again.
However the portOffset code, before and after my fix, is really ugly and should be reverted completely: the "8080" and "1099" ports, that are configurable in OFBiz, are hardcoded in the portOffset code and so this code can only work when OFBiz is executed with the default ports.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624767 13f79535-47bb-0310-9956-ffa450edef68
2014-09-13 17:05:03 +00:00
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
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