Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1369

webserver31-tomcat8-openshift context.xml contains wrong regexp for localhost 127.d+.d+.d+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • JWS 3.1.0 GA
    • tomcat8
    • None
    • 8
    • Compatibility/Configuration
    • ?
    • Workaround Exists
    • Hide

      Manual change to context.xml with the following regex

      <Valve className="org.apache.catalina.valves.RemoteAddrValve"
               allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
      
      Show
      Manual change to context.xml with the following regex <Valve className= "org.apache.catalina.valves.RemoteAddrValve" allow= "127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
    • Hide

      1. Create a new project in OpenShift with image webserver31-tomcat8-openshift
      2. Create a user tomcat with manager-jmx role.
      3. Access Server state using IPv4 localhost using default context.xml
      curl -4 -v -u tomcat:tomcat 'http://localhost:8080/manager/jmxproxy/?get=Catalina%3Atype%3DServer&att=stateName'

      Show
      1. Create a new project in OpenShift with image webserver31-tomcat8-openshift 2. Create a user tomcat with manager-jmx role. 3. Access Server state using IPv4 localhost using default context.xml curl -4 -v -u tomcat:tomcat 'http://localhost:8080/manager/jmxproxy/?get=Catalina%3Atype%3DServer&att=stateName'

      In the image webserver31-tomcat8-openshift the file /opt/webserver/webapps/manager/META-INF/context.xml with the following default content:

         <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.d+.d+.d+|::1|0:0:0:0:0:0:0:1"/>
      
      

      The uncommented valve contain regex that doesn't match IPv4 address while the one that is commented is valid. There should be a slash () before each of the dots (.) and digit identifiers (d) like the commented version has.

            rhn-support-csutherl Coty Sutherland
            rhn-support-asah Abhishek Sah (Inactive)
            Michal Karm Michal Karm
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: