Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6487023

jhttp related HttpPrincipal getName() and toString() return values are not ok

XMLWordPrintable

    • Cause Known
    • 6
    • generic
    • generic

        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.

              Unassigned Unassigned
              spandeorcl Shantaram Pande (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: