Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-2540

Uppercase letters in backend url causes missing upstream error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 2.4 GA
    • Gateway
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • +
    • Workaround Exists
    • Hide

      Use lowercase hostname

      Show
      Use lowercase hostname

      Setting uppercase letters in backend url (Private Base URL) causes the below error in APIcast logs. APIcast is failing on parsing the url.

      2019/05/14 05:51:36 [error] 23#23: *411 lua entry thread aborted: runtime error: /opt/app-root/src/src/apicast/policy/apicast/apicast.lua:86: missing upstream
      stack traceback:
      coroutine 0:
      	[C]: in function 'assert'
      	/opt/app-root/src/src/apicast/policy/apicast/apicast.lua:86: in function </opt/app-root/src/src/apicast/policy/apicast/apicast.lua:85>
      	/opt/app-root/src/src/apicast/policy_chain.lua:163: in function </opt/app-root/src/src/apicast/policy_chain.lua:160>
      	/opt/app-root/src/src/apicast/policy_chain.lua:163: in function 'content'
      	content_by_lua(lua_sA9Lnp:505):1: in function <content_by_lua(lua_sA9Lnp:505):1>, client: 172.17.0.1, server: _, request: "GET /ok?user_key=<USERKEY> HTTP/1.1", host: "api-3scale-apicast-staging.<HOSTNAME>"
      

      For example. Setting API backend as `hello.example.com` works but `HELLO.example.com` causes the error.

              eloycoto Eloy Coto
              amoran@redhat.com Alan Moran (Inactive)
              Eloy Coto Eloy Coto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: