(OFBIZ-10231)
After groovy conversion the method productPriceGenericPermission failed to validate a user
Problem due to bad call on hasEntityPermission instead of hasPermission
(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
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
(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.
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
(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
(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
(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.
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
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
(OFBIZ-10231)
After groovy conversion the method productPriceGenericPermission failed to validate a user
Problem due to bad call on hasEntityPermission instead of hasPermission
(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
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
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
(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.
(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