-
Notifications
You must be signed in to change notification settings - Fork 98
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
Don't handle *.gwtar and other normal files ending with *ar as archives #82
Comments
I tried the following as a first Quickfix to see further occurences:
Here some more examples which still can't be handled as ZIP (don't know currently for each wether they should be): Problem: C:\oracle\Middleware\forms_builder\oracle_common\jdk\utl\jdk.zip!/jdk/oracle_jdk_install/Components/XML/oracle.jdk.var - java.lang.RuntimeException: Inner-zip - could not find ZIP magic number: C:\oracle\Middleware\forms_builder\oracle_common\jdk\utl\jdk.zip!/jdk/oracle_jdk_install/Components/XML/oracle.jdk.var I guess .var, .asar and .ar should definitely not be treated as ZIP. I'm not sure about .par and .tar ... |
Also it seems to me wildcards cannot be used in --exclude - this would help with this issue as one could specify
(not the supported syntax just to get the idea). Maybe an idea for an alternate solution ... |
The tool handles everything with file suffix *ar as a potential Java archive:
System.err output on an example with *.gwtar
-- Problem: D:.m2\repository\com\google\gwt\gwt-user\2.7.0\gwt-user-2.7.0.jar!/com/google/gwt/user/User.gwtar - java.lang.RuntimeException: Inner-zip - could not find ZIP magic number: D:.m2\repository\com\google\gwt\gwt-user\2.7.0\gwt-user-2.7.0.jar!/com/google/gwt/user/User.gwtar
Another example with a service file called ComponentRegistrar
-- Problem: C:\Users\XYZ\AppData\Roaming\JetBrains\IntelliJIdea2020.2\plugins\Kotlin\kotlinc\lib\allopen-compiler-plugin.jar!/META-INF/services/org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar - java.lang.RuntimeException: Inner-zip - could not find ZIP magic number: C:\Users\XYZ\AppData\Roaming\JetBrains\IntelliJIdea2020.2\plugins\Kotlin\kotlinc\lib\allopen-compiler-plugin.jar!/META-INF/services/org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar
Snippet from method fileType:
*.gwtar seems to be some proprietary file of GWT maybe similar to a *.class file (haven't had the time to research on that up to now ...
ComponentRegistrar is obviously not a ZIP
So the detection of file suffixes which are regarded as ZIP needs to be refined I think ...
The text was updated successfully, but these errors were encountered: