Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:26, 4 March 2008.

KIJ000603 - GetResourceAsStream may open incorrect files

From Forum Nokia Wiki


getResourceAsStream may open incorrect files
KIJ000603
Overview
-
Reported against
S60 2nd Edition, and FP1, FP2, FP3
S60 3rd Edition, S60 3rd Ed, FP1
Category
Java
Subcategory
 CLDC 1.X
Date identified
March 30, 2007
Symptoms
-
Detailed description
The getResourceAsStream() method call is used to access files/resources stored inside the JAR file. On S60 phones (including S60 2nd Edition as well as S60 3rd Edition and S60 3rd Edition, Feature Pack 1 devices) the method may in certain situations return the contents of an incorrect file if the JAR file contains a specific set of resource files.
In this case it is also possible to access the manifest file (which should not be available for this method - the only proper way to access the manifest file contents is through the getAppAproperty() method call).
For example, if the JAR file contains in the root directory the files named
"22"
"30"
"130"
The contents of file "130" can be accessed with "/0" and "/130"
The contents of file "22" can be accessed with "/2" and "/22"
The contents of the manifest file can be accessed with "/"
How to reproduce
-
Solution
-
Related Discussions
Thread Thread Starter Forum Replies Last Post
Why do my sis file stop installing on file? herman_du plessis General Symbian C++ 5 2008-06-27 15:40
After installation, I can't find the application in my Nokia 3650 winghui430 Symbian Tools & SDKs 3 2006-03-22 18:05
Uninstall application when files are open dathom General Symbian C++ 4 2004-04-29 23:34
when I launch in emulator application close imadiatly ashrafzadeh Mobile Java Tools & SDKs 10 2007-03-12 05:10
Problems with writing 2 text files nadym89 Python 5 2008-06-07 13:27
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX