Bug #8799
Story #8796: Various issues with service access after upgrade to 18.04
Issues with account info under certain conditions
100%
Description
As reported by Bryce on slack:
I'm seeing HTTP 500s when I hit a URL like https://cn-stage.test.dataone.org/cn/v2/accounts/http%3A%2F%2Forcid.org%2F0000-0002-0381-3766 and pass in a bearer token. I don't see the 500 when I request the URL w/o a token. In catalina.out I see "Subject not a valid DN: http://orcid.org/0000-0002-0381-3766 [org.dataone.service.cn.impl.v2.CNIdentityLDAPImpl]"
Hrm, guess that isn't quite right. I passed a token with curl and it worked too. So I'm just seeing the 500s from my browser. You should be able to log into https://search-stage.test.dataone.org/data, try to view your profile, and see the 500s
History
#1 Updated by Dave Vieglais over 5 years ago
- Description updated (diff)
#2 Updated by Jing Tao over 5 years ago
It works on search-sandbox and search production. It is only the search-stage issue. Bryce, can you try the search-sandbox and search production as well?
#3 Updated by Jing Tao over 5 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
The error message on the tomcat log file suggests that there were two httpclient jar files:
SEVERE [ajp-nio-8009-exec-14] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [d1] in context with path [/cn] threw exception [Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.apache.http.impl.conn.CPool.setValidateAfterInactivity(I)V] with root cause
java.lang.NoSuchMethodError:
In the lib, we had those jar files:
httpclient-4.3.6.jar
and httpclient-4.5.2.jar
httpcore-4.3.3.jar
and httpcore-4.4.4.jar
I removed both httpclient-4.5.2.jar
and httpcore-4.4.4.jar
and it works.
First I tried to remove httpclient-4.3.6.jar
`, but our system depends on it.