Unable to add attachments when using onedrive integration

Description

java.lang.ClassNotFoundException: org.apache.hc.core5.http2.HttpVersionPolicy Caused by: java.lang.NoClassDefFoundError: org/apache/hc/core5/http2/HttpVersionPolicy at org.apache.hc.client5.http.config.TlsConfig$Builder.build(TlsConfig.java:211) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.config.TlsConfig.<clinit>(TlsConfig.java:47) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.resolveTlsConfig(PoolingHttpClientConnectionManager.java:276) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:441) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:162) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:172) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:142) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:192) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:96) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:152) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:115) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:170) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:123) ~[httpclient5-5.2.1.jar:5.2.1] at org.sakaiproject.onedrive.util.HTTPConnectionUtil.makePostCall(HTTPConnectionUtil.java:74) ~[?:?] at org.sakaiproject.onedrive.service.OneDriveServiceImpl.refreshToken(OneDriveServiceImpl.java:175) ~[?:?] at org.sakaiproject.onedrive.service.OneDriveServiceImpl.getDriveRootItems(OneDriveServiceImpl.java:225) ~[?:?] at org.sakaiproject.content.tool.FilePickerAction.buildSelectAttachmentContext(FilePickerAction.java:926) ~[?:?] at org.sakaiproject.content.tool.FilePickerAction.buildMainPanelContext(FilePickerAction.java:344) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.sakaiproject.cheftool.VelocityPortletPaneledAction.toolModeDispatch(VelocityPortletPaneledAction.java:409) ~[?:?]

Activity

Show:

Bernardo Garcia Vila September 6, 2024 at 11:03 AM

If this is an issue in 22.5 I think the priority should be raised.

Bernardo Garcia Vila May 30, 2024 at 6:28 AM

Yes, we could. Although it includes a lot of changes and some new tools, most of it is self-contained, with just a few core changes to contents in this part of the file picker and some hooks for keeping in sync Sakai and Teams (only those that are configured). Previous configuration via properties now has to be done in the admin Microsoft tool, and then you can just enable the OneDrive part.

If you need more info please let us know.

Sam Ottenhoff May 29, 2024 at 1:21 PM

I assume 23.x issue only

Can https://sakaiproject.atlassian.net/browse/S2U-4 be merged into 23.x? Does it make sense to merge them in?

Bernardo Garcia Vila May 29, 2024 at 6:30 AM

Is this a 23.x issue? Or does this happen on master too? One-drive’s old integration has been upgraded and improved by https://sakaiproject.atlassian.net/browse/S2U-4.

Sam Ottenhoff May 28, 2024 at 7:48 PM

Need to deploy the http5 JARs to components/sakai-one-drive instead of lib? seems to work for me

Details

Priority

Affects versions

Assignee

Reporter

Created May 28, 2024 at 7:02 PM
Updated September 6, 2024 at 11:03 AM

Flag notifications