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 182240 - Plugin fails to load unsigned module
Summary: Plugin fails to load unsigned module
Status: RESOLVED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 16:22 UTC by msmirnov
Modified: 2010-04-01 07:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description msmirnov 2010-03-17 16:22:50 UTC
If one unchecks "Sign the JAR file" checkbox in "Security" tab of Project properties and then try to "Run" some JavaCard Project then build fails with the following message:

..\ExtendedApplet4\nbproject\build-impl.xml:219: SignatureFile '..\ExtendedApplet4\dist\ExtendedApplet4.signature' does not exists

If one tries to "Re(Load)" unsigned module there will be also the following error in packager:

Packager:
    [Error] Output file ..\ExtendedApplet4\dist\ExtendedApplet4.eap exists. Use --force (or) -f option to over write it.

This is because packager task is duplicated in case of Re(Load) (see issue 182236) and in case of unsigned module it executes without --force option.
Comment 1 msmirnov 2010-03-17 16:42:26 UTC
This should be solved in Java Card ant tasks.
Comment 2 msmirnov 2010-03-19 10:40:45 UTC
Java Card Development Kit 3.0.2 doesn't support loading of unsigned modules. As unsigned modules could still be acceptable for other implementations we should just throw appropriate exception in LoadTask for JCDK 3.0.2 in case when a module is unsigned. Packager task should still allow to create unsigned JARs.
Comment 3 msmirnov 2010-03-19 16:41:14 UTC
Fixed in Java Card ant tasks (LoadTask) by throwing BuildException in case when unsigned module is loaded to RI. The error message informs user that loading of unsigned modules is unsupported.
Comment 4 _ tboudreau 2010-03-19 21:02:34 UTC
Since we know vendors are building on our Ant tasks, and some vendors don't support signed but do support unsigned (Oberthur), we might want to write the signed check in such a way that it is easy to reverse.
Comment 5 _ tboudreau 2010-04-01 07:09:20 UTC
Fixed in Ant tasks - closing