You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "StefanFranzWeiser (via GitHub)" <gi...@apache.org> on 2025/02/10 13:42:31 UTC

[PR] Syntax error fix for default filter [felix-dev]

StefanFranzWeiser opened a new pull request, #381:
URL: https://github.com/apache/felix-dev/pull/381

   When using the default filter I get the following Exception:
   `jakarta.servlet.ServletException: org.osgi.framework.InvalidSyntaxException: Only one top-level operation allowed: (&(objectClass=jakarta.servlet.http.HttpServlet)((http.felix.dispatcher=*)(objectClass=jakarta.servlet.http.HttpServlet)))
   	org.apache.felix.http.proxy.AbstractProxyServlet.service(AbstractProxyServlet.java:113)
   	jakarta.servlet.http.HttpServlet.service(HttpServlet.java:716)
   	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
   	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
   	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
   	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:663)
   	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
   	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:395)
   	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
   	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)
   	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1746)
   	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
   	org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1148)
   	org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
   	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
   	java.base/java.lang.Thread.run(Thread.java:1583)`
   The LDAP syntax is not correct here.
   
   By the way, I'm a bit surprised about the query why querying for the objectClass is done twice:
   `(&(objectClass=jakarta.servlet.http.HttpServlet)((http.felix.dispatcher=*)(objectClass=jakarta.servlet.http.HttpServlet)))`
   
   Shouldn't be
   `(&(http.felix.dispatcher=*)(objectClass=jakarta.servlet.http.HttpServlet))`
   enough if no filter is available?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@felix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Syntax error fix for default filter [felix-dev]

Posted by "cziegeler (via GitHub)" <gi...@apache.org>.
cziegeler commented on PR #381:
URL: https://github.com/apache/felix-dev/pull/381#issuecomment-2648037210

   Thanks, I'll have a look at the duplication


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@felix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Syntax error fix for default filter [felix-dev]

Posted by "cziegeler (via GitHub)" <gi...@apache.org>.
cziegeler merged PR #381:
URL: https://github.com/apache/felix-dev/pull/381


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@felix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Syntax error fix for default filter [felix-dev]

Posted by "cziegeler (via GitHub)" <gi...@apache.org>.
cziegeler commented on PR #381:
URL: https://github.com/apache/felix-dev/pull/381#issuecomment-2648049850

   Fixed in https://github.com/apache/felix-dev/commit/64da8abea8ca564e16259c643c34661c12918000


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@felix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org