Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-1662

tableName got truncated during request mapping for /tables/tableName

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: v1.5.1
    • Fix Version/s: v1.5.2
    • Component/s: REST Service
    • Labels:
      None

      Description

      Request '/tables/default.kylin_sales' for table metadata return empty string. This is because Spring by default treats ".kylin_sales" as a file extension and path variable tableName receives value "default" rather than "default.kylin_sales". As a result, Kylin searchs metadata for table "default.default".

      An easy fix is to use "/{tableName:.+}" in request mapping as suggested in http://stackoverflow.com/questions/16332092/spring-mvc-pathvariable-with-dot-is-getting-truncated

        Attachments

        1. KYLIN-1662.patch
          1 kB
          Dayue Gao

          Activity

            People

            • Assignee:
              gaodayue Dayue Gao
              Reporter:
              gaodayue Dayue Gao
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: