This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 175263 - IllegalArgumentException: Prefix string too short
Summary: IllegalArgumentException: Prefix string too short
Status: CLOSED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Bugzilla (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Stola
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 09:41 UTC by Marian Mirilovic
Modified: 2010-04-23 06:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 160689


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2009-10-23 09:42:02 UTC
Build: NetBeans IDE Dev (Build 200910221401)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, amd64

User Comments:
mmirilovic: tried to open ls.ip attachment from issue from BZ



Stacktrace: 
java.lang.IllegalArgumentException: Prefix string too short
        at java.io.File.createTempFile(File.java:1782)
        at java.io.File.createTempFile(File.java:1828)
        at org.netbeans.modules.bugzilla.issue.AttachmentsPanel.saveToTempFile(AttachmentsPanel.java:327)
        at org.netbeans.modules.bugzilla.issue.AttachmentsPanel$DefaultAttachmentAction$1.run(AttachmentsPanel.java:387)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Comment 1 Jan Stola 2009-10-23 09:49:12 UTC
I have overlooked one requirement of File.createTempFile(). Thanks for catching this.
Comment 2 Jan Stola 2009-10-23 14:52:43 UTC
Fixed in Bugzilla and JIRA.

Modified files: http://hg.netbeans.org/cdev/rev/fcd33bc9f852
Comment 3 Marian Mirilovic 2010-04-23 06:31:37 UTC
v/c