Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Issue with SelectableEntityFiltering when the fields specified is . character #3804

Open
senivam opened this issue Apr 12, 2018 · 0 comments

Comments

@senivam
Copy link

senivam commented Apr 12, 2018

Working queries:

http://localhost:8080/dscs/v1/targetTypes/

[ { "description": "ORACLE CORPORATION DATABASE", "name": "Oracle Database", "resourceGroupId": 1, "resourceGroupName": "Oracle Built-in", "targetTypeClass": "Database" } ]

http://localhost:8080/dscs/v1/targetTypes/?fields=name

[ { "name": "Oracle Database" } ]

http://localhost:8080/dscs/v1/targetTypes/?fields=name,description

[ { "description": "ORACLE CORPORATION DATABASE", "name": "Oracle Database" } ]

We see a issue when we specify . as a character we get the error seen below:

http://localhost:8080/dscs/v1/targetTypes/?fields=.

[2018-04-09T23:22:05.787+0000] [org.glassfish.grizzly.servlet.ServletHandler] [ERROR:1] [] [org.glassfish.grizzly.servlet.ServletHandler] [ecid: test20Marc] [userTenant: dscs-tenant01] [resourceTenant: null] [serviceId: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1] [userId: test99] [host: den01cfc] [pid: 66438] [tid: Thread name=Grizzly-worker(3) Thread id=46] service exception: @@ javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.ServletException: java.lang.ArrayIndexOutOfBoundsException: 0 @@ at org.glassfish.grizzly.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:139) @@ at org.glassfish.grizzly.servlet.FilterChainImpl.invokeFilterChain(FilterChainImpl.java:106) @@ at org.glassfish.grizzly.servlet.ServletHandler.doServletService(ServletHandler.java:226) @@ at org.glassfish.grizzly.servlet.ServletHandler.service(ServletHandler.java:178) @@ at org.glassfish.grizzly.osgi.httpservice.OSGiMainHandler.service(OSGiMainHandler.java:126) @@ at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) @@ at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) @@ at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) @@ at java.lang.Thread.run(Thread.java:745) @@ Caused by: javax.servlet.ServletException: javax.servlet.ServletException: java.lang.ArrayIndexOutOfBoundsException: 0 @@ at org.glassfish.grizzly.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:151) @@ at org.glassfish.grizzly.osgi.httpservice.OSGiAuthFilter.doFilter(OSGiAuthFilter.java:86) @@ at org.glassfish.grizzly.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:137) @@ ... 8 more @@ Caused by: javax.servlet.ServletException: java.lang.ArrayIndexOutOfBoundsException: 0 @@ at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489) @@ at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) @@ at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) @@ at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) @@ at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) @@ at org.glassfish.grizzly.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:147) @@ ... 10 more @@ Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 @@ at org.glassfish.jersey.message.filtering.SelectableScopeResolver.getScopesForField(SelectableScopeResolver.java:112) @@ at org.glassfish.jersey.message.filtering.SelectableScopeResolver.resolve(SelectableScopeResolver.java:96) @@ at org.glassfish.jersey.message.filtering.CommonScopeProvider.getFilteringScopes(CommonScopeProvider.java:133) @@ at org.glassfish.jersey.message.filtering.CommonScopeProvider.getFilteringScopes(CommonScopeProvider.java:100) @@ at org.glassfish.jersey.message.filtering.ServerScopeProvider.getFilteringScopes(ServerScopeProvider.java:98) @@ at org.glassfish.jersey.message.filtering.spi.AbstractObjectProvider.getFilteringObject(AbstractObjectProvider.java:94) @@ at org.glassfish.jersey.message.filtering.spi.AbstractObjectProvider.getFilteringObject(AbstractObjectProvider.java:85) @@ at org.glassfish.jersey.moxy.json.internal.FilteringMoxyJsonProvider.preWriteTo(FilteringMoxyJsonProvider.java:80) @@ at org.eclipse.persistence.jaxb.rs.MOXyJsonProvider.writeTo(MOXyJsonProvider.java:955) @@ at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265) @@ at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250) @@ at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162) @@ at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:106)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant