Problem on ajax call after spring version update

3 views
Skip to first unread message

Julien Gribonvald

unread,
Oct 12, 2022, 11:49:08 AM10/12/22
to uport...@apereo.org

I folks,

I'm facing to a problem and can't remember / find the way to solve it. It's on esup-filemanager portlet that I'm trying to fix it.

Libs update with renovate into that were accepted broke the portlet (surely due to this one: https://github.com/uPortal-Project/esup-filemanager/commit/f8c996740a05fd7093fd9b24e4421ef648f25bd9) from spring 3.1.1 to 3.2.18. It broke all AJAX call on partial jsp loads.

On several parts of the esup-filemanager some Ajax call are done on @ResourceMapping uri that should provide a jsp response ( and not json response) without reloading the entire page (it's to load some partials only). Since the update this part is broken and response is 200 but with empty response.

An example is when loading the portlet or when trying to load filetrre on a drive link the right area isn't loaded from a request link like /portail/f/u18l1s4/p/esup-filemanager.n33/max/htmlFileTree.resource.uP?_csrf=e2018a32-19b3-4165-bf49-e86788e82162

when debugging I'm having such logs:

DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:52,444 org.springframework.beans.factory.support.DefaultListableBeanFactory.[] - Finished creating instance of bean 'portletControllerAjax'
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:52,444 org.springframework.web.portlet.DispatcherPortlet.[] - Testing handler adapter [org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter@6d18af0e]
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:52,444 org.springframework.web.portlet.DispatcherPortlet.[] - Testing handler adapter [org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter@151f2b83]
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,781 org.springframework.web.bind.annotation.support.HandlerMethodInvoker.[] - Invoking request handler method: public org.springframework.web.portlet.ModelAndView org.esupportail.portlet.filemanager.portlet.PortletControllerAjax.fileTree(java.lang.String,java.lang.String,javax.portlet.ResourceRequest,javax.portlet.ResourceResponse)
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,781 org.springframework.web.portlet.DispatcherPortlet.[] - Setting portlet response content type to view-determined type [text/html;charset=ISO-8859-1]
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,781 org.springframework.web.servlet.view.JstlView.[] - Rendering view with name 'authenticationForm' with model {currentDir=path_RlM6Tm91dmVhdXggZXNwYWNlcyBkZSBzdG9ja2FnZX5DT0xMw4hHRVMgRCBJTkRSRS1FVC1MT0lSRQ, username=null, password=null} and static attributes {}
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,781 org.springframework.web.servlet.view.JstlView.[] - Added model object 'currentDir' of type [java.lang.String] to request in view with name 'authenticationForm'
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,781 org.springframework.web.servlet.view.JstlView.[] - Removed model object 'username' from request in view with name 'authenticationForm'
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,781 org.springframework.web.servlet.view.JstlView.[] - Removed model object 'password' from request in view with name 'authenticationForm'
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,781 org.springframework.web.servlet.view.JstlView.[] - Forwarding to resource [/WEB-INF/jsp/authenticationForm.jsp] in InternalResourceView 'authenticationForm'
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,782 org.springframework.web.portlet.DispatcherPortlet.[] - Cleared thread-bound resource request context: org.apereo.portal.portlet.container.services.PortletEnvironmentServiceImpl$ExtendedResourceRequestImpl@15b5ed72
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,782 org.springframework.web.portlet.DispatcherPortlet.[] - Successfully completed request
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,782 org.springframework.web.portlet.context.XmlPortletApplicationContext.[] - Publishing event in PortletApplicationContext for namespace 'esup-filemanager-portlet': PortletRequestHandledEvent: portlet=[esup-filemanager]; mode=[view]; type=[render]; session=[BA7EA5880AED2B23034D43EE7612C551]; user=[XXXXXX]; time=[1349ms]; status=[OK]
DEBUG [uP-PortletExec-19-XXXXXX-RESOURCE-[esup-filemanager]] oct./12 17:46:53,782 org.springframework.web.context.support.XmlWebApplicationContext.[] - Publishing event in Root WebApplicationContext: PortletRequestHandledEvent: portlet=[esup-filemanager]; mode=[view]; type=[render]; session=[BA7EA5880AED2B23034D43EE7612C551]; user=[XXXXXX]; time=[1349ms]; status=[OK]


So no error appear.


Thanks for any help.

--

Julien GRIBONVALD / Développeur Opérationnel
T. 02 38 42 14 63 / julien.g...@recia.fr

GIP Recia · Ressources numériques publiques en Centre-Val de Loire
Bâtiment F1 - 3 avenue Claude Guillemin - BP 36009 45060 Orléans Cedex 02
T. 02 38 42 14 63
www.recia.fr ·   

Benito Gonzalez

unread,
Oct 26, 2022, 3:54:20 PM10/26/22
to Julien Gribonvald, uport...@apereo.org
Hey Julien,

How did you resolve this?

-bjagg


--
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/uportal-dev/9518f4fa-2c4c-1ee7-4b58-c2a4ba3d6957%40recia.fr.

Julien Gribonvald

unread,
Oct 27, 2022, 2:27:10 AM10/27/22
to uport...@apereo.org

Hey Benito,

I've "fixed" it by disabling @ExceptionHandling, these version of spring aren't really good on this part and spring 5 would fix that in the futur.

Thanks

Julien Gribonvald

Benito Gonzalez

unread,
Oct 27, 2022, 5:26:00 PM10/27/22
to Julien Gribonvald, uport...@apereo.org
We hope to wrap up the Java 11 upgrade in November and start pushing for Spring 5 by the start of the new year. Can't wait!

-bjagg


Reply all
Reply to author
Forward
0 new messages