glassfish
  1. glassfish
  2. GLASSFISH-655

unable to create a virtualhost for a non-existing host

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 9.0pe
    • Fix Version/s: 9.1pe
    • Component/s: admin
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      655

      Description

      Putting a non existing host in Hosts field is generating an error.

      There is no reason to make virtual host name existing in this server as we are
      not binding the ip address on virtualhost (as resolving/binding is only required
      for http-listeners).

      Please simply put a warning instead that will not block user in a chicken-egg
      kind of problem. I need this because of
      https://glassfish.dev.java.net/issues/show_bug.cgi?id=654

        Activity

        Hide
        kumara added a comment -

        Assigning to rp100353

        Show
        kumara added a comment - Assigning to rp100353
        Hide
        pa100654 added a comment -

        Issue reassigned

        Show
        pa100654 added a comment - Issue reassigned
        Hide
        pa100654 added a comment -

        Trying to resolve the hosts field for a valid IP/host-name, which isnt required.
        This has to be commented out.

        Show
        pa100654 added a comment - Trying to resolve the hosts field for a valid IP/host-name, which isnt required. This has to be commented out.
        Hide
        bjb added a comment -

        Hi Prashanth,

        Can you point out the file where the changes has been applied so that I can
        track the effect in the build and verify the resolution ?

        Rgs,
        JB

        Show
        bjb added a comment - Hi Prashanth, Can you point out the file where the changes has been applied so that I can track the effect in the build and verify the resolution ? Rgs, JB
        Hide
        pa100654 added a comment -

        Diffs


        Index: VirtualServerTest.java
        ===================================================================
        RCS file:
        /cvs/glassfish/admin/validator/src/java/com/sun/enterprise/config/serverbeans/validation/tests/VirtualServerTest.java,v
        retrieving revision 1.6
        diff -u -r1.6 VirtualServerTest.java
        — VirtualServerTest.java 6 Mar 2006 19:34:21 -0000 1.6
        +++ VirtualServerTest.java 21 Sep 2006 04:21:00 -0000
        @@ -74,7 +74,7 @@
        // the parent of the class object:
        final Config config = (Config) ((HttpService)
        cce.getClassObject()).parent();

        validateAttribute(ServerTags.HTTP_LISTENERS,virtual.getHttpListeners(),config,
        result);

        • validateAttribute(ServerTags.HOSTS,virtual.getHosts(),config,
          result);
          + //validateAttribute(ServerTags.HOSTS,virtual.getHosts(),config,
          result);
          } else if(cce.getChoice().equals("UPDATE")) {
          // For an UPDATE operation the class object is the
          // virtual server whose attributes are being
        Show
        pa100654 added a comment - Diffs Index: VirtualServerTest.java =================================================================== RCS file: /cvs/glassfish/admin/validator/src/java/com/sun/enterprise/config/serverbeans/validation/tests/VirtualServerTest.java,v retrieving revision 1.6 diff -u -r1.6 VirtualServerTest.java — VirtualServerTest.java 6 Mar 2006 19:34:21 -0000 1.6 +++ VirtualServerTest.java 21 Sep 2006 04:21:00 -0000 @@ -74,7 +74,7 @@ // the parent of the class object: final Config config = (Config) ((HttpService) cce.getClassObject()).parent(); validateAttribute(ServerTags.HTTP_LISTENERS,virtual.getHttpListeners(),config, result); validateAttribute(ServerTags.HOSTS,virtual.getHosts(),config, result); + //validateAttribute(ServerTags.HOSTS,virtual.getHosts(),config, result); } else if(cce.getChoice().equals("UPDATE")) { // For an UPDATE operation the class object is the // virtual server whose attributes are being

          People

          • Assignee:
            pa100654
            Reporter:
            bjb
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: