Kerberos Integration with Tomcat, arises errors in Opengrok Suggester #4150
Replies: 7 comments
-
I have ~1100 repositories currently, and planning to add many more. |
Beta Was this translation helpful? Give feedback.
-
Suggester can be disabled via configuration - see https://github.com/oracle/opengrok/wiki/Suggester#enabled |
Beta Was this translation helpful? Give feedback.
-
Could you describe in detail the changes done to the OpenGrok instance ? |
Beta Was this translation helpful? Give feedback.
-
Also, when does the above exception happen ? During webapp deployement/startup or some other time ? |
Beta Was this translation helpful? Give feedback.
-
As for the actual exception, the call in ExecutionTime.class from cron-utils-9.1.6.jar .
Inside the class loader, there is a list of web resources lists that is traversed: https://github.com/apache/tomcat/blob/ced2fe39f36d5da4cc13f2ff539a9abeacd503b9/java/org/apache/catalina/webresources/StandardRoot.java#L272-L281 It is for one of the sub-lists the problem happens: https://github.com/apache/tomcat/blob/ced2fe39f36d5da4cc13f2ff539a9abeacd503b9/java/org/apache/catalina/webresources/StandardRoot.java#L72-L76 and https://github.com/apache/tomcat/blob/ced2fe39f36d5da4cc13f2ff539a9abeacd503b9/java/org/apache/catalina/webresources/StandardRoot.java#L87 These lists are modified during startup via Assuming this is not the trivial case of concurrent modification of the ArrayList, there must be some other thread working with one of these lists, hence my question above webapp deploy/startup. Given this is first such report, there must be something about the Kerberos modifications that lead to this problem, hence my question above about the exact changes done to the webapp config. |
Beta Was this translation helpful? Give feedback.
-
As for the changes that I do which leads to this are
This doesn't allow the webapp to even start, and I get a 404. I don't get why the Auth Filter is responsible for the Exception. |
Beta Was this translation helpful? Give feedback.
-
<filter>
<filter-name>Authentication Filter</filter-name>
<filter-class>............KerberosAuthenticationFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Authentication Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> is the XML I add to $CATALINA_HOME/webapps/source/WEB_INF/web.xml Dependencies I add are javax, slf4j and my authentication filter jar |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am not able to integrate Kerberos with Opengrok in Tomcat server, I get some error while integrating it.
If you provide the exact version of OpenGrok, JDK used, OS(and its version) used and Tomcat(or your webapp server) used it can help figuring out an environment issue.
Opengrok v1.7.33
Tomcat v10.0.22
JDK OpenJDK 11
OS RHEL7
To Reproduce
Added Kerberos Authentication to Tomcat, which shows an unexpected error, on the Opengrok Suggester side. It doesn't happen if I remove the Authentication filter from the web.xml of my webapp.
Expected behavior
Working state of Kerberos with Opengrok Instance
Screenshots
This is the error in tomcat logs.
Additional context
If I remove the Authentication Filter, everything works fine with Simple HTTP Auth. For adding Auth, I have added the dependencies and added the Filter in web.xml and else everything on Kerberos side is taken care of by the system. Thats how its done for other applications. If this is due to the suggester, is there a way to turn off suggester in Opengrok ?
Beta Was this translation helpful? Give feedback.
All reactions