Vojtech Szocs has posted comments on this change.

Change subject: core: rearrange product uris
......................................................................


Patch Set 14:

(3 comments)

Just two minor comments, otherwise an excellent patch and move into right 
direction, in my opinion.

....................................................
File 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/servlet/ForwardServlet.java
Line 36:  * the path in the target servlet context. So if the ForwardServlet is 
mapped to /docs and the target context
Line 37:  * is /ovirt-engine/docs. Then /docs/something gets forwarded to 
/ovirt-engine/docs/something. <br />
Line 38:  * <br />
Line 39:  * The targetContext param value can contain property expressions for 
expanding Engine property values in
Line 40:  * form of %{PROP_NAME}.
Excellent Javadoc.
Line 41:  */
Line 42: public class ForwardServlet extends HttpServlet {
Line 43:     /**
Line 44:      * The logger instance.


....................................................
File 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GwtDynamicHostPageServlet.java
Line 174:      * @return
Line 175:      */
Line 176:     private String getConfiguration(final HttpServletRequest request) 
{
Line 177:         ObjectNode node = mapper.createObjectNode();
Line 178:         node.put(MD5Attributes.ATTR_BASE_CONTEXT_PATH.getKey(), 
ServletUtils.getBaseContextPath(request));
Just a minor thing, this results in following data embedded in host page:

 var baseContextPath = { "baseContextPath": "..." };

Maybe we can change it to something like:

 var baseContextPath = { "value": "..." };

What do you think? i.e. having something like:

 node.put("value", ServletUtils.getBaseContextPath(request));
Line 179:         return node.toString();
Line 180:     }
Line 181: 
Line 182:     /**


....................................................
File 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/utils/BaseContextPathData.java
Line 14:     return $wnd.baseContextPath;
Line 15:     }-*/;
Line 16: 
Line 17:     private native String getValue() /*-{
Line 18:     return this.baseContextPath;
Minor thing, see my comment in GwtDynamicHostPageServlet.java, this could be:

 return this.value;

By the way, getValue method can be safely marked as public, not sure we need an 
extra getPath method.
Line 19:     }-*/;
Line 20: 
Line 21:     public String getPath() {
Line 22:         return getValue();


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I9cb4822f6bf4d372715e12858635db5ed3edd115
Gerrit-PatchSet: 14
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alexander Wels <aw...@redhat.com>
Gerrit-Reviewer: Alexander Wels <aw...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Einav Cohen <eco...@redhat.com>
Gerrit-Reviewer: Frank Kobzik <fkob...@redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gsher...@redhat.com>
Gerrit-Reviewer: Itamar Heim <ih...@redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skriva...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbona...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
Gerrit-Reviewer: Yaniv Dary <yd...@redhat.com>
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

Reply via email to