You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Alexey Petrenko <al...@gmail.com> on 2006/08/18 11:54:36 UTC

[classlib] HARMONY-1130: a bug or not a bug?

Guys,

let's discuss HARMONY-1130 issue [1].
The problem there is that RI throws SecurityException from the
URLStreamHandler.setURL [2] method called from
URLStreamHandler.parseURL [3] but Harmony does not if "limit"
parameter of parseURL is less then "start" parameter. If "limit" is
greater then "start" then Harmony throws security exception too.

Investigation shown that Harmony checks "start" and "limit" parameters
in the very beginning and if "limit" is less then "start" it simply
exits since we can not parse anything in this case.

I think that this is a reasonable behavior and we should mark this
issue as "Non-bug differences from RI" and close it.

Any thoughts? Objections?

SY, Alexey

[1] HARMONY-1130: http://issues.apache.org/jira/browse/HARMONY-1130
[2] URLStreamHandler.setURL:
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLStreamHandler.html#setURL(java.net.URL,
java.lang.String, java.lang.String, int, java.lang.String,
java.lang.String, java.lang.String, java.lang.String,
java.lang.String)
[3] URLStreamHandler.parseURL:
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLStreamHandler.html#parseURL(java.net.URL,
java.lang.String, int, int)

-- 
Alexey A. Petrenko
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] HARMONY-1130: a bug or not a bug?

Posted by Tim Ellison <t....@gmail.com>.
I agree that Harmony is exhibiting reasonable behavior here.  If there
are no dissenting voices I'll close this one.

Regards,
Tim

Alexey Petrenko wrote:
> Guys,
> 
> let's discuss HARMONY-1130 issue [1].
> The problem there is that RI throws SecurityException from the
> URLStreamHandler.setURL [2] method called from
> URLStreamHandler.parseURL [3] but Harmony does not if "limit"
> parameter of parseURL is less then "start" parameter. If "limit" is
> greater then "start" then Harmony throws security exception too.
> 
> Investigation shown that Harmony checks "start" and "limit" parameters
> in the very beginning and if "limit" is less then "start" it simply
> exits since we can not parse anything in this case.
> 
> I think that this is a reasonable behavior and we should mark this
> issue as "Non-bug differences from RI" and close it.
> 
> Any thoughts? Objections?
> 
> SY, Alexey
> 
> [1] HARMONY-1130: http://issues.apache.org/jira/browse/HARMONY-1130
> [2] URLStreamHandler.setURL:
> http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLStreamHandler.html#setURL(java.net.URL,
> 
> java.lang.String, java.lang.String, int, java.lang.String,
> java.lang.String, java.lang.String, java.lang.String,
> java.lang.String)
> [3] URLStreamHandler.parseURL:
> http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLStreamHandler.html#parseURL(java.net.URL,
> 
> java.lang.String, int, int)
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org