[Yanel-commits] rev 34718 -
public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager
michi at wyona.com
michi at wyona.com
Thu Apr 3 11:11:41 CEST 2008
Author: michi
Date: 2008-04-03 11:11:40 +0200 (Thu, 03 Apr 2008)
New Revision: 34718
Modified:
public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java
Log:
namespace fixed
Modified: public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java 2008-04-03 09:11:17 UTC (rev 34717)
+++ public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java 2008-04-03 09:11:40 UTC (rev 34718)
@@ -38,7 +38,9 @@
// For example ?policy-path=/foo/bar.html
String policyPath = request.getParameter(PARAMETER_EDIT_PATH);
if (policyPath == null) {
- log.error("No policy path specified! Please specify a policy path, e.g. ?policy-path=/foo/bar.html");
+ log.warn("No policy path specified, e.g. ?policy-path=/foo/bar.html");
+ log.warn("Request path used as default: " + getPath());
+ policyPath = getPath();
}
// For example ?yanel.policy=read
String policyUsecase = "read";
@@ -99,7 +101,7 @@
sb.append("<body><h1>Update Access Policy</h1><p><script language=\"javascript\">var getURLs = {\"identities-url\": \"" + identitiesURL + "\", \"policy-url\": \"../.." + getPath() + "?policy-path=" + policyPath + "&yanel.policy=update&get=policy\", \"cancel-url\": \"" + cancelURL + "\", \"save-url\": \"" + saveURL + "\"};</script><script language=\"javascript\" src=\"" + backToRealm + getYanel().getReservedPrefix() + "/org.wyona.security.gwt.accesspolicyeditor.AccessPolicyEditor/org.wyona.security.gwt.accesspolicyeditor.AccessPolicyEditor.nocache.js\"></script></p></body></html>");
}
} else {
- sb.append("<html><body>Policy usecase not implemented yet: " + policyUsecase + "</body></html>");
+ sb.append("<html xmlns=\"http://www.w3.org/1999/xhtml\"><body>Policy usecase not implemented yet: " + policyUsecase + "</body></html>");
}
} catch(Exception e) {
log.error(e, e);
More information about the Yanel-commits
mailing list