jaspic-spec
  1. jaspic-spec
  2. JASPIC_SPEC-1

AppContextID of Servlet profile includes name of virtual host; for which Servlet provides no portable api

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      During programmatic AuthConfigProvider registration - especially
      self-registration via

      AuthConfigFactory.registerConfigProvider(AuthConfigProvider provider,
      String layer,
      String appContextID,
      String description);

      the AuthConfigProvider has no portable way to determine the name of the virtual
      host, and thus to register using the same virtual host name that will be used
      by the runtime in its call to

      AuthConfigFactory.getConfigProvider(String layer, String appContextID,
      RegistrationListener listener);

      Servlet 3.1 does not intend to provide a portable api by which the name of the
      virtual host can be obtained.

      this problem was first reported by Arjan Tijms

        Activity

        monzillo created issue -
        monzillo made changes -
        Field Original Value New Value
        Assignee monzillo [ monzillo ]
        Hide
        arjan tijms added a comment -

        I just read that the MR document at http://jcp.org/aboutJava/communityprocess/maintenance/jsr196/standard_appContextID_generation.pdf

        Mentions the following:

        A Servlet container that implements a version of the Servlet specification that defines the getVirtualServerName method on the ServletContext interface, must construct its application context identifiers using a value for hostname that is equivalent to the value returned by calling getVirtualServerName on the ServletContext corresponding to the web application.

        I couldn't however find a method called getVirtualServerName on ServletContext. I checked javax.servlet-api-3.1-pdr-javadoc, but it doesn't seem to be there. Is this a method planned for the future?

        Show
        arjan tijms added a comment - I just read that the MR document at http://jcp.org/aboutJava/communityprocess/maintenance/jsr196/standard_appContextID_generation.pdf Mentions the following: A Servlet container that implements a version of the Servlet specification that defines the getVirtualServerName method on the ServletContext interface, must construct its application context identifiers using a value for hostname that is equivalent to the value returned by calling getVirtualServerName on the ServletContext corresponding to the web application. I couldn't however find a method called getVirtualServerName on ServletContext . I checked javax.servlet-api-3.1-pdr-javadoc , but it doesn't seem to be there. Is this a method planned for the future?
        Hide
        arjan tijms added a comment -

        Even though the method does not seem to appear in the PDR javadoc, I found one reference to it here: GLASSFISH-19814, so it does seem to be a Servlet 3.1 method

        Show
        arjan tijms added a comment - Even though the method does not seem to appear in the PDR javadoc, I found one reference to it here: GLASSFISH-19814 , so it does seem to be a Servlet 3.1 method

          People

          • Assignee:
            monzillo
            Reporter:
            monzillo
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: