Commit Graph
14035 Commits
Author SHA1 Message Date
Jacques Le Roux 645d419574 Merge branch 'trunk' into POC-for-CSRF-Token-OFBIZ-11306 2020-04-04 17:52:06 +02:00
Nicolas Malin 37f33f48ff Fixed: correct path to ftpAddress services
(OFBIZ-11359)

After the minilang ContactMarchServices.xml to groovy, I forgot to change
the path of existant ftpAddress services already present before.

Thanks to Olivier Heintz for this alert
2020-04-04 15:49:44 +02:00
Nicolas Malin 8fc5028be9 Fixed: correct path to ftpAddress services
(OFBIZ-11359)

After the minilang ContactMarchServices.xml to groovy, I forgot to change
the path of existant ftpAddress services already present before.

Thanks to Olivier Heintz for this alert
2020-04-04 15:49:43 +02:00
Harutyun Farajyan 4594fc4964 Improved: Convert PartyPermissionServices.xml from mini lang to groovy
(OFBIZ-11433)

Thanks to Harutyun Farajyan for providing the patch
2020-04-04 15:49:43 +02:00
Jacques Le Roux c9d516d367 Fixed: The createTaskContent request does not work
(OFBIZ-11246)

It seems that same request can not be parsed multiple times if it has multi part
object in it as the parse method remove it after that.

Found one stackoverflow link around the same:

https://stackoverflow.com/questions/13881272/
servletfileuploadparserequestrequest-returns-an-empty-list

I believe that all places/uploads using this workflow should resulting the same
issue.

One possible solution I could think of without going with new approach is to set
list of file Items into the request attribute and use it if parse method remove
it and unable to retrieve on 2nd call.

Thanks: Ankush Upadhyay for the analysis and initial patch. I only slightly
modified it.
2020-04-04 15:49:43 +02:00
Jacques Le Roux f2e69894fb Improved: Implement the pretty print for keyword search
(OFBIZ-11476)

With OFBIZ-9164 and r1835891 I introduced
keywordConstraint::prettyPrintConstraint without implementation.
So the information is missing at top of page.

This implements it. It also amends 2 French labels
2020-04-04 15:49:42 +02:00
Pierre Smits 6c66ce0dc2 Fixed: DataModel - correct foreign key (#51)
(OFBIZ-11474)

Renaming foreign key to PROD_PRCDE_OPCD
2020-04-04 15:49:42 +02:00
Pierre Smits 321e51602a Improved: unify style application
(OFBIZ-11458)

replace 'align-float' with 'align-text'
2020-04-04 15:49:42 +02:00
Pierre Smits 20cf076c44 Improved: unify style application
(OFBIZ-11458)

replace 'align-float' with 'align-text'
2020-04-04 15:49:42 +02:00
Pawan Verma 4d2e5d3e26 Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.(OFBIZ-5426) (#44)
* Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.
(OFBIZ-5426)

The problem is in the entity model. An email address should not be used in the primary key - mainly because an email address is case-insensitive. A better design would be to use the email address contact mechanism ID in the primary key.

Done Following:
1. Changed Entity Name from ProductPromoCodeEmail to ProductPromoCodeContMech
2. Related Changes for the entity name change
3. Migration service to migrate old data

Thanks, Leon for the report and Adrian Crum, Jacques Le Roux, Ingo Wolfmayr, Deepak Dixit, Pierre Smits and Gil Portenseigne for the discussion and review.

* Improved: Added new line in service definition file and lincence in MigrationServices file.
(OFBIZ-5426)

Thanks, Jacopo for the review.
2020-04-04 15:49:41 +02:00
Jacques Le Roux 6c49411ee7 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-04-04 15:25:51 +02:00
Pawan Verma 3b86754e14 Improved: Added new data model changes done under OFBIZ-5426 in DataModel changes file. (#55)
(OFBIZ-5426)

Thanks, Deepak Dixit for the report.
2020-03-30 23:21:43 +05:30
Nicolas Malin e922d34e59 Fixed: correct path to ftpAddress services
(OFBIZ-11359)

After the minilang ContactMarchServices.xml to groovy, I forgot to change
the path of existant ftpAddress services already present before.

Thanks to Olivier Heintz for this alert
2020-03-27 11:46:11 +01:00
Nicolas Malin b6944ded4c Fixed: correct path to ftpAddress services
(OFBIZ-11359)

After the minilang ContactMarchServices.xml to groovy, I forgot to change
the path of existant ftpAddress services already present before.

Thanks to Olivier Heintz for this alert
2020-03-27 11:41:03 +01:00
Harutyun Farajyan ae686c3ff6 Improved: Convert PartyPermissionServices.xml from mini lang to groovy
(OFBIZ-11433)

Thanks to Harutyun Farajyan for providing the patch
2020-03-27 11:11:32 +01:00
Jacques Le Roux f4acda5ade Fixed: The createTaskContent request does not work
(OFBIZ-11246)

It seems that same request can not be parsed multiple times if it has multi part
object in it as the parse method remove it after that.

Found one stackoverflow link around the same:

https://stackoverflow.com/questions/13881272/
servletfileuploadparserequestrequest-returns-an-empty-list

I believe that all places/uploads using this workflow should resulting the same
issue.

One possible solution I could think of without going with new approach is to set
list of file Items into the request attribute and use it if parse method remove
it and unable to retrieve on 2nd call.

Thanks: Ankush Upadhyay for the analysis and initial patch. I only slightly
modified it.
2020-03-27 10:55:59 +01:00
Jacques Le Roux 5988e27a0d Improved: Implement the pretty print for keyword search
(OFBIZ-11476)

With OFBIZ-9164 and r1835891 I introduced
keywordConstraint::prettyPrintConstraint without implementation.
So the information is missing at top of page.

This implements it. It also amends 2 French labels
2020-03-26 11:07:29 +01:00
Pierre Smits dc68ac089f Fixed: DataModel - correct foreign key (#51)
(OFBIZ-11474)

Renaming foreign key to PROD_PRCDE_OPCD
2020-03-24 14:45:58 +05:30
Pierre Smits 1f1d25b39f Improved: unify style application
(OFBIZ-11458)

replace 'align-float' with 'align-text'
2020-03-24 09:01:40 +01:00
Pierre Smits 3c5224c351 Improved: unify style application
(OFBIZ-11458)

replace 'align-float' with 'align-text'
2020-03-24 09:01:40 +01:00
Pawan Verma 91673f1b41 Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.(OFBIZ-5426) (#44)
* Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.
(OFBIZ-5426)

The problem is in the entity model. An email address should not be used in the primary key - mainly because an email address is case-insensitive. A better design would be to use the email address contact mechanism ID in the primary key.

Done Following:
1. Changed Entity Name from ProductPromoCodeEmail to ProductPromoCodeContMech
2. Related Changes for the entity name change
3. Migration service to migrate old data

Thanks, Leon for the report and Adrian Crum, Jacques Le Roux, Ingo Wolfmayr, Deepak Dixit, Pierre Smits and Gil Portenseigne for the discussion and review.

* Improved: Added new line in service definition file and lincence in MigrationServices file.
(OFBIZ-5426)

Thanks, Jacopo for the review.
2020-03-23 17:08:58 +05:30
Jacques Le Roux 7240b2642b 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-21 11:31:56 +01:00
Jacques Le Roux b824d45d25 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-21 11:31:56 +01:00
Michael Brohl 7fe20b499b 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-21 11:31:55 +01:00
Michael Brohl d3907529c3 Implemented: Remove the user login security question.
(OFBIZ-11244)

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

Thanks to Leila Mekika for providing the patch
2020-03-21 11:31:47 +01:00
Nicolas Malin 0c2a7ee0ef Improved: Convert ProductContentServices.xml mini lang to groovy
(OFBIZ-11436)

Thanks to Sebastian Berg for providing the patch
2020-03-21 11:31:46 +01:00
Gil Portenseigne f951f8da25 Fixed: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
(OFBIZ-9984)
Fix introduced NPE detected by the introduced test.
2020-03-21 11:31:46 +01:00
Gil Portenseigne b999e59b81 Improved: Convert OrderServices.xml mini-lang to groovyDSL : getOrderedSummaryInformation
(OFBIZ-9984)
Thanks Julien for your contribution
2020-03-21 11:31:46 +01:00
Gil Portenseigne 36f9e7792d 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-21 11:31:46 +01:00
Nicolas Malin 054e66c2ef Improved: Convert createTextAndUploadedContent service from mini-lang to groovy DSL
(OFBIZ-11368)

Thanks to Rohit Hukkeri for providing the patch
2020-03-21 11:31:45 +01:00
Nicolas Malin 312d153aeb Improved: Convert ProductFeatureServices.xml mini lang to groovy
(OFBIZ-11439)

Thanks to Sebastian Berg for providing the patch
2020-03-21 11:31:45 +01:00
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