-
Bug
-
Resolution: Duplicate
-
P4
-
6, 7, 8, 9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2210840 | 7u2 | Unassigned | P4 | Closed | Won't Fix |
In jdk6.0 b103
com.sun.net.httpserver HttpPrincipal
getName() as per api expected to retrun realm:username.
but returning value which is same as getUsername()
same thing for toString().
% java -version
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b103)
Java HotSpot(TM) Server VM (build 1.6.0-rc-b103, mixed mode)
=======test output given below===========================
name = principal.getName() = fred
realm = principal.getRealm() = ###@###.###m
userName = principal.getUsername() = fred
=======================================================
test case is attached.
com.sun.net.httpserver HttpPrincipal
getName() as per api expected to retrun realm:username.
but returning value which is same as getUsername()
same thing for toString().
% java -version
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b103)
Java HotSpot(TM) Server VM (build 1.6.0-rc-b103, mixed mode)
=======test output given below===========================
name = principal.getName() = fred
realm = principal.getRealm() = ###@###.###m
userName = principal.getUsername() = fred
=======================================================
test case is attached.
- backported by
-
JDK-2210840 jhttp related HttpPrincipal getName() and toString() return values are not ok
- Closed
- duplicates
-
JDK-8255584 `HttpPrincipal::getName` returns incorrect name
- Resolved