You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GitBox <gi...@apache.org> on 2022/08/19 20:59:28 UTC

[GitHub] [tomcat-jakartaee-migration] wmccusker opened a new issue, #32: Manifest in exploded osgi bundle is not migrated

wmccusker opened a new issue, #32:
URL: https://github.com/apache/tomcat-jakartaee-migration/issues/32

   Hi,
   
   When running the migration on a war file that contains an exploded osgi bundle the class files and jar files within the exploded bundle are migrated but the manifest file is not.
   
   An example of the war archive layout with an exploded osgi bundle could be
   
   WEB-INF/
   WEB-INF/bundles/
   WEB-INF/bundles/com.example.service/
   WEB-INF/bundles/com.example.service/META-INF/
   WEB-INF/bundles/com.example.service/META-INF/MANIFEST.MF <--- not migrated
   WEB-INF/bundles/com.example.service/lib/
   WEB-INF/bundles/com.example.service/lib/com.example.code.jar <--- migrated
   
   For bundles that are not exploded, the manifest along with classes and jar files inside the bundle are all migrated
   
   WEB-INF/
   WEB-INF/bundles/
   WEB-INF/bundles/com.example.service.jar  <--- everything is migrated
   
   From looking at the code of the class org.apache.tomcat.jakartaee.ManifestConverter the issue appears to be that the check for migrating a manifest will only work when the manifest file is at the root of an archive because it expects to find the parent folder name in the entry name, e.g. "META-INF/MANIFEST.MF", but when running on an exploded artifact then the file name for the entry will be a path inside the parent archive, e.g. "WEB-INF/bundles/com.example.service/META-INF/MANIFEST.MF" from the example above.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[GitHub] [tomcat-jakartaee-migration] markt-asf closed issue #32: Manifest in exploded osgi bundle is not migrated

Posted by GitBox <gi...@apache.org>.
markt-asf closed issue #32: Manifest in exploded osgi bundle is not migrated
URL: https://github.com/apache/tomcat-jakartaee-migration/issues/32


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org