Alon Bar-Lev has posted comments on this change.

Change subject: userportal,webadmin: remove double slash in link
......................................................................


Patch Set 2:

(1 comment)

....................................................
File 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/utils/BaseContextPathData.java
Line 18:     return this.value;
Line 19:     }-*/;
Line 20: 
Line 21:     public String getRelativePath() {
Line 22:         String path = getPath();
Yes, this will work.

If I understand correctly, this is run by gwt... right?

Does it support File::getCanonicalPath()? if so let's use it...

If not... I would have gone with something a little more generic...

 path.replace("//", "/")

without conditional...
Line 23:         if (path.startsWith("/")) { //$NON-NLS-1$
Line 24:             path = path.substring(1);
Line 25:         }
Line 26:         return path;


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ica1ee3cce0c98dffe781b7d0e9ec5c2d667b4acd
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alexander Wels <[email protected]>
Gerrit-Reviewer: Alexander Wels <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Greg Sheremeta <[email protected]>
Gerrit-Reviewer: Vojtech Szocs <[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