Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux e7c14d5bfc No functional change, just documentation in README.MD
Adds a note for JDBC drivers
Move the Security section below the Quick start section

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1778413 13f79535-47bb-0310-9956-ffa450edef68
2017-01-12 10:15:57 +00:00
Taher A. Alkhateeb 72b9013f24 Implemented: renamed the directory specialpurpose to plugins
(OFBIZ-7972)

In another step towards completing the plugin system for OFBiz, we renamed
the /specialpurpose directory to /plugins and changed all occurences of the
word "specialpurpose" to "plugins" in all files found in the system

Reference discussion: http://markmail.org/message/hpyuxkmftiyn44w2


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1778271 13f79535-47bb-0310-9956-ffa450edef68
2017-01-11 10:48:47 +00:00
Jacques Le Roux 4783629f62 Improved: Make xssi prefix configurable
(OFBIZ-9169)

In OFBIZ-5409 a prefix was added for GET ajax requests.  
It would be beneficial if the prefix could be configured instead of hard coded

Pierre Smits suggested to make the feature multi-tenant aware. I made signature 
and calls changes based on Chris Howe's patch.

Thanks: Chris Howe and Pierre Smits 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777942 13f79535-47bb-0310-9956-ffa450edef68
2017-01-09 09:12:55 +00:00
Jacques Le Roux 25e965cb2e Implemented: New implementation of Birt. Easier user possibility of
report creation
(OFBIZ-6919)

This are a non functional changes not yet used OOTB. 
They are only intended to ease the sync between the svn trunk repo and 
the github branch (using a fork)

So still a WIP...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777586 13f79535-47bb-0310-9956-ffa450edef68
2017-01-06 10:54:20 +00:00
Jacques Le Roux 6c88ed0ab9 Implemented: Create and use an OWASP PolicyFactory for content sanitization
in ContentWorker for Birt Report Builder
(OFBIZ-9166)

This is still an incomplete feature because I did not find yet a way to complete
the BIRT_REPORT_BUILDER_USAGE_POLICY and had to bypass the sanitization for this
case, WIP...

This commit has no effect on OFBiz yet.

I need to commit this now to continue to work on the main task: OFBIZ-6919
"New implementation of Birt. Easier user possibility of report creation". 







git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777451 13f79535-47bb-0310-9956-ffa450edef68
2017-01-05 11:29:26 +00:00
Jacques Le Roux 7f96f78928 Reverts previous commit which contained unexpected changes which were not yet
ready to be committed. 

Only remains a not functional change, only formatting and imports  cleaning of 
FormRenderer.java 

Sorry for the trouble


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777448 13f79535-47bb-0310-9956-ffa450edef68
2017-01-05 11:20:50 +00:00
Jacques Le Roux f9cfdd5880 No functional change, only formatting and imports cleaning
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777446 13f79535-47bb-0310-9956-ffa450edef68
2017-01-05 11:13:28 +00:00
Jacques Le Roux ccbf8e91d8 No functional change, simplifies method signature
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777311 13f79535-47bb-0310-9956-ffa450edef68
2017-01-04 13:33:21 +00:00
Jacques Le Roux 7f59e138e9 No functional change, fixes a Javadoc issue
I can't check here (Win7) because of:

C:\projectsASF\ofbiz\framework\common\src\main\java\org\apache\ofbiz\common\
UrlServletHelper.java:251: error: unmappable character for encoding Cp1252
        str = str.replace("´╝?", "-");

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777310 13f79535-47bb-0310-9956-ffa450edef68
2017-01-04 13:32:20 +00:00
Jacques Le Roux 409d76ba07 Improved: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)

While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue 
due to r1652852 where Adrian improved the cacheKey in 
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants). 

Actually I'm not even sure it was done at r1652852 because Adrian did not 
maintain the FormFactory svn history.

Anyway, to make a long story short I had to introduce a DispatchContext 
parameter when calling FormFactory.readFormDocument() when the code from 
R13.07 only passed a null.

This had an impact in the hierarchy tree because FormFactory.readFormDocument() 
was called in DataResourceWorker class, where the new code was called 
from renderDataResourceAsText(). 

So I instead of only passing a Delegator I decided to pass only a 
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the 
Delegator  from the LocalDispatcher. Doing so it had an impact on the 
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface 
and all related.

I finally decided to apply the same "Change Method Signature" refactoring 
pattern (http://refactoring.com/catalog/addParameter.html) to all cases 
related to ContentWorkerInterface. No need to pass a delegator when you have 
LocalDispatcher!

Since last commit and revert I fixed 5 test failures and improved the code more,
 mostly formatting, comments, etc.

There are very ugly method signatures out there which still need refactoring,
but it's so much work...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777297 13f79535-47bb-0310-9956-ffa450edef68
2017-01-04 12:48:11 +00:00
Jacques Le Roux 094c34b0af No functional changes, fixes methods "JavaDoc"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777273 13f79535-47bb-0310-9956-ffa450edef68
2017-01-04 09:45:58 +00:00
Jacopo Cappellato f09e7e62db Implemented: updated end of year of the Copyright NOTICE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777159 13f79535-47bb-0310-9956-ffa450edef68
2017-01-03 16:42:45 +00:00
Jacques Le Roux e59c71db8b Reverted:Merged revision(s) 1777145 from ofbiz/trunk:
Improved: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)

While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue 
due to r1652852 where Adrian improved the cacheKey in 
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants). 

Actually I'm not even sure it was done at r1652852 because Adrian did not 
maintain the FormFactory svn history.

Anyway, to make a long story short I had to introduce a DispatchContext 
parameter when calling FormFactory.readFormDocument() when the code from 
R13.07 only passed a null.

This had an impact in the hierarchy tree because FormFactory.readFormDocument() 
was called in DataResourceWorker class, where the new code was called 
from renderDataResourceAsText(). 

So I instead of only passing a Delegator I decided to pass only a 
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the 
Delegator  from the LocalDispatcher. Doing so it had an impact on the 
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface 
and all related.

I finally decided to apply the same "Change Method Signature" refactoring 
pattern (http://refactoring.com/catalog/addParameter.html) to all cases 
related to ContentWorkerInterface. No need to pass a delegator when you have 
LocalDispatcher!

I locally got 5 incomprehensible test failures. After checking as much as I can
w/o committing I believe it's a Windows 7 issue only. Anyway if Buildbot reports
the same I'll revert. I need this changes in to continue on another not yet 
created subtask of OFBIZ-6919 
........


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777154 13f79535-47bb-0310-9956-ffa450edef68
2017-01-03 16:14:29 +00:00
Jacques Le Roux 8ff0fe3a74 Improved: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)

While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue 
due to r1652852 where Adrian improved the cacheKey in 
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants). 

Actually I'm not even sure it was done at r1652852 because Adrian did not 
maintain the FormFactory svn history.

Anyway, to make a long story short I had to introduce a DispatchContext 
parameter when calling FormFactory.readFormDocument() when the code from 
R13.07 only passed a null.

This had an impact in the hierarchy tree because FormFactory.readFormDocument() 
was called in DataResourceWorker class, where the new code was called 
from renderDataResourceAsText(). 

So I instead of only passing a Delegator I decided to pass only a 
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the 
Delegator  from the LocalDispatcher. Doing so it had an impact on the 
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface 
and all related.

I finally decided to apply the same "Change Method Signature" refactoring 
pattern (http://refactoring.com/catalog/addParameter.html) to all cases 
related to ContentWorkerInterface. No need to pass a delegator when you have 
LocalDispatcher!

I locally got 5 incomprehensible test failures. After checking as much as I can
w/o committing I believe it's a Windows 7 issue only. Anyway if Buildbot reports
the same I'll revert. I need this changes in to continue on another not yet 
created subtask of OFBIZ-6919 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777145 13f79535-47bb-0310-9956-ffa450edef68
2017-01-03 15:37:25 +00:00
Shi Jinghai 71a5dced3b Implemented: Update Apache Solr/Lucene to release 6.2.1
(OFBIZ-8316)

Upgraded Apache Solr/Lucene from 5.3.1 to 6.2.1.

Thanks: Michael Brohl and Cao PengAn for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776930 13f79535-47bb-0310-9956-ffa450edef68
2017-01-02 13:44:06 +00:00
Taher A. Alkhateeb 7edd9deefa Implemented: replace leftshift operators with doLast clojures in build.gradle
(OFBIZ-9160)

Gradle 3+ has deprecated the leftshift operator "<<" in favor of using the
doLast closure. Hence all instances of the leftshift operator are replaced
with doLast in build.gradle.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776642 13f79535-47bb-0310-9956-ffa450edef68
2016-12-30 21:46:27 +00:00
Jacques Le Roux 5b6cdb16f9 Implemented: Add the entity-auto CRUD services for RuntimeData
(OFBIZ-9161)

At OFBIZ-9159 I added the entity-auto CRUD services for JobSandbox but 
w/o permission check. 

While working on this issue I decided it's better to have them and decided to 
also put them for JobSandbox CRUD services.

So here are the entity-auto CRUD services for RuntimeData and permission check 
for JobSandbox CRUD services


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776558 13f79535-47bb-0310-9956-ffa450edef68
2016-12-30 13:16:50 +00:00
Taher A. Alkhateeb 040c9f643c Improved: upgrade gradle to version 3.2.1
(OFBIZ-9160)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776532 13f79535-47bb-0310-9956-ffa450edef68
2016-12-30 09:46:07 +00:00
Jacques Le Roux 5167567dc3 Implemented: Add the entity-auto CRUD services for JobSandbox
(OFBIZ-9159)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776528 13f79535-47bb-0310-9956-ffa450edef68
2016-12-30 08:53:50 +00:00
Taher A. Alkhateeb e4314c5323 Fixed: provided an updated script for gradle bash-completion in README.md
The old reference for gradle bash completion is broken. Hence using a newer
fork that works correctly and in multiple environments


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776453 13f79535-47bb-0310-9956-ffa450edef68
2016-12-29 17:01:57 +00:00
Jacques Le Roux 540dba0300 Implemented: Add a isValid() method to the ModelService class
(OFBIZ-9158)

Improves after a discussion with Scott and Taher on dev ML

Improved to be called only with IN params, the JavaDoc is also improved to 
reflect the changes



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776447 13f79535-47bb-0310-9956-ffa450edef68
2016-12-29 16:08:11 +00:00
Jacques Le Roux 570c0002e6 Implemented: Add a isValid() method to the ModelService class
(OFBIZ-9158)

The idea is to use validate() to render a boolean result. I needed that in a 
custom project, I think it's worth contributing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776243 13f79535-47bb-0310-9956-ffa450edef68
2016-12-28 08:47:25 +00:00
Jacopo Cappellato 5ede20fd95 Improved: minor changes to make the method easier to test with unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776148 13f79535-47bb-0310-9956-ffa450edef68
2016-12-27 15:17:47 +00:00
Jacopo Cappellato 1b9f6eba44 Implemented: a set of unit tests for the
ExternalLoginKeysManager.getExternalLoginKey(...) method.

Minor refactoring of the getExternalLoginKey(...) method to make it more 
friendly to unit tests.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776138 13f79535-47bb-0310-9956-ffa450edef68
2016-12-27 14:29:37 +00:00
Jacques Le Roux f9f9c28971 Improved: Demo data for serialized and non-serialised product
(OFBIZ-7766)

Currently, InventoryItemTypeId attribute is empty for all Product entity's demo 
data. In real cases, there are products that are purely serialised 
(like equipments) or purely non-serialised (like liquid). 

Thanks: James Yong

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1775989 13f79535-47bb-0310-9956-ffa450edef68
2016-12-24 19:53:51 +00:00
Jacopo Cappellato ebac046aef Improved: moved the logic/implementation of OFBiz legacy authentication
tokens from the LoginWorker class to a new class named ExternalLoginKeysManager.

Improved Javadocs in the new class.
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1775807 13f79535-47bb-0310-9956-ffa450edef68
2016-12-23 09:35:26 +00:00
Taher A. Alkhateeb dba8fdecdb Improved: provided clearer documentation for the eclipse task in Gradle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1775597 13f79535-47bb-0310-9956-ffa450edef68
2016-12-22 09:30:55 +00:00
Jacques Le Roux f1c502069d No functional change, updates location of view handlers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1775441 13f79535-47bb-0310-9956-ffa450edef68
2016-12-21 14:30:52 +00:00
Taher A. Alkhateeb 9cdf1909ee Improved: Refactored Config.java to simplify fields initialization
Improvements remove in total roughly 70 lines of code and includes:

- moving all default values to the constructor to make it clear
- refactor getProperty to use the Optional monad
- remove FileInputStream from getPropertiesFile as it is not used
- properly indent conditions in determineOfbizPropertiesFileName
- simplify locale creation
- remove dependency on base (StringUtil)
- other minor renamings and formatting



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1775340 13f79535-47bb-0310-9956-ffa450edef68
2016-12-20 19:26:11 +00:00
Taher A. Alkhateeb 5953cb9e64 Improved: properly implement the Optional interface for retrieving portoffset
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1775238 13f79535-47bb-0310-9956-ffa450edef68
2016-12-20 09:35:11 +00:00
Michael Brohl 3a19ac52b5 Improved: Raise build error if Javadoc is not valid.
This is part of the Javadoc refactoring issue as discussed in (OFBIZ-9144)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774933 13f79535-47bb-0310-9956-ffa450edef68
2016-12-18 19:27:29 +00:00
Michael Brohl 945a8afd9c Improved: refactor javadocs in OFBiz to be standards compliant
(OFBIZ-9144)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774922 13f79535-47bb-0310-9956-ffa450edef68
2016-12-18 18:12:21 +00:00
Jacques Le Roux 5608a24f98 Improved: Refactor forms in Example
(OFBIZ-9146)

Refactoring form definitions with type='single'
Refactoring various lists forms into grids.
Refactoring various list form references in screen widgets into grid references


Thanks: Pierre Smits

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774906 13f79535-47bb-0310-9956-ffa450edef68
2016-12-18 16:55:27 +00:00
Hans Bakker 3c15931494 missing </div> and reduce length of lines
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774853 13f79535-47bb-0310-9956-ffa450edef68
2016-12-18 07:01:48 +00:00
Michael Brohl 97ba34128e Improved: refactor javadocs in OFBiz to be standards compliant
(OFBIZ-9144)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774815 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 23:34:51 +00:00
Michael Brohl 5a3c73fc2f Improved: Client side validation required in Tax Infos (Add Party Tax Authority Info).
(OFBIZ-7437)

Thanks: Padmavati Rawat for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774806 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:51:52 +00:00
Michael Brohl 2d7fb26c99 Improved: Client side validation is missing at Add Ebay Configuration form.
(OFBIZ-7866)

Thanks: Deepak Nigam for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774805 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:46:29 +00:00
Michael Brohl 1fae29d4a7 Improved: Client side validation is missing at Create Ebay Account form.
(OFBIZ-7952)

Thanks: Deepak Nigam for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774804 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:41:31 +00:00
Michael Brohl 5b74eac710 Improved: Client side validation is missing at Create User Login form.
(OFBIZ-7984)

Thanks: Deepak Nigam for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774802 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:37:10 +00:00
Michael Brohl 76e73ad5c0 Improved: Proper client side validation while creating price rule from catalog manager.
(OFBIZ-7307)

Thanks: Suraj Khurana for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774801 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:31:14 +00:00
Michael Brohl 260c6c0424 Improved: Require client side validation while creating Product Association.
(OFBIZ-7424)

Thanks: Padmavati Rawat for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774800 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:27:22 +00:00
Michael Brohl 59d7b72ce0 Improved: Client side validation on Add product categories form in catalog.
(OFBIZ-7425)

Thanks: Suraj Khurana for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774799 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:20:55 +00:00
Michael Brohl fbcff9ffdc Improved: Client side validation required in Add Billing Accounts Role.
(OFBIZ-7429)

Thanks: Padmavati Rawat for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774798 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 20:12:53 +00:00
Michael Brohl bee722c1f1 Improved: Client Side validation missing on Create New Tax Authority Form.
(OFBIZ-7436)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774796 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 19:56:27 +00:00
Michael Brohl 2017ee3091 Improved: Client Side validation missing on Create Payment screen.
(OFBIZ-7430)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774794 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 16:27:13 +00:00
Michael Brohl 9d3ffe77d6 Improved: Proper Form validation should be added while creating new agreement product.
(OFBIZ-7441)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774790 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 16:22:43 +00:00
Michael Brohl 3da2380660 Improved: Proper form validation should be there while creating Agreement Item Party.
(OFBIZ-7458)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774788 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 16:18:58 +00:00
Michael Brohl 0615bf828f Improved: Proper form validation should be there while creating Agreement Item Facility.
(OFBIZ-7461)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774786 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 16:15:10 +00:00
Michael Brohl d196677a16 Improved: Proper form validation should be there while creating Agreement Roles.
(OFBIZ-7511)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774785 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 16:09:55 +00:00
Michael Brohl e0f14c91c2 Improved: Proper Form Validation should be there while adding new Example Feature.
(OFBIZ-7476)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774776 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 15:25:12 +00:00