Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1400

Rewrite for logsearch with a double encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.1.0
    • None
    • Server

    Description

      Hello,

      I face to some issues with the integration of logsearch with Knox. My cluster is an HDP 2.6.5.

      The Knox version with HDP 2.6.5 is 0.12.0 I've defined the LOGSEARCH topology with custom Xml files but I face to some internal rewrite issues:

      https://XXXX/gateway/default/logsearch/api/v1/service/logs/histogram?page=0&pageSize=999999999☆tIndex=0&q=**%3A

      http://XXXX:61888/api/v1/service/logs/histogram?q=%253A... q=%3A replaced by q=*%25*3A => double urlencode.

      Thus logsearch can't handle this kind of request. I'm trying to define a custom dispatch class. The documentation explains a little how to do that but it's not sufficient. I'd like to find a concrete example.

      Where can I find a concrete example of Dispatch class embedded that I can put in a dedicated jar (then I can copy this jar in the ext directory) ? Or how can I handle handle this kind of double encode ?

      Thanks in advance

      Regards,

      David

      Attachments

        1. KNOX-1400.patch
          5 kB
          David Morin
        2. rewrite.xml
          1 kB
          David Morin
        3. rewrite.xml.j2
          3 kB
          David Morin
        4. service.xml
          2 kB
          David Morin
        5. service.xml.j2
          2 kB
          David Morin
        6. service.xml.j2
          2 kB
          David Morin

        Issue Links

          Activity

            People

              krisden Kevin Risden
              aldu29 David Morin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: