Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-656

Cannot parse undertow-handlers.conf with Windows-style line endings

XMLWordPrintable

    • Hide

      undertow-handlers.conf containing this (just taken from official documentation):

      path['/a'] -> redirect['/b']
      path-prefix['/a'] -> redirect['/b${remaining}']
      

      With cr/lf after the first line, it fails. Unix line ending of course works fine.

      Show
      undertow-handlers.conf containing this (just taken from official documentation): path[ '/a' ] -> redirect[ '/b' ] path-prefix[ '/a' ] -> redirect[ '/b${remaining}' ] With cr/lf after the first line, it fails. Unix line ending of course works fine.

      When undertow-handlers.conf (deployed in a war file's WEB-INF) contains cr/lf newlines, the following error is produced on startup:

      INFO | jvm 1 | 2016/03/08 11:24:06 | Caused by: java.lang.IllegalArgumentException: UT000045: Error parsing predicated handler string Invalid expression:
      INFO | jvm 1 | 2016/03/08 11:24:06 | path['/a'] -> redirect['/b']
      INFO | jvm 1 | 2016/03/08 11:24:06 | ^"},

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              bhawthorne Brad Hawthorne (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: