Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3655

Generated REST Service war do not allow any no-rest url

    XMLWordPrintable

Details

    • Quality Risk
    • Resolution: Done
    • Blocker
    • 8.12
    • 8.12
    • None
    • None

    Description

      Generated REST Service war have the following configuration in web.xml

          <servlet-mapping>
              <servlet-name>RestDataservice</servlet-name>
              <url-pattern>/*</url-pattern>
          </servlet-mapping>
      

      This means all request be thought as rest request. As attached screen, all shot,

      http://localhost:8080/sample_1/swagger/css/typography.css
      http://localhost:8080/sample_1/swagger/lib/jquery-1.8.0.min.js
      http://localhost:8080/sample_1/swagger/lib/highlight.7.3.pack.js
      

      be thought as rest request, but no relevant api define, 404 returned.

      Current design is for guarantee the rest api path like

      /{vdbName_vdbVersion}/{modelName}/{procedureName}/{path}
      

      for example

      http://localhost:8080/sample_1/view/g1/1
      

      But, I do wonder we really need to treat all are rest request? For example, if we request http://localhost:8080/sample_1, a rude 404 page with stacktrace return, we may consider and a customized 404 page.

      Attachments

        Issue Links

          Activity

            People

              kylinsoong.1214@gmail.com Kylin Soong (Inactive)
              kylinsoong.1214@gmail.com Kylin Soong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: