Commit Graph
14503 Commits
Author SHA1 Message Date
Jacques Le Roux f98ed9e9ba Fixed: createMissingCategoryAndProductAltUrls service misses a transaction
(OFBIZ-11441)

Not sure why it had use-transaction="false", makes no sens to me, too old to
check, not a big deal I guess
2020-03-21 11:31:45 +01:00
Nicolas Malin 5d3f85d4e4 Fixed: Convert ProductServices.xml mini lang to groovy: productPriceGenericPermission failed
(OFBIZ-10231)

After groovy conversion the method productPriceGenericPermission failed to validate a user

Problem due to bad call on hasEntityPermission instead of hasPermission
2020-03-21 11:31:45 +01:00
Nicolas Malin 145f53eac3 Improved: Convert ProductServices.xml mini lang to groovy
(OFBIZ-10231)

After groovy conversion the method checkProductRelatedPermission
has been broken for other minilang method that didn't converted.

To solve this problem, I created new permission service checkProductRelatedPermission
and convert all previous minilang method call by a permission service on the related service call
2020-03-21 11:31:45 +01:00
Nicolas Malin cab72ef48d Improved: Convert party/LookupServices.xml mini-lang to groovyDSL
(OFBIZ-11362)

Deprecate lookupParty service by performFindParty and rewrite to work as bridge during the deprecation time
2020-03-21 11:31:45 +01:00
Jacques Le Roux 21d568ecdb Fixed: Convert ProductServices.xml mini lang to groovy
Improved: no functional change
(OFBIZ-10231)

ProductServices.xml has been removed while

createProductPrice still refers to an inexisting PriceServices.xml
createProductPrice is not implemented in Groovy, there is no PriceServices.groovy

This just adds it temporarily, waiting for a correct and complete fix
2020-03-21 11:31:44 +01:00
Daniel Watford ca17e2f9ff Improved: Add 2020 version of Incoterms
(OFBIZ-11437)

Alter the parent type and descriptions of existing Incoterm TermTypes to
indicate the version of Incoterms they relate to.

Added new Incoterm TermTypes and descriptions correspoding to the
Incoterms 2020 set.
2020-03-21 11:31:44 +01:00
Jacques Le Roux 2dc7328d09 Improved: Removes getSubContentWithPermCheck and getSubSubContentWithPermCheck
unused services
(OFBIZ-11393)(OFBIZ-11394)

They were introduced by Al Byers in 2007 and, like some other stuff done then
by Al, were never used. We can safely close the 2 related issues as won't do
after removing the 2 services and all the references to them.

Thanks: Priya Sharma
2020-03-21 11:31:44 +01:00
Nicolas Malin 9f9454e385 Fixed: Code refactoring to support groovy syntax
(OFBIZ-10231)

No functional change

This commit contains multiple refactoring to decrease code quantity :
 * use groovy syntax for empty/not empty value
 * use kelvin syntax
 * exploit DSL syntax and EntityQuery as possible
 * refactoring redundant "if block"
 * remove unnecessary transfer variable

Thanks to Gil Portenseigne for help my as his second eye
2020-03-21 11:31:44 +01:00
Nicolas Malin 8d1b3f46fe Improved: Convert PartyInvitationService.xml from minilang to groovy
(OFBIZ-11360)

Thanks to Marie-Aline Pantais for providing the patch.
2020-03-21 11:31:44 +01:00
Pierre Smits f5f2d459ad Improved: Cleanup HumanRes labels
(OFBIZ-9367)

Removing unused HumanRes labels
2020-03-21 11:31:43 +01:00
Pierre Smits 6c9bdb932a Improved: UI labels
(OFBIZ-9352)

Cleaning up unused labels
2020-03-21 11:31:43 +01:00
Pierre Smits c7f7774e06 Improved: Remove unused labels from ProductUiLabels.xml
(OFBIZ-10551)

Removal of unused labels
2020-03-21 11:31:43 +01:00
Michael Brohl 2f7e675ad6 Fixed: hr-glossary.adoc: line 22: id assigned to block already in use:
ANNUAL_REVENUE

(OFBIZ-11419)

Thanks Olivier Heintz for providing the patch.
2020-03-21 11:31:42 +01:00
Suraj Khurana 39cc830c2f Fixed: Picklist is in Input status even after order is completed.
(OFBIZ-10883)

Thanks Rashi Dhagat for reporting, Shikha Jaiswal for the patch and Pawan Verma for review.
2020-03-21 11:31:42 +01:00
holivier e9a0d113cf Documented: revert remove docbook help files for humanres
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-03-21 11:31:41 +01:00
holivier beac4665ba Documented: revert remove docbook help files for content
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-03-21 11:31:41 +01:00
holivier 0a0ad09ac3 Documented: revert remove docbook help files for commonext-SETUP
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-03-21 11:31:41 +01:00
holivier 19c31f1f9b Documented: revert remove docbook help files for accounting
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-03-21 11:31:41 +01:00
Jacques Le Roux 6395affe0f Improved: Remove createTopic service (unused)
(OFBIZ-11376)

I could not find any references for this service in the code base, i.e. this
service has not been used anywhere, do we still want to keep it?

Thanks: Devanshu Vyas for report, Priya Sharma for the proposition and the fix
2020-03-21 11:31:40 +01:00
Jacques Le Roux 369d5f6c95 Fixed: Ensure that the SameSite attribute is set to 'strict' for all cookies.
(OFBIZ-11470)

As reported by OWASP ZAP:
A cookie has been set without the SameSite attribute, which means that the
cookie can be sent as a result of a 'cross-site' request. The SameSite attribute
is an effective counter measure to cross-site request forgery, cross-site script
inclusion, and timing attacks.

The solution was not obvious in OFBiz for 2 reasons:

1. There is no HttpServletResponse::setHeader. So we need to use a filter
  (SameSiteFilter) and even that is not enough because of 2:
2. To prevent session fixation we force Tomcat to generates a new jsessionId,
ultimately put in cookie, in LoginWorker::login. So we need to add a call to
SameSiteFilter::addSameSiteCookieAttribute in
UtilHttp::setResponseBrowserDefaultSecurityHeaders.
2020-03-20 17:50:17 +01:00
Jacques Le Roux 2517a96792 Fixed: Propagate the theme in DataResourceWorker.renderDataResourceAsText()
Improved: no functional change

(OFBIZ-9923)

Seems that this has been fixed with OFBIZ-11466 "CommonTheme has a dependency on
Flatgrey application.js"

Thanks: Pierre Smits for the fix in OFBIZ-11466
2020-03-20 09:38:04 +01:00
Michael Brohl e4e32a1a64 Improved: Styles some clickable fields of backend tables as buttons.
(OFBIZ-11309)

Thanks Ulrich Heidfeld for reporting and providing the patch, James Yong
for additional review.
2020-03-18 08:05:00 +01:00
Jacques Le Roux 67531d8bb2 Improved: "auth" should be true for all the request url used for Application
components

(OFBIZ-4956)

Currently there are some URLs present in application components with
auth="false". So anyone can hit these URLs and access these resources without
authorization.
I think all the URLs should be secure with auth="true"

jleroux: I have also fixed the dataResourceId="GZ-DIG"

Thanks: Amardeep Singh Jhajj for report and initial fix
2020-03-14 08:51:23 +01:00
Michael Brohl bb698b9b96 Implemented: Remove the user login security question.
(OFBIZ-11244)

Thanks Wiebke Pätzold for providing the patch.
2020-03-13 17:31:49 +01:00
Nicolas Malin c8a838ef03 Improved: Convert PartyServices.xml from mini lang to groovy
(OFBIZ-11361)

Thanks to Leila Mekika for providing the patch
2020-03-10 14:37:57 +01:00
Nicolas Malin 43b44f53e0 Improved: Convert ProductContentServices.xml mini lang to groovy
(OFBIZ-11436)

Thanks to Sebastian Berg for providing the patch
2020-03-10 09:32:37 +01:00
Gil Portenseigne b79c95b151 Fixed: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
(OFBIZ-9984)
Fix introduced NPE detected by the introduced test.
2020-03-06 17:36:14 +01:00
Gil Portenseigne 53a8b81260 Improved: Convert OrderServices.xml mini-lang to groovyDSL : getOrderedSummaryInformation
(OFBIZ-9984)
Thanks Julien for your contribution
2020-03-06 15:47:52 +01:00
Gil Portenseigne eba4157c59 Improved: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
(OFBIZ-9984)
Thanks Julien for your old patch, it has been improved.
Add a new integration test for the service 'getNextOrderId'
2020-03-06 15:46:58 +01:00
Nicolas Malin 27aa23833c Improved: Convert createTextAndUploadedContent service from mini-lang to groovy DSL
(OFBIZ-11368)

Thanks to Rohit Hukkeri for providing the patch
2020-03-06 14:58:15 +01:00
Nicolas Malin 92963609da Improved: Convert ProductFeatureServices.xml mini lang to groovy
(OFBIZ-11439)

Thanks to Sebastian Berg for providing the patch
2020-03-06 11:36:32 +01:00
Jacques Le Roux 784a299968 Fixed: createMissingCategoryAndProductAltUrls service misses a transaction
(OFBIZ-11441)

Not sure why it had use-transaction="false", makes no sens to me, too old to
check, not a big deal I guess
2020-03-05 09:56:07 +01:00
Nicolas Malin 51837c8cbf Fixed: Convert ProductServices.xml mini lang to groovy: productPriceGenericPermission failed
(OFBIZ-10231)

After groovy conversion the method productPriceGenericPermission failed to validate a user

Problem due to bad call on hasEntityPermission instead of hasPermission
2020-03-04 21:46:11 +01:00
Nicolas Malin 80026c76c0 Improved: Convert ProductServices.xml mini lang to groovy
(OFBIZ-10231)

After groovy conversion the method checkProductRelatedPermission
has been broken for other minilang method that didn't converted.

To solve this problem, I created new permission service checkProductRelatedPermission
and convert all previous minilang method call by a permission service on the related service call
2020-03-04 21:44:11 +01:00
Nicolas Malin 2b98727c5f Improved: Convert party/LookupServices.xml mini-lang to groovyDSL
(OFBIZ-11362)

Deprecate lookupParty service by performFindParty and rewrite to work as bridge during the deprecation time
2020-03-04 21:25:23 +01:00
Jacques Le Roux feeeb22f4a Fixed: Convert ProductServices.xml mini lang to groovy
Improved: no functional change
(OFBIZ-10231)

ProductServices.xml has been removed while

createProductPrice still refers to an inexisting PriceServices.xml
createProductPrice is not implemented in Groovy, there is no PriceServices.groovy

This just adds it temporarily, waiting for a correct and complete fix
2020-03-04 15:43:51 +01:00
Jacques Le Roux 7a34e9cda8 Merge pull request #42 from danwatford/ofbiz-11437-2020-incoterms-improvement
OFBIZ-11437: Improved: Added 2020 version of Incoterms
2020-03-04 15:01:26 +01:00
Jacques Le Roux a3bcdc4cc3 Improved: Removes getSubContentWithPermCheck and getSubSubContentWithPermCheck
unused services
(OFBIZ-11393)(OFBIZ-11394)

They were introduced by Al Byers in 2007 and, like some other stuff done then
by Al, were never used. We can safely close the 2 related issues as won't do
after removing the 2 services and all the references to them.

Thanks: Priya Sharma
2020-03-04 14:35:18 +01:00
Daniel Watford bbd570ad22 Improved: Add 2020 version of Incoterms
(OFBIZ-11437)

Alter the parent type and descriptions of existing Incoterm TermTypes to
indicate the version of Incoterms they relate to.

Added new Incoterm TermTypes and descriptions correspoding to the
Incoterms 2020 set.
2020-03-03 17:59:56 +00:00
Nicolas Malin 8ec3886d7f Fixed: Code refactoring to support groovy syntax
(OFBIZ-10231)

No functional change

This commit contains multiple refactoring to decrease code quantity :
 * use groovy syntax for empty/not empty value
 * use kelvin syntax
 * exploit DSL syntax and EntityQuery as possible
 * refactoring redundant "if block"
 * remove unnecessary transfer variable

Thanks to Gil Portenseigne for help my as his second eye
2020-02-28 17:47:41 +01:00
Nicolas Malin 604a3bfa02 Improved: Convert PartyInvitationService.xml from minilang to groovy
(OFBIZ-11360)

Thanks to Marie-Aline Pantais for providing the patch.
2020-02-28 16:39:06 +01:00
Jacques Le Roux e9ec4181ec Merge pull request #17 from PierreSmits/Label-Cleanup
OFBIZ-10565 Removing unused UI labels
2020-02-28 13:50:03 +01:00
Jacques Le Roux c121ad6b9d Merge pull request #15 from PierreSmits/OFBIZ-10551
Implemented: Remove unused labels from ProductUiLabels.xml (OFBIZ-10551)
2020-02-28 13:49:27 +01:00
Jacques Le Roux c34491892a Improved:
Implemented:
Documented:
Completed:
Reverted:
Fixed:
Improved: no functional change
(OFBIZ-)
Explanation
Thanks:
2020-02-27 14:36:26 +01:00
Michael Brohl c0a9714ef1 Fixed: hr-glossary.adoc: line 22: id assigned to block already in use:
ANNUAL_REVENUE

(OFBIZ-11419)

Thanks Olivier Heintz for providing the patch.
2020-02-26 15:18:04 +01:00
Suraj Khurana d98d9ccbfa Fixed: Picklist is in Input status even after order is completed.
(OFBIZ-10883)

Thanks Rashi Dhagat for reporting, Shikha Jaiswal for the patch and Pawan Verma for review.
2020-02-26 19:22:49 +05:30
holivier 820f67a635 Documented: revert remove docbook help files for humanres
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00
holivier c34919683b Documented: revert remove docbook help files for content
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00
holivier 5c88250932 Documented: revert remove docbook help files for commonext-SETUP
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00
holivier 2766510aaf Documented: revert remove docbook help files for accounting
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00