(OFBIZ-11507)(OFBIZ-11508)(OFBIZ-11509)(OFBIZ-11510)(OFBIZ-11511)(OFBIZ-11512)(OFBIZ-11513)(OFBIZ-11514)(OFBIZ-11515)(OFBIZ-11516)
Thanks: Rohit Hukkeri for the report
(OFBIZ-11603)
Reverts to shiro-core:1.4.1, got this issue in loadAll:
Exception in thread "main" org.apache.shiro.crypto.CryptoException:
Unable to execute 'doFinal' with cipher instance [javax.crypto.Cipher@44a98a23].
[...]
at org.apache.ofbiz.entity.datasource.GenericDAO.insert(GenericDAO.java:110)
[...]
Caused by:
javax.crypto.IllegalBlockSizeException: Input length not multiple of 16 bytes
at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1109)
at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1053)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:853)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
at javax.crypto.Cipher.doFinal(Cipher.java:2164)
at org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:459)
(OFBIZ-11506)
Here is more detail:
getRelatedParties service(groovy) was returning duplicate key of relatedPartyIdList. So HashMap was passed instead of List of string in entity condition that's why we are getting type casting error.
Thanks: Archana Asthana for report and Mohammed Rehan Khan for the patch.
(OFBIZ-11597)
When you try to remove an uploaded party content you get this error:
ControlServlet |E| Error in request handler:
org.apache.ofbiz.webapp.control.RequestHandlerException:
Unknown request [removePartyContent/viewprofile];
this request does not exist or cannot be called directly.
While at it I also fixed the similar case for payment methods
(OFBIZ-11534)
There is an issue in uploading large files, I am able to upload files up to 2 GB
successfully but getting an error when trying to upload a file larger than 2GB.
Example -
1. Go to party profile -
https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile?partyId=admin
2. Try to create a party content with a file larger than 2 GB
3. Error on console
jleroux:
For a 2GB+ file you need to set Xmx to more than the double of the file size,
eg: gradlew ofbiz -PjvmArgs="-Xms1024M -Xmx5048M"
You then get another small issue (only in log) when redirecting to send the
partyId parameter.
This is because, DiskFileItem is a temporary Object with a null value contained
in "fileItems" attribute. It can't be detected by UtilMisc::makeMapSerializable
and that makes "fileItems" not serializable. So it must be removed from
reqAttrMap.
Thanks: Chandan Khandelwal for report, Michael for suggesting a very large file
to upload
SystemProperties
(OFBIZ-11594)(OFBIZ-11470)
After adding more latitude to set same site by using
EntityUtilProperties::getPropertyValueFromDelegatorName for retrieving the value
possibly from the DB as a SystemProperty, adds the value as strict in
SSOJWTDemoData.xml
(OFBIZ-11590)
This is due to OFBIZ-11402. Handling a converter for java.time.ZoneRegion is
complicated. Adding a toString() is enough.
Also 2 automated formatting while at it...
SystemProperties
(OFBIZ-11594)
Adds more latitude to set same site by using
EntityUtilProperties::getPropertyValueFromDelegatorName for retrieving the value
possibly from the DB as a SystemProperty.
OF course this would not work with tenants, but I doubt the "internal" SSO
feature will ever be use in a tenants context
SystemProperties
(OFBIZ-11594)
This comes handy when testing, from examples component, the internal SSO feature
which allows a token based login between OFBiz instances
The SSOJWTDemoData.xml inadvertently slipped in w/ previous commit
(OFBIZ-11593)
The FilterEntities widget form is also an issue because it's a POST form and
"entity/list" request use the GET method. Using "entitymaint" as target works
(POST by default)
(OFBIZ-11593)
The "entity/list" request has been put in with OFBIZ-11007. It's used to call
the entitymaint view and so is a demo/didactic duplicate of entitymaint request.
It's only used in FindGeneric screen (look for WebtoolsBackToEntityList label).
It's problematic because since the CSRF token defense was put in you can no
longer filter the entities from the entities list screen, even when the default
NoCsrfDefenseStrategy is used. It works if you use the entitymaint request
instead.
Anyway, 2020-01-19 I proposed in OFBIZ-11306 a solution for such cases.
It was not used because 2020-02-14 I thought it was no longer needed,
but it's necessary for this case, and maybe others not already detected.
Here it's implementation (only trunk)
Never ever install Eclipse Checkstyle plugin. It does not use the same version
than Gradle, it's then a mess (Eclipse's is newer).
Fixes issues in CsrfUtilTests.java
Mostly manually-automated, so some changes are not perfect. I have manually
changed back excessive ones
Comments out ArrayTypeStyle checkstyle
Updates checkstyleMain.maxErrors
(OFBIZ-11306)
Simple strategy is to rely on SameSite 'strict' value in SameSiteFilter in all
supported branches. No backport needed with the changes here.
Thanks: James for all the good work we did together :)
(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
(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