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 190097 - org.openide.filesystems.FileStateInvalidException: File /.jcard cannot be found in folder org-netbeans-modules-javacard/servers/javacard_default.
Summary: org.openide.filesystems.FileStateInvalidException: File /.jcard cannot be fou...
Status: RESOLVED WORKSFORME
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-02 06:57 UTC by Ivan Sidorkin
Modified: 2011-08-08 20:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 172304


Attachments
stacktrace (9.60 KB, text/plain)
2010-09-02 06:57 UTC, Ivan Sidorkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2010-09-02 06:57:18 UTC
Build: NetBeans IDE Dev (Build 201009020000)
VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows XP

Stacktrace: 
org.openide.filesystems.FileStateInvalidException: File /.jcard cannot be found in folder org-netbeans-modules-javacard/servers/javacard_default.
   at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1164)
   at org.netbeans.modules.javacard.ri.platform.loader.AddHandler$1.run(AddHandler.java:114)
   at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:125)
   at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:566)
   at org.netbeans.modules.javacard.ri.platform.loader.AddHandler.showNewDeviceDialog(AddHandler.java:111)
   at org.netbeans.modules.javacard.spi.AddCardHandler$SingleHandlerAction.actionPerformed(AddCardHandler.java:230)
Comment 1 Ivan Sidorkin 2010-09-02 06:57:22 UTC
Created attachment 101821 [details]
stacktrace
Comment 2 _ tboudreau 2010-09-02 19:46:09 UTC
Looks like an extra / is being attached to the file path, or someone managed to create a virtual card named "" (which the wizard shouldn't allow).

Steps to reproduce?
Comment 3 Ivan Sidorkin 2010-09-02 20:37:18 UTC
to reproduce:

try to create new Card with Display Name "/"
Comment 4 _ tboudreau 2010-09-03 17:03:53 UTC
Okay, the real bug here is that no way of creating a device should allow / \ : . or ; in the name (I don't want to know what happens if you make a device called ../../../../foo - surely nothing good).
Comment 5 _ tboudreau 2011-05-26 01:59:43 UTC
Reassigning a bunch of bugs still assigned to me - I haven't worked for Oracle in almost a year.
Comment 6 _ tboudreau 2011-05-26 02:44:58 UTC
Uy... I *am* the default assignee for javacard...
Comment 7 Anton Chechel 2011-08-08 20:19:52 UTC
Product Version: NetBeans IDE Dev (Build 20110805-bf63fa9d63cb)
Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11
System: Windows 7 version 6.1 running on x86; Cp1252; en_GB (nb)

Works for me.
I am not able to create new Device with name "\". It shows me correct error: "Device Name contains illegal file name character".