-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies handling #48
Comments
What Alfresco version are you using? |
Alfresco Platform: 5.2.g |
Alfresco 5.2.g includes by default:
iText 5.5.13 (https://mvnrepository.com/artifact/com.itextpdf/itextpdf/5.5.13) depends on:
Probably the better approach is to clean up all your LIB folder, and keep only Alfresco libs and iText 5.5.13 dependencies:
|
The issue here is that if I keep all the versions, i am getting error:
When I manually delete bcmail-jdk15-1.46.jar, bcprov-jdk15-146.jar, and restart, it works. |
I have (desperately) updated the pom.xml, to include fake resources of 1.46:
How bad is this? bouncycastle usage seems to be only at: |
I'm not sure about the problem... Are you using AMP packaging? |
cause maven will bring the real 1.46 jars. The exceptions shows that the 1.46 jars are used when both 1.46 and 1.49 exists. |
After your upgrade, you use itext 5.5.13
https://github.com/keensoft/alfresco-esign-cert/blob/master/esign-cert-repo/pom.xml#L62
where bcprov-jdk15on 1.49 and bcpkix-jdk15on are optional.
For some signatures, these new versions seem to be critical, as they contain fixes for timestamp and certificate parsing.
In our installation, we list:
tomcat/webapps/alfresco/WEB-INF/lib/itextpdf-5.0.6.jar
tomcat/webapps/alfresco/WEB-INF/lib/itextpdf-5.5.10.jar
tomcat/webapps/alfresco/WEB-INF/lib/bcmail-jdk14-1.38.jar
tomcat/webapps/alfresco/WEB-INF/lib/bcmail-jdk15-1.46.jar
tomcat/webapps/alfresco/WEB-INF/lib/bcprov-jdk14-1.38.jar
tomcat/webapps/alfresco/WEB-INF/lib/bcprov-jdk15-1.46.jar
tomcat/webapps/alfresco/WEB-INF/lib/bctsp-jdk14-1.38.jar
(I guess the latest versions are being used. )
Now, I whould like to use 5.5.13 and bcprov, bcpkix 1.49, not bctsp and bcmail.
How should I handle this mess?
The text was updated successfully, but these errors were encountered: