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

Catch-all rule crashes routing policy initialization

    XMLWordPrintable

Details

    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • No
    • +
    • Undefined
    • Workaround Exists
    • Hide

      a. remove the catch-all rule and use apicast instead of the rule.
      b. add a rule that catches all requests like this:

      "operations": [
          {
              "value_type": "plain",
              "op": "matches",
              "match": "path",
              "value": "/*"
          }
      ]
      
      Show
      a. remove the catch-all rule and use apicast instead of the rule. b. add a rule that catches all requests like this: "operations" : [ { "value_type" : "plain" , "op" : "matches" , "match" : "path" , "value" : "/*" } ]

    Description

      When I set the catch-all rule as described in the document, APIcast fails to load the routing policy.

      {
         "condition": {
           "combine_op": "and",
         "operations": []
         },
         "url": "http://example.com:80",
         "replace_path": "/403error"
      }
      
      2020/11/17 07:57:32 [error] 31#31: *2584291 [lua] policy_chain.lua:103: load_policy(): Policy routing crashed in .new(). It will be ignored., context: ngx.timer#015
      2020/11/17 07:57:32 [warn] 31#31: *2584291 [lua] configuration.lua:76: build_policy_chain(): failed to load policy: routing version: builtin err: /opt/app-root/src/src/apicast/policy/routing/rule.lua:47: attempt to get length of field 'operations' (a nil value), context: ngx.timer#015
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-tkonishi Takayuki Konishi
            David Rajnoha David Rajnoha (Inactive)
            Eloy Coto Eloy Coto (Inactive)
            Eloy Coto Eloy Coto (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: