Alon Bar-Lev has posted comments on this change.

Change subject: packaging: api: redirect /api to /ovirt-engine/api using 
rewrite rules
......................................................................


Patch Set 1:

(1 comment)

....................................................
File backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
Line 26:   <session-config>
Line 27:     <session-timeout>180</session-timeout>
Line 28:     <cookie-config>
Line 29:       <path>/</path>
Line 30:     </cookie-config>
Let's assume application fetches events from /api/events.

So it logins into /api/events asking for persistence cookie.

It gets events... right? Now every URL within response is at /ovirt-engine/api.

However, application still hardcoded to using /api/event for next query as well.

If we do not set path to / the cookie will not be forwarded by the client to 
this next query.
Line 31:   </session-config>


-- 
To view, visit http://gerrit.ovirt.org/21566
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I2ad9bb362719c7805be9f69d7e14bd3ad7b1f5c7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Alexander Wels <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to