Uploaded image for project: 'JBoss Enterprise Web Server'
  1. JBoss Enterprise Web Server
  2. JBEWS-326

On RHEL 6 mod_jk unable to handle space after equal '=' sign in uriworkermap.properties where worker name includes a hyphen '-'

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Migrated to another ITS
    • Affects Version/s: EWS 1.0.2
    • Fix Version/s: EWS 2.0.0
    • Labels:
      None
    • Environment:

      RHEL 6
      Reproduced on 2.6.32-131.0.15.el6.x86_64

    • Workaround Description:
      Hide

      Remove space after'=' sign
      Change
      /jk-status|/* = jk-status
      to
      /jk-status|/* =jk-status

      Show
      Remove space after'=' sign Change /jk-status|/* = jk-status to /jk-status|/* =jk-status

      Description

      Where the worker name includes a '-' and there is a space after the '=' sign in the uriworkermap .properties, the following error is logged in the mod_jk logs

      [Tue Apr 03 23:41:26.992 2012] [25736:139832971024352] [error] uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with name 'jk-stauus' in uri map post processing.
      [Tue Apr 03 23:41:26.992 2012] [25736:139832971024352] [error] uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with name 'jk-stauus' in uri map post processing.

      TEST CASE

        1. workers.properties

      worker.list=jk-status
      worker.jk-status.type=status
      worker.jk-status.read_only=true

        1. uriworkermap.properties

      /jk-status|/* = jk-status

        1. mod_jk.conf
          <Location /jk-status>
      1. Inside Location we can omit the URL in JkMount
        JkMount jk-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
        </Location>

      From the error log it is not easy to identify the root cause of the problem
      If this is not going to be fixed, perhaps validating the .properties file will help users fix the errors themselves

      Though for the status worker no entry is required in uriworkermap.properties. The worker.properties entry and JKMount directive is sufficient

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                permaine Permaine Cheung
                Reporter:
                lakagwu Lami Akagwu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: