Alon Bar-Lev has posted comments on this change. Change subject: webadmin: Fix UI plugin REST API HttpSession refresh issue ......................................................................
Patch Set 1: (2 comments) http://gerrit.ovirt.org/#/c/36622/1/backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml File backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml: Line 125: </filter> Line 126: <filter-mapping> Line 127: <filter-name>RefreshSessionFilter</filter-name> Line 128: <url-pattern>/*</url-pattern> Line 129: </filter-mapping> I think this filter should be the 1st. Line 130: Line 131: <!-- confidentiality --> Line 132: <security-constraint> Line 133: <web-resource-collection> http://gerrit.ovirt.org/#/c/36622/1/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/restapi/RestApiSessionManager.java File frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/restapi/RestApiSessionManager.java: Line 167: RequestBuilder createKeepAliveRequest() { Line 168: RequestBuilder builder = createRequest(); Line 169: Line 170: // This request shouldn't do anything other than refresh the REST API session Line 171: builder.setHeader(ENGINE_REFRESH_HEADER, "refresh-only"); //$NON-NLS-1$ > Note to reviewers: GWT RequestBuilder doesn't allow empty header value, tha so probably good to check the value at server side and perform refresh only if specific value is provided. Line 172: Line 173: return builder; Line 174: } Line 175: -- To view, visit http://gerrit.ovirt.org/36622 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2ffd3198239040f67313238a837af98db16e79ea Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Vojtech Szocs <vsz...@redhat.com> Gerrit-Reviewer: Alexander Wels <aw...@redhat.com> Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches