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 84521 - MIDP 1.0 applications don't allow me to set the attribute: MIDlet-Install-Notify
Summary: MIDP 1.0 applications don't allow me to set the attribute: MIDlet-Install-Notify
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: Other Windows XP
: P2 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-08 16:06 UTC by jdl
Modified: 2008-09-10 16:02 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 jdl 2006-09-08 16:06:39 UTC
From the testing that I've done on a MIDP 1.0 device and all of the research
that I've done, the AMS that installs the midlets accepts the following
attribute in the JAD file for BOTH MIDP 1.0 and MIDP 2.0:

MIDlet-Install-Notify

However, it is not available in the attributes section (Properties) for MIDP 1.0
builds even though it should be. If I try to add it anyway, it gives me an
error: "invalid attribute" and it won't let me save it. Thus, I'll have to write
a perl script just to modify the jads but I'd prefer to set this in Netbeans.

BTW, here are some links to info about the MIDlet-Install-Notify attribute:

http://developers.sun.com/techtopics/mobility/midp/articles/ota/
http://www.developer.com/java/j2me/print.php/10934_3572036_2

I noticed that all versions including the 5.5 Beta have this defect.

Thanks,
Jade
Comment 1 Martin Ryzl 2006-09-10 20:57:04 UTC
The original MIDP 1.0 (JSR-37) doesn't list MIDlet-Install-Notify and
MIDlet-Delete-Notify attributes in list of defined attributes and it also says
all other attributes starting with MIDlet- are not allowed. However, OTA User
Initiated Provisioning Recommended Practice for MIDP 1.0
(http://java.sun.com/products/midp/OTAProvisioning-1.0.pdf) defines these two
new attributes with the following placement:

"The MIDlet-Install-Notify attribute needs to be in the application descriptor
so that installation status reporting can occur even in the case where the
MIDlet suite cannot be retrieved (e.g, if the JAR-file URL is incorrect). The
MIDlet-Install-Notify attribute may also appear in the manifest using the same
pattern used for other MIDlet attributes."

OTA Provisioning was formally included in MIDP 2.0.

I'd suggest to allow the attributes even in MIDP 1.0, with warning if possible.

Comment 2 Adam Sotona 2006-09-11 10:56:16 UTC
fixed

I've added following three attributes into the list of optinal for MIDP 1.0:
MIDlet-Install-Notify
MIDlet-Delete-Notify
MIDlet-Delete-Confirm

And following warning is displayed:
Warning: This attribute is not officially allowed by MIDP 1.0 specification.

Comment 3 jdl 2006-09-11 18:22:44 UTC
Thank you very much for fixing this so quickly! Do you know when it will be
available through the next release?
Comment 4 Martin Ryzl 2006-09-11 18:55:08 UTC
fixed in 5.5
Comment 5 Lukas Hasik 2006-09-12 18:15:40 UTC
it will be available in 5.5 RCs and FCS. The FCS should be available at the end
of October.
Comment 6 Lukas Hasik 2006-09-13 18:20:19 UTC
the attributes are in the list and are added to jad+jar manifest correctly
Comment 7 Ivan Sidorkin 2008-09-10 16:02:49 UTC
close old issues