Commit Graph
27737 Commits
Author SHA1 Message Date
Michael Brohl e12e868551 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.securityext.login.
(OFBIZ-9637)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811430 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:19:29 +00:00
Michael Brohl 57aa05a457 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.security.
(OFBIZ-9635)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811429 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:15:58 +00:00
Michael Brohl a7beb48720 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.uom.
(OFBIZ-9634)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811428 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:12:51 +00:00
Michael Brohl 2a66a06aef Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.qrcode.
(OFBIZ-9633)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811427 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:10:50 +00:00
Michael Brohl 404139505e Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.period.
(OFBIZ-9631)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811426 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:08:49 +00:00
Michael Brohl 31a2e43496 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.login.
(OFBIZ-9630)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811424 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:06:21 +00:00
Michael Brohl 36492861ee Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.image.
(OFBIZ-9629)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811423 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:00:27 +00:00
Michael Brohl 17db653e57 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.email.
(OFBIZ-9628)

Applied modified patch due to intermediate changes and removed an
obsolete import.

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811422 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 13:56:48 +00:00
Michael Brohl 2921eff056 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.authentication.
(OFBIZ-9627)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811421 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 13:49:20 +00:00
Michael Brohl 61d6a6ede0 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.base.util.string.test.
(OFBIZ-9589)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811418 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 12:47:36 +00:00
Michael Brohl 7279dec7c2 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.base.util.cache.test.
(OFBIZ-9576)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811416 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 12:28:52 +00:00
Michael Brohl 06fc59dbf5 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.base.util.cache.
(OFBIZ-9575)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811415 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 12:26:35 +00:00
Michael Brohl d55ec1f8bb Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.base.test.
(OFBIZ-9574)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811414 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 12:13:05 +00:00
Michael Brohl bfa9e5adf6 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.base.start.
(OFBIZ-9573)

I slighly modified the patch because of a conflicting change.

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811413 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 12:07:16 +00:00
Michael Brohl ca0aad902b Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.accounting.thirdparty.clearcommerce.
(OFBIZ-9454)

Thanks Kyra Pritzel-Hentley for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811407 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 10:57:14 +00:00
Michael Brohl 96601e4d22 Fixed: Exception in service semaphore in wait mode and with multi
thread calls.
(OFBIZ-9534).

Thanks Pierre Gaudin for reporting and providing the patch.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811406 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 10:23:02 +00:00
Michael Brohl 80476aded7 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.accounting.invoice.
(OFBIZ-9541)

Thanks Karsten Tymann for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811405 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 09:59:47 +00:00
Michael Brohl 6f2a491a9a Improved: Update to Tomcat 8.5.23.
(OFBIZ-9813)

This Tomcat version fixes CVE-2017-12617.

Thanks Dennis Balkir for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811404 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 09:30:48 +00:00
Deepak Dixit 7184ba69fb Removed tabstyles.css unused empty file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811224 13f79535-47bb-0310-9956-ffa450edef68
2017-10-05 18:40:31 +00:00
Deepak Dixit 835a11b92c Improved: Moved form.css and reset.css from common theme to ecommerce plugin as its only for ecommerce. (OFBIZ-9771)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811223 13f79535-47bb-0310-9956-ffa450edef68
2017-10-05 18:35:27 +00:00
Deepak Dixit ba33b9b0f3 Improved: Moved ecommain.css from common theme to ecommerce plugin as its only for ecommerce. (OFBIZ-9771)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811221 13f79535-47bb-0310-9956-ffa450edef68
2017-10-05 18:24:07 +00:00
Deepak Dixit 71d9a5e21b Fixed: Moved contentForum.css to contentimages webapp and updated path accordinlgy. This will complete the r1658621 and r1674451 (OFBIZ-6259)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811130 13f79535-47bb-0310-9956-ffa450edef68
2017-10-04 18:56:33 +00:00
Deepak Dixit 85ae1f2df9 Improved: Removed unused file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811121 13f79535-47bb-0310-9956-ffa450edef68
2017-10-04 18:45:09 +00:00
Deepak Dixit f58e871323 Improved: Moved multiflex theme from themes to plugins (OFBIZ-9789)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811118 13f79535-47bb-0310-9956-ffa450edef68
2017-10-04 18:35:31 +00:00
Jacques Le Roux d403812811 Fixed: FTL Error in OrderView screen
(OFBIZ-9803)

Steps to regenerate:
1. Open OrderView screen.
2. Click on Edit Items under Actions section.
3. Now you can see the new section "Add To Order" where FTL error is generating.

jleroux: I have no ideas why this happens now. It's not happening in R16 which
si good and reassuring. So it's only a recently introduced regression. I hope
there are no others impacts...


Thanks: Renuka Srishti

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811061 13f79535-47bb-0310-9956-ffa450edef68
2017-10-04 10:00:26 +00:00
Nicolas Malin 8f447bdbc2 Fixed: InitTheme.groovy can't work without request (OFBIZ-9798)
When a sendOrderConfirmation runs it calls InitTheme.groovy. But then there is no request and InitTheme fails
The script was improved to escape if the request is empty and try before to resolve the visualThemeId from the context
Tanks Jacques for the catch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811042 13f79535-47bb-0310-9956-ffa450edef68
2017-10-04 07:13:21 +00:00
Jacques Le Roux 456ad70aca Improved: Add session tracking mode and make cookie secure
(OFBIZ-6655)

Programmatically replaces the web.xml <session-config> declarations and uses 
the @WebListener annotation to start the process. This avoid to duplicates 
things everywhere in web.xml files. Since the web.xml files have precedence 
on annotations, the setting can be easily overridden when necessary.

Now that we also use HTTPS in ecommerce the ecommerce session cookie is 
also secured.

I also noted that we had 8 weird <session-timeout> declarations:
    in solr component: <session-timeout>2</session-timeout>
    in themes: <session-timeout>1</session-timeout>

Also in Rainbowstone we lacked the <cookie-config> and <tracking-mode> 
declarations. I think it's not good.

I resolve these points by simply removing the <session-config> in web.xml files 
of themes and Solr.

Thanks: Pradhan Yash Sharma  for review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811041 13f79535-47bb-0310-9956-ffa450edef68
2017-10-04 07:12:57 +00:00
Michael Brohl 2c2078768d Fixed: EmailServices.sendMailFromScreen improved to take multiple
attachments with appropriate type along with several email fixes.
(OFBIZ-9395).

This adds the missing service attributes for attachmentType and
attachmentTypeList which did not come with the initial patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810260 13f79535-47bb-0310-9956-ffa450edef68
2017-10-01 10:39:18 +00:00
Taher A. Alkhateeb c198d0dde0 Fixed: Login after multitenant bug
(OFBIZ-9278)

Investigation of the code base revealed that the implementation of the
createTenant gradle task was faulty where the master tenants database
(ofbiztenant) is not loaded with any tenant information. This is because the
flag for readers is missing (readers=tenant).

This commit fixes the issue, however, another bug is revealed after the fix in
which trying to login to the first tenant, then logout then login to the second
tenant fails with an error message of user not found. This is most likely a bug
related to session management or cookies on the client side because logging in
from two different browsers succeeds without any issues.

Thanks: Guillaume Fortin for reporting and Vivek Mishra for testing and
feedback


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810216 13f79535-47bb-0310-9956-ffa450edef68
2017-09-30 15:36:32 +00:00
Akash Jain 3967201307 Fixed: 'Find Opportunities' field name is reflecting in place of 'Opportunity Id' on FindSalesOpportunity screen, applied patch from jira issue with some improvements (OFBIZ-9753)
Added opportunityName in search field list as it is showing in the search result.

Thanks, Parakh Maheshwari and Sonal Patwari for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810102 13f79535-47bb-0310-9956-ffa450edef68
2017-09-29 14:11:56 +00:00
Jacques Le Roux d418aa87a2 No functional change
Removes harmless things that should not have been there in r1810056

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810062 13f79535-47bb-0310-9956-ffa450edef68
2017-09-29 08:07:14 +00:00
Jacques Le Roux 975771331b No functional change
Updates Tomcat from 8.5.16 to 8.5.20
Updates owasp-java-html-sanitizer from :20160628.1 to 20170515.1

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810057 13f79535-47bb-0310-9956-ffa450edef68
2017-09-29 07:14:13 +00:00
Jacques Le Roux 171c9b667f No functional change
Updates xstream from 1.4.9 to 1.4.10 to fixes a vulnerability reported by 
Dependency Check
Updates the dependency-check-report.html

There are more to do, but my time is limited...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810056 13f79535-47bb-0310-9956-ffa450edef68
2017-09-29 06:59:45 +00:00
Jacques Le Roux 793f6c586a Reverted: Bug SQL Count Distinct command in GenericDAO.java
(OFBIZ-5701)

Reverts
trunk r1804319
R16.11 r1804320
R15.12 r1804321
R14.12 r1804322
R13.07 r1804323

This raised 2 issues:
  MSSQL as reported by Wei Zhang in OFBIZ-9676
  Dynamic View Entities as reported by Pawan Verma in OFBIZ-5701

I asked kieuanhvu to see if he can provide a new patch taking these 2 issues in
consideration


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810054 13f79535-47bb-0310-9956-ffa450edef68
2017-09-29 06:21:16 +00:00
Akash Jain f97609925d Reverted: Found some improvements in code committed at r1809995. (OFBIZ-9753)
salesOpportunityId passed as hidden and search by opportunity-name instead of opportunity-id in original code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1810004 13f79535-47bb-0310-9956-ffa450edef68
2017-09-28 14:18:40 +00:00
Akash Jain 6a89647d13 Fixed: 'Find Opportunities' field name is reflecting in place of 'Opportunity Id' on FindSalesOpportunity screen, applied patch from jira issue (OFBIZ-9753)
Thanks, Parakh Maheshwari and Sonal Patwari for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809995 13f79535-47bb-0310-9956-ffa450edef68
2017-09-28 13:53:00 +00:00
Rishi Solanki d8cae80589 Improvement: Missing FK constraints in OrderItem entity for ShoppingListItem (OFBIZ-9767). Added one-nofk relation from order item to shopping list item.
Thanks Chandan Khandelwal for reporting and providing patch for issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809971 13f79535-47bb-0310-9956-ffa450edef68
2017-09-28 10:46:00 +00:00
Taher A. Alkhateeb 8701cf7696 Improved: upgraded and cleaned the implementation for OWASP dependency checker
This commit achieves the following improvements to the OWASP gradle plugin for
dependency checks:
- Upgrade the version from 1.4.0 to 2.1.1
- Remove the dependency on MavenCentral and replace it with a custom link to
  the original source of work using a custom maven URL. Thus all dependencies
  are downloaded from JCenter to avoid duplication of library downloads.
- Update README.md on how to use this task


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809846 13f79535-47bb-0310-9956-ffa450edef68
2017-09-27 13:17:21 +00:00
Jacques Le Roux 63938c6816 Improved: Add session tracking mode and make cookie secure
(OFBIZ-6655)

This completes r1809687, no need to secure when deleting. I will not backport

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809838 13f79535-47bb-0310-9956-ffa450edef68
2017-09-27 12:30:25 +00:00
Jacques Le Roux 1674e51b37 Fixed: Unable to run the MRP
(OFBIZ-9794)

This is only loosely related to this issue but I believe it could help and is 
needed anyway

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809821 13f79535-47bb-0310-9956-ffa450edef68
2017-09-27 09:43:10 +00:00
Rishi Solanki 00260d1204 Improvement: Missing Relationship from OrderHeader to WebSite (OFBIZ-9647). Added relationship from order header to website entity. And removed wrong data.
Applied patch from (OFBIZ-9647). Thanks Ratnesh Upadhyay for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809749 13f79535-47bb-0310-9956-ffa450edef68
2017-09-26 14:33:05 +00:00
Jacques Le Roux 39e75f3a46 No functional change.
Clarifies in log when a weppabb is not mounted (overriding another)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809747 13f79535-47bb-0310-9956-ffa450edef68
2017-09-26 13:29:10 +00:00
Jacques Le Roux 6030547746 Fixed: Transaction Timeout in JavaEventHandler
(OFBIZ-9725)

When you run a service from webtools (not scheduling it) the the duration of the
 service is limited to the transaction default timeout (60 seconds)

Thanks: Jeffrey Breault for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809741 13f79535-47bb-0310-9956-ffa450edef68
2017-09-26 13:15:12 +00:00
Jacques Le Roux d56833ae7c Improved: Add session tracking mode and make cookie secure
(OFBIZ-6655)

This is somehow related with OFBIZ-6655 because it's there that Deepak reverted
r1719762 (actually r1719939). It was right to do so at r1722379 for 
RequesHandler but not for the other files. Because it now does not handle 
security for cookies which are not session cookies. It's minor but still a risk,
notably for autoLoginCookie

This reapplies r1719762 for the other files to make other than session cookies
secure. I will not backport


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809687 13f79535-47bb-0310-9956-ffa450edef68
2017-09-26 07:17:40 +00:00
Deepak Dixit 9cf0f285dc Improved: Moved images from webapp/multiflex/* to webapp/multiflex/images and updated references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809658 13f79535-47bb-0310-9956-ffa450edef68
2017-09-25 18:53:42 +00:00
Deepak Dixit a4508f90ad Fixed: Corrected Readme.md file path.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809653 13f79535-47bb-0310-9956-ffa450edef68
2017-09-25 18:25:41 +00:00
Jacopo Cappellato 42ebfb325c Fixed: MRP incorrectly computes quantity already received in open purchase order
shipments.
(OFBIZ-9525)

The MRP algorithm incorrectly computed the quantity of items partially received 
in a purchase shipment because it leveraged the 
OrderReadHelper.getItemShippedQuantity(...) method that is intended to be used 
only to count the quantity shipped of sales order.

Thanks: Amit Gadaley for the patch to fix the issue..


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809594 13f79535-47bb-0310-9956-ffa450edef68
2017-09-25 09:11:24 +00:00
Deepak Dixit 56050df078 Removed: Unused images from images/tabs, these were unused after r1059564
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809447 13f79535-47bb-0310-9956-ffa450edef68
2017-09-23 19:07:42 +00:00
Akash Jain 3c6e98816e Fixed: Labels messed up because of missing UiLabels, applied patch from jira issue (OFBIZ-9745)
1) Navigate to SFA and search for contacts.
2) Move to Contact Profile detail screen.
3) Try following processes with UserLogin 
i) Create / Update User Login.
ii) Assign / Edit Security Group to the User Login.
Result: Several UX labels messed up because of missing UiLabels.

Thanks, Ankit Joshi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809429 13f79535-47bb-0310-9956-ffa450edef68
2017-09-23 14:06:56 +00:00
Arun Patidar df3aba2f65 ADDED: Apply new ruleSet definition into Ofbiz files. (OFBIZ-9515)
Thanks Pradhan Yash Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809426 13f79535-47bb-0310-9956-ffa450edef68
2017-09-23 13:22:03 +00:00