You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Artem Aliev (JIRA)" <ji...@apache.org> on 2006/12/04 13:06:21 UTC
[jira] Created: (HARMONY-2413) [luni]
java.net.Authenticator.getRequestorType returns null while RI returns valid
result
[luni] java.net.Authenticator.getRequestorType returns null while RI returns valid result
-----------------------------------------------------------------------------------------
Key: HARMONY-2413
URL: http://issues.apache.org/jira/browse/HARMONY-2413
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Artem Aliev
Priority: Minor
import junit.framework.TestCase;
import java.net.Authenticator;
import java.net.*;
public class test extends TestCase
{
public void testcase0()
{
TestAuthentificator localTestAuthentificator = new
TestAuthentificator();
InetAddress in = null;
try
{
in = InetAddress.getLocalHost();
}
catch (UnknownHostException e)
{
e.printStackTrace();
}
Authenticator.setDefault(localTestAuthentificator);
Authenticator.requestPasswordAuthentication(in, -1, "http",
"promt", "HTTP");
Authenticator.RequestorType returnValue =
localTestAuthentificator.getRequestorTypetest();
System.out.println("Authenticator.RequestorType ="
+returnValue);
assertNotNull(returnValue);
}
}
class TestAuthentificator extends Authenticator
{
public TestAuthentificator()
{super();
}
public Authenticator.RequestorType getRequestorTypetest()
{return getRequestorType();
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2413) [luni]
java.net.Authenticator.getRequestorType returns null while RI returns valid
result
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2413?page=all ]
Mikhail Markov updated HARMONY-2413:
------------------------------------
Attachment: H-2413.patch
Here is the patch both for the code and unit-test.
> [luni] java.net.Authenticator.getRequestorType returns null while RI returns valid result
> -----------------------------------------------------------------------------------------
>
> Key: HARMONY-2413
> URL: http://issues.apache.org/jira/browse/HARMONY-2413
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Artem Aliev
> Priority: Minor
> Attachments: H-2413.patch
>
>
> import junit.framework.TestCase;
> import java.net.Authenticator;
> import java.net.*;
> public class test extends TestCase
> {
> public void testcase0()
> {
> TestAuthentificator localTestAuthentificator = new
> TestAuthentificator();
> InetAddress in = null;
> try
> {
> in = InetAddress.getLocalHost();
> }
> catch (UnknownHostException e)
> {
> e.printStackTrace();
> }
> Authenticator.setDefault(localTestAuthentificator);
> Authenticator.requestPasswordAuthentication(in, -1, "http",
> "promt", "HTTP");
> Authenticator.RequestorType returnValue =
> localTestAuthentificator.getRequestorTypetest();
> System.out.println("Authenticator.RequestorType ="
> +returnValue);
> assertNotNull(returnValue);
> }
> }
> class TestAuthentificator extends Authenticator
> {
> public TestAuthentificator()
> {super();
> }
> public Authenticator.RequestorType getRequestorTypetest()
> {return getRequestorType();
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-2413) [luni]
java.net.Authenticator.getRequestorType returns null while RI returns valid
result
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2413?page=all ]
Tim Ellison reassigned HARMONY-2413:
------------------------------------
Assignee: Tim Ellison
> [luni] java.net.Authenticator.getRequestorType returns null while RI returns valid result
> -----------------------------------------------------------------------------------------
>
> Key: HARMONY-2413
> URL: http://issues.apache.org/jira/browse/HARMONY-2413
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Artem Aliev
> Assigned To: Tim Ellison
> Priority: Minor
> Attachments: H-2413.patch
>
>
> import junit.framework.TestCase;
> import java.net.Authenticator;
> import java.net.*;
> public class test extends TestCase
> {
> public void testcase0()
> {
> TestAuthentificator localTestAuthentificator = new
> TestAuthentificator();
> InetAddress in = null;
> try
> {
> in = InetAddress.getLocalHost();
> }
> catch (UnknownHostException e)
> {
> e.printStackTrace();
> }
> Authenticator.setDefault(localTestAuthentificator);
> Authenticator.requestPasswordAuthentication(in, -1, "http",
> "promt", "HTTP");
> Authenticator.RequestorType returnValue =
> localTestAuthentificator.getRequestorTypetest();
> System.out.println("Authenticator.RequestorType ="
> +returnValue);
> assertNotNull(returnValue);
> }
> }
> class TestAuthentificator extends Authenticator
> {
> public TestAuthentificator()
> {super();
> }
> public Authenticator.RequestorType getRequestorTypetest()
> {return getRequestorType();
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-2413) [luni]
java.net.Authenticator.getRequestorType returns null while RI returns valid
result
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison closed HARMONY-2413.
--------------------------------
Verified by Mikhail.
> [luni] java.net.Authenticator.getRequestorType returns null while RI returns valid result
> -----------------------------------------------------------------------------------------
>
> Key: HARMONY-2413
> URL: https://issues.apache.org/jira/browse/HARMONY-2413
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Artem Aliev
> Assigned To: Tim Ellison
> Priority: Minor
> Attachments: H-2413.patch
>
>
> import junit.framework.TestCase;
> import java.net.Authenticator;
> import java.net.*;
> public class test extends TestCase
> {
> public void testcase0()
> {
> TestAuthentificator localTestAuthentificator = new
> TestAuthentificator();
> InetAddress in = null;
> try
> {
> in = InetAddress.getLocalHost();
> }
> catch (UnknownHostException e)
> {
> e.printStackTrace();
> }
> Authenticator.setDefault(localTestAuthentificator);
> Authenticator.requestPasswordAuthentication(in, -1, "http",
> "promt", "HTTP");
> Authenticator.RequestorType returnValue =
> localTestAuthentificator.getRequestorTypetest();
> System.out.println("Authenticator.RequestorType ="
> +returnValue);
> assertNotNull(returnValue);
> }
> }
> class TestAuthentificator extends Authenticator
> {
> public TestAuthentificator()
> {super();
> }
> public Authenticator.RequestorType getRequestorTypetest()
> {return getRequestorType();
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (HARMONY-2413) [luni]
java.net.Authenticator.getRequestorType returns null while RI returns valid
result
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2413?page=all ]
Tim Ellison resolved HARMONY-2413.
----------------------------------
Resolution: Fixed
Thanks Mikhail.
Patch applied to LUNI module at repo revision r491094.
Please check that it was applied as you expected.
> [luni] java.net.Authenticator.getRequestorType returns null while RI returns valid result
> -----------------------------------------------------------------------------------------
>
> Key: HARMONY-2413
> URL: http://issues.apache.org/jira/browse/HARMONY-2413
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Artem Aliev
> Assigned To: Tim Ellison
> Priority: Minor
> Attachments: H-2413.patch
>
>
> import junit.framework.TestCase;
> import java.net.Authenticator;
> import java.net.*;
> public class test extends TestCase
> {
> public void testcase0()
> {
> TestAuthentificator localTestAuthentificator = new
> TestAuthentificator();
> InetAddress in = null;
> try
> {
> in = InetAddress.getLocalHost();
> }
> catch (UnknownHostException e)
> {
> e.printStackTrace();
> }
> Authenticator.setDefault(localTestAuthentificator);
> Authenticator.requestPasswordAuthentication(in, -1, "http",
> "promt", "HTTP");
> Authenticator.RequestorType returnValue =
> localTestAuthentificator.getRequestorTypetest();
> System.out.println("Authenticator.RequestorType ="
> +returnValue);
> assertNotNull(returnValue);
> }
> }
> class TestAuthentificator extends Authenticator
> {
> public TestAuthentificator()
> {super();
> }
> public Authenticator.RequestorType getRequestorTypetest()
> {return getRequestorType();
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-2413) [luni]
java.net.Authenticator.getRequestorType returns null while RI returns valid
result
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463270 ]
Mikhail Markov commented on HARMONY-2413:
-----------------------------------------
Everything integrated as expected - thanks, Tim!
> [luni] java.net.Authenticator.getRequestorType returns null while RI returns valid result
> -----------------------------------------------------------------------------------------
>
> Key: HARMONY-2413
> URL: https://issues.apache.org/jira/browse/HARMONY-2413
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Artem Aliev
> Assigned To: Tim Ellison
> Priority: Minor
> Attachments: H-2413.patch
>
>
> import junit.framework.TestCase;
> import java.net.Authenticator;
> import java.net.*;
> public class test extends TestCase
> {
> public void testcase0()
> {
> TestAuthentificator localTestAuthentificator = new
> TestAuthentificator();
> InetAddress in = null;
> try
> {
> in = InetAddress.getLocalHost();
> }
> catch (UnknownHostException e)
> {
> e.printStackTrace();
> }
> Authenticator.setDefault(localTestAuthentificator);
> Authenticator.requestPasswordAuthentication(in, -1, "http",
> "promt", "HTTP");
> Authenticator.RequestorType returnValue =
> localTestAuthentificator.getRequestorTypetest();
> System.out.println("Authenticator.RequestorType ="
> +returnValue);
> assertNotNull(returnValue);
> }
> }
> class TestAuthentificator extends Authenticator
> {
> public TestAuthentificator()
> {super();
> }
> public Authenticator.RequestorType getRequestorTypetest()
> {return getRequestorType();
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira