Commit Graph
27737 Commits
Author SHA1 Message Date
Arun Patidar 45b75f4405 IMPROVED: Create separate Permission Services for CRUD services of ShoppingList and ShoppingListItem. (OFBIZ-9763)
Thanks Chinmay Patidar for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813619 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:41:46 +00:00
Akash Jain 7e8b362980 Fixed: Success message also showing before the party identification number is updated, applied patch from jira issue (OFBIZ-9895)
Thanks, Pallavi Goyal for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813617 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:31:11 +00:00
Akash Jain f2f544e848 Improved: Required field indicator (*) is missing on edit data resource role, applied patch from jira issue (OFBIZ-9757)
Thanks, Rohit Rai for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813614 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:07:07 +00:00
Deepak Dixit af784a0f20 Order : Remove unused imports from groovy files for code optimization. (OFBIZ-9509)
Thanks  Suraj Khurana and Pradeep Choudhary for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813612 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 11:55:36 +00:00
Akash Jain be5f0c5896 Improved: Required field indicator (*) is missing from create contact list, applied patch from jira issue (OFBIZ-9756)
Thanks, Rohit Rai for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813611 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 11:48:55 +00:00
Deepak Dixit 0960dc3963 Reverted 1813609, found some improvements, so reverted commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813610 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 11:35:42 +00:00
Deepak Dixit b4aacd8823 Replace Inline Javascript with External Javascript (OFBIZ-9465)
Applied patch from jira ticket, Removed inline code for masking and elrte (WYSISYG editor). 
Thanks Aditya Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813609 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 11:21:34 +00:00
Akash Jain b18fdf7f7d Fixed: Issue while removing RateAmount Record, applied patch from jira issue (OFBIZ-9904)
Thanks, Parakh Maheshwari and Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813608 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 11:11:19 +00:00
Akash Jain 51ea922433 Fixed: Fixed Asset Id field is below update button on EditInventoryItem page, applied patch from jira issue with slightly change (OFBIZ-9503)
Thanks, Aditya Sharma and Dhaval Wagela for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813600 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 10:41:25 +00:00
Arun Patidar 3d17256a93 Credit card valdation does not work properly during anonymous quick checkout process. ShoppingCart's 'getPaymentMethodTypes' method should use 'getPaymentMethodTypeIds' internally instead of 'getPaymentMethodIds'
Merged patches from ticket OFBIZ-1585 and OFBIZ-9755
Thanks Amit Gadaley, Deepak Dixit, Divesh Dutta and Mridul Pathak for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813598 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 09:30:16 +00:00
Akash Jain 132636ac33 Improved: No option to add Event Purpose on Events page, applied patch from jira issue with slightly changes (OFBIZ-9680)
Thanks: Sonal Patwari and Lalit Dashora for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813597 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 09:27:21 +00:00
Deepak Dixit 917a8c0d44 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

Updated rat-excludes.txt file

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813595 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 08:33:50 +00:00
Rishi Solanki 02a032fb83 Fixed: Party Id label missing from edit data resource role. Remove the empty title property to populate the default ui label using FormFielTitle_ pattern. Thanks to Rohit Rai for reporting the issue and provinding fix for the same.
(OFBIZ-9758)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813588 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 08:04:59 +00:00
Jacques Le Roux 697109b6c4 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, a last try after looking at another example (Jmeter after
Celix and Tomcat for last tries)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813587 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 07:50:30 +00:00
Deepak Dixit a764afff55 Improved: Moved date plugin from images/date to common/js/plugins(OFBIZ-5776)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813586 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 07:42:41 +00:00
Jacques Le Roux 8c17c3c1af Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, do we need regex here? If yes why would OPTIONAL_LIBRARIES
not work? 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813585 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 07:20:26 +00:00
Jacques Le Roux 371725e02f Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, seems that we need to have the RAT explanation part
separated and above the excluded files list, forgot the ASL2 header?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813584 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 07:15:23 +00:00
Deepak Dixit f7a086e5c7 Improved:Removed unused empty folder, and its classpath entry from order/ofbiz-component.xml. Found while console read
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813561 13f79535-47bb-0310-9956-ffa450edef68
2017-10-27 19:05:27 +00:00
Jacques Le Roux 71102b6c63 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, seems that we need to have the RAT explanation part
separated and above the excluded files list

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813554 13f79535-47bb-0310-9956-ffa450edef68
2017-10-27 17:38:35 +00:00
Jacques Le Roux 5a846fa5db Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, seems that we need to indent not RAT used exclusion part

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813551 13f79535-47bb-0310-9956-ffa450edef68
2017-10-27 17:27:23 +00:00
Jacques Le Roux 5a9b3989cd Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change

Adds a WIP rat-excludes.txt file.
This excludes OFBiz files for Apache RAT tool run by ASF Buildbot,
https://ci.apache.org/projects/ofbiz/rat-output.html
http://creadur.apache.org/rat/
http://creadur.apache.org/rat/apache-rat/

While at it adds a ASL2 header to .xmlcatalog.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813550 13f79535-47bb-0310-9956-ffa450edef68
2017-10-27 17:08:55 +00:00
Jacques Le Roux bf43edbdeb No functional change
Changes the OFBiz logo file name as it has been changed in the site



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813480 13f79535-47bb-0310-9956-ffa450edef68
2017-10-27 08:11:12 +00:00
Deepak Dixit 1a93abaa07 Removed unused SECA rule, as we have new group service createBillingAccountAndRole for this purpose. This seca rule will never get trigger.
Thanks Suraj Khurana for reporting the issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813391 13f79535-47bb-0310-9956-ffa450edef68
2017-10-26 11:50:19 +00:00
Michael Brohl 03175996f2 Fixed: X-Frame-Options configuration is not working
(OFBIZ-9891)

This fixes a bug where the configuration attribute in the view-map 
differs from what is read in the configuration handler. 

Aditionally,
a new option "none" is introduced. If it is set, no X-Frame-Options 
header will be set.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813276 13f79535-47bb-0310-9956-ffa450edef68
2017-10-25 12:56:01 +00:00
Deepak Dixit eea53baef0 Fixed: Moved enabled attribute definition to its correct place, it was added in wrong attribute group
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813219 13f79535-47bb-0310-9956-ffa450edef68
2017-10-24 18:33:04 +00:00
Jacques Le Roux 3c6a52f7da Fixed: Not setting VIEW_INDEX for IterateSectionWidget.renderWidgetString causes
rendering error
(OFBIZ-9889)

A bug was introduced in OFBIZ-9710, that created a catch block for a 
RuntimeException that would be thrown again. Unfortunately the code block relied 
on catching a NumberFormatException in case VIEW_INDEX was not set, which in the
original code was not intuitively recognisable, because only Exception was caught.

In the provided patch I removed the catch block for the RTE und changed Exception 
to NumberFormatException, since it is the only Exception that is expected.

Thanks: Tobias Laufkötter

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813067 13f79535-47bb-0310-9956-ffa450edef68
2017-10-23 19:28:32 +00:00
Michael Brohl 3ce6210e58 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.widget.model.
(OFBIZ-9710)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812918 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 13:58:51 +00:00
Michael Brohl b29bb5df10 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.service.job.
(OFBIZ-9709)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812916 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 13:31:23 +00:00
Michael Brohl 8392d41d95 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.transaction.
(OFBIZ-9707)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812915 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 13:27:03 +00:00
Michael Brohl a886588282 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.test.
(OFBIZ-9706)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812912 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 13:07:12 +00:00
Michael Brohl dfbf625956 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.serialize.
(OFBIZ-9705)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812910 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 13:03:31 +00:00
Michael Brohl 75fd7fdde6 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.widget.renderer.
(OFBIZ-9704)

Applied a modified version of the patch, the null check for menuWarapper 
in MenuWrapTransfor is needed.

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812908 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 12:46:33 +00:00
Michael Brohl 582461d8fb Bugfix: added JavaDoc param name and description, Buildbot saw the
missing parameter name as an error.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812904 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 12:35:52 +00:00
Michael Brohl 4f47ece078 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.workeffort.workeffort.
(OFBIZ-9703)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812900 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 12:04:00 +00:00
Michael Brohl 4dd37a8401 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.widget.renderer.macro.
(OFBIZ-9702)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812899 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 11:53:14 +00:00
Michael Brohl c2d7f3622f Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.service.eca.
(OFBIZ-9683)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812897 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 11:24:21 +00:00
Michael Brohl 39f9a1bd96 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.accounting.thirdparty.sagepay.
(OFBIZ-9545)

Thanks Karsten Tymann for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812895 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 11:02:11 +00:00
Jacques Le Roux 4484f5a4f3 Improved: Facility main screen relies on demo data
(OFBIZ-5321)

In facility you are normally supposed to choose a facility on main page. 
Because the POS component was removed in 13.07 it had a small side effect. 
You can't anymore choose one facility. Because there is only one so you get 
directly to the update page of the web facility, which is confusing. 

The Facility main screen was not designed to support a system with just one 
facility defined and the issue is now evident in 13.07 because the demo 
facility defined in the POS component (facilityId="MyRetailStore") 
is no more loaded. We should not rely on demo data for the proper functioning 
of the system. 

It's related to r734037, but too much time passed since, easier to explain on
screen with a label, so not considered a bug but an improvement

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812888 13f79535-47bb-0310-9956-ffa450edef68
2017-10-22 08:51:08 +00:00
Michael Brohl 59370de2bc Fixed: Wrong String comparisons introduced in r1812255.
Also changed the method name from isswitch to isSwitch.

Thanks to FindBugs for pointing me to this :-)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812794 13f79535-47bb-0310-9956-ffa450edef68
2017-10-20 22:33:13 +00:00
Jacques Le Roux 7e3754293a Implemented: Secure HTTP headers
(OFBIZ-6766)

Adds a Content Security Policy

To not block anything for the moment I have committed a simple most restrictive
Content-Security-Policy-Report-Only header

Then we can look at the issues using browsers tools (there are so much)
The next step is to report the errors (when there will not be too much) in the 
log using a report-uri
And ultimately to use OOTB the most simple and constraining policy, with 
exceptions of course (as ever).




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812720 13f79535-47bb-0310-9956-ffa450edef68
2017-10-20 08:02:55 +00:00
Jacques Le Roux c174d69caa Reverted: Enhance cookies security
(OFBIZ-9865)

This reverts r1812540. It does not fit with OFBiz which then ask you to login
on any action!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812623 13f79535-47bb-0310-9956-ffa450edef68
2017-10-19 11:47:09 +00:00
Jacques Le Roux 59f2542350 No functional security change,
Adds org.apache.catalina.connector.RECYCLE_FACADES=true
This is recommended by 
https://tomcat.apache.org/tomcat-8.5-doc/security-howto.html#System_Properties


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812612 13f79535-47bb-0310-9956-ffa450edef68
2017-10-19 10:14:19 +00:00
Jacques Le Roux 90a6bd3fa9 Implemented: Secure HTTP headers
(OFBIZ-6766)

Adds 
  the no-referrer-when-downgrade Referrer-Policy
  a comment about Public-Key-Pins-Report-Only
  a link to the related wiki page

This is my prior to last commit, before implementing a CSP policy which is quite
the stuff! Check yourself https://csp.withgoogle.com/docs/adopting-csp.html


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812609 13f79535-47bb-0310-9956-ffa450edef68
2017-10-19 10:00:48 +00:00
Jacques Le Roux 04e2e485d0 Improved: Enhance cookies security
(OFBIZ-9865)

Working on OFBIZ-6766, I was reading 
https://www.owasp.org/index.php/Session_Management_Cheat_Sheet#SameSite_Attribute 
and decided to slightly improve our cookies security


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812540 13f79535-47bb-0310-9956-ffa450edef68
2017-10-18 15:01:04 +00:00
Michael Brohl 2eaa1fcd78 Improved: Label Manager: Have totals shown at the top of the search
results.
(OFBIZ-6457)

Thanks Pierre Smits for reporting and providing the initial patch,
Aditya Sharma for the revised patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812479 13f79535-47bb-0310-9956-ffa450edef68
2017-10-18 09:05:42 +00:00
Jacques Le Roux a27122f819 Improved: Using try-with-resources with JDBC objects
(OFBIZ-9839)

Use try with resources for SQL objects like ResultSet and other objects. 
SQL classes have AutoCloseable interface.

Thanks: Pradhan Yash Sharma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812466 13f79535-47bb-0310-9956-ffa450edef68
2017-10-18 07:56:49 +00:00
Jacques Le Roux 942cb96b04 No functional change; just a name change
The real English name for saphir (that's French) is sapphire

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812458 13f79535-47bb-0310-9956-ffa450edef68
2017-10-18 05:18:53 +00:00
Deepak Dixit 651a17d213 Improved: Added ability to disable seca rule (OFBIZ-9826)
We have enabled flag in ServiceEcaRule class, if its set false then seca rule will not be executed.
But there is not way to disable seca.

We can add enabled flag in SECA definition to disable the existing seca rule.
Here is the proposal:
- Add new attribute on seca tag named enabled
- Default value will be true for this.
- If user want to disable existing OOTB seca rule, then user can define same rule in custom component and set the enabled=false
Need to do some changes in code to honor the enabled attribute while loading seca rule.

Also as per current flow if same seca rule is define more then once, system will execute all the rule, ideally it should not execute same rule (same rule, condition and action) if its defined more than one.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812394 13f79535-47bb-0310-9956-ffa450edef68
2017-10-17 11:52:14 +00:00
Deepak Dixit c69a9c7806 Fixed: Lead Profile missing if clicked on other menu (OFBIZ-9655)
Thanks Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812387 13f79535-47bb-0310-9956-ffa450edef68
2017-10-17 11:32:06 +00:00
Deepak Dixit f230efdf64 Improved: While creating inventory transfer, to location parameter is not handled (OFBIZ-9834)
Thanks Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812386 13f79535-47bb-0310-9956-ffa450edef68
2017-10-17 11:19:14 +00:00