netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Heithecker (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NETBEANS-1110) Cannot add sources to NetBeans platform / File chooser dialog hangs when transversing folder with corrupted zip files
Date Fri, 03 Aug 2018 12:29:00 GMT
Boris Heithecker created NETBEANS-1110:
------------------------------------------

             Summary: Cannot add sources to NetBeans platform / File chooser dialog hangs
when transversing folder with corrupted zip files
                 Key: NETBEANS-1110
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1110
             Project: NetBeans
          Issue Type: Bug
            Reporter: Boris Heithecker


Trying to add sources to the development platform (Tools -> NetBeansPlatforms -> Sources
-> Add zip/Folder) opens a file chooser dialog. The dialog hangs when switching to a folder
which contains an arbitrary zip-File with non-default (utf-8) file name encoding. 

Here is the stack trace: 

 

SEVERE [global]
java.lang.IllegalArgumentException: MALFORMED
 at java.base/java.util.zip.ZipCoder.toString(ZipCoder.java:58)
 at java.base/java.util.zip.ZipFile.getZipEntry(ZipFile.java:551)
 at java.base/java.util.zip.ZipFile.access$900(ZipFile.java:76)
 at java.base/java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:499)
 at java.base/java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:489)
 at java.base/java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:469)
 at org.netbeans.modules.apisupport.project.queries.GlobalSourceForBinaryImpl$NetBeansSourcesParser.findNBRoot(GlobalSourceForBinaryImpl.java:326)
 at org.netbeans.modules.apisupport.project.queries.GlobalSourceForBinaryImpl$NetBeansSourcesParser.getInstance(GlobalSourceForBinaryImpl.java:298)
 at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerSources.isValidNbSourceRoot(NbPlatformCustomizerSources.java:261)
 at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerSources.access$500(NbPlatformCustomizerSources.java:47)
 at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerSources$6.accept(NbPlatformCustomizerSources.java:230)
 at java.desktop/javax.swing.JFileChooser.accept(JFileChooser.java:1638)
 at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run0(BasicDirectoryModel.java:303)
 at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run(BasicDirectoryModel.java:279)

 

Please insert a catch clause at org.netbeans.modules.apisupport.project.queries.GlobalSourceForBinaryImpl,
line 326



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Mime
View raw message