[teiid-issues] [JBoss JIRA] (TEIID-3655) Generated REST Service war do not allow any no-rest url

Kylin Soong (JIRA) issues at jboss.org
Tue Sep 1 19:44:05 EDT 2015


    [ https://issues.jboss.org/browse/TEIID-3655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104333#comment-13104333 ] 

Kylin Soong commented on TEIID-3655:
------------------------------------

Yes, the changes including in TEIID-3521

> Generated REST Service war do not allow any no-rest url
> -------------------------------------------------------
>
>                 Key: TEIID-3655
>                 URL: https://issues.jboss.org/browse/TEIID-3655
>             Project: Teiid
>          Issue Type: Quality Risk
>    Affects Versions: 8.12
>            Reporter: Kylin Soong
>            Assignee: Kylin Soong
>            Priority: Blocker
>             Fix For: 8.12
>
>         Attachments: Screenshot.png
>
>
> Generated REST Service war have the following configuration in web.xml
> {code}
>     <servlet-mapping>
>         <servlet-name>RestDataservice</servlet-name>
>         <url-pattern>/*</url-pattern>
>     </servlet-mapping>
> {code}
> This means all request be thought as rest request. As attached screen, all shot, 
> {code}
> 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
> {code}
> be thought as rest request, but no relevant api define, 404 returned.
> Current design is for guarantee the rest api path like 
> {code}
> /{vdbName_vdbVersion}/{modelName}/{procedureName}/{path}
> {code} 
> for example
> {code}
> http://localhost:8080/sample_1/view/g1/1
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the teiid-issues mailing list