Re: URL problem in firmware 1.12
"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <00eb01c4216f$8bee4030$764000b4@kardis> |
This problem has been found and fixed for future releases. Thanks for the concise bug report...it made it very easy to fix. This issue can be worked around for 1.12 with either an updated file from 'modules.jar' or a full pre-release. Please contact me off-list for details. Kris ----- Original Message ----- From: "Jac Kersing" <j.kersing-9+7/[email protected]> To: <tini-6tN4nzCoH/[email protected]> Sent: Friday, April 09, 2004 6:02 AM Subject: [TINI]URL problem in firmware 1.12 > Hi, > > After questions on the JXME list I decided to run some simple tests to > find why JXME doesn't run on TINI. It seems to boil down to a rather fatal > flaw (for JXME at least) in the URL parsing for HTTP connections. > > When TINI is parsing URLs the parameters for GET are being included in the > parsing. The parse results are unusable when the parameters for the get > include ':' as TINI expects to find a port number after it. > > See the output and test code below. > > DalSemi, could I get a bugfix release for this issue??? > > Regards, > > Jac > > Output from TINI: > janeway /> java T.tini > protocol: http > host : > 172.16.1.2:9700/unknown-unknown?2000,-1,http://172.16.1.2:9700/EndpointServi ce > port : -1 > file : /uuid-DEADBEEFDEAFBABAFEEDBABE0000000F05/pid > ref : null > > Output from PC (java 1.3.1): > protocol: http > host : 172.16.1.2 > port : 9700 > file : > /unknown-unknown?2000,-1,http://172.16.1.2:9700/EndpointService:jxta-NetGrou p/uuid-DEADBEEFDEAFBABAFEEDBABE0000000F05/pid > ref : null > > The code: > import java.net.URL; > import java.net.MalformedURLException; > > public class T { > > public static void test(String url) { > try { > URL u = new URL(url); > > System.out.println("protocol: "+u.getProtocol()); > System.out.println("host : "+u.getHost()); > System.out.println("port : "+u.getPort()); > System.out.println("file : "+u.getFile()); > System.out.println("ref : "+u.getRef()); > } catch (MalformedURLException e) { > System.out.println("Exception: "+e.getMessage()); > e.printStackTrace(); > } > } > > public static void main(String[] a) { > > test("http://172.16.1.2:9700/unknown-unknown?2000,-1,http://172.16.1.2:9700/ EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAFBABAFEEDBABE0000000F05/pid"); > } > } > > > -- > Jac Kersing Technical Consultant The-Box Development > j.kersing-9+7/[email protected] http://www.the-box.com > _______________________________________________ > TINI mailing list > TINI-6tN4nzCoH/[email protected] > To UNSUBSCRIBE, edit your profile, or see list archives: > http://lists.dalsemi.com/mailman/listinfo/tini > _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini