");
- out.write(formName);
+ out.write(Utils.encode(formName));
out.write("
");
- out.write(formPath);
+ out.write(Utils.encode(formPath));
out.write("
;
out.write(context.getExternalContext().getRequestContextPath());
if (generatedFilesExpanded)
@@ -719,9 +719,9 @@ public class UILinkValidationReport extends AbstractLinkValidationReportComponen
String fileId = "file" + Integer.toString((filePath + fileName).hashCode());
out.write("<div class=)
");
- out.write(fileName);
+ out.write(Utils.encode(fileName));
out.write("
");
- out.write(filePath);
+ out.write(Utils.encode(filePath));
out.write("
");
if (brokenLinks != null && brokenLinks.length() > 0)
diff --git a/source/java/org/alfresco/web/ui/wcm/component/UIPendingSubmissions.java b/source/java/org/alfresco/web/ui/wcm/component/UIPendingSubmissions.java
index cf47b002f6..bbaf3a6237 100644
--- a/source/java/org/alfresco/web/ui/wcm/component/UIPendingSubmissions.java
+++ b/source/java/org/alfresco/web/ui/wcm/component/UIPendingSubmissions.java
@@ -258,11 +258,11 @@ public class UIPendingSubmissions extends SelfRenderingComponent
requestMap.remove(REQUEST_TASKTYPE);
out.write("
");
- out.write(label);
+ out.write(Utils.encode(label));
out.write(" | ");
out.write(submitted);
out.write(" | ");
- out.write(username);
+ out.write(Utils.encode(username));
out.write(" | ");
out.write(launch);
out.write(" | ");
diff --git a/source/java/org/alfresco/web/ui/wcm/component/UISandboxSnapshots.java b/source/java/org/alfresco/web/ui/wcm/component/UISandboxSnapshots.java
index 7a15a691e4..39362db63b 100644
--- a/source/java/org/alfresco/web/ui/wcm/component/UISandboxSnapshots.java
+++ b/source/java/org/alfresco/web/ui/wcm/component/UISandboxSnapshots.java
@@ -256,13 +256,13 @@ public class UISandboxSnapshots extends SelfRenderingComponent
int version = item.getVersionID();
out.write("");
- out.write(item.getTag());
+ out.write(Utils.encode(item.getTag()));
out.write(" | ");
- out.write(item.getDescription() != null ? item.getDescription() : "");
+ out.write(item.getDescription() != null ? Utils.encode(item.getDescription()) : "");
out.write(" | ");
out.write(df.format(new Date(item.getCreateDate())));
out.write(" | ");
- out.write(item.getCreator());
+ out.write(Utils.encode(item.getCreator()));
out.write(" | ");
out.write(Integer.toString(version));
out.write(" | ");
@@ -286,7 +286,6 @@ public class UISandboxSnapshots extends SelfRenderingComponent
params.put("sandbox", sandbox);
params.put("version", "#{" + REQUEST_SNAPVERSION + "}");
action = createAction(context, sandbox, ACT_SNAPSHOT_REVERT, "/images/icons/revert.gif", "#{AVMBrowseBean.revertSnapshot}", null, null, params);
-
}
requestMap.put(REQUEST_SNAPVERSION, Integer.toString(item.getVersionID()));
@@ -323,11 +322,10 @@ public class UISandboxSnapshots extends SelfRenderingComponent
out.write(" ");
// Compare To Current Snapshot
-
action = findAction(ACT_SNAPSHOT_COMPARE_TO_CURRENT, sandbox);
if (action == null)
{
- Map params = new HashMap(2, 1.0f);
+ Map params = new HashMap(4, 1.0f);
params.put("sandbox", sandbox);
params.put("store", sandbox);
params.put("version", "#{" + REQUEST_SNAPVERSION + "}");
@@ -357,7 +355,7 @@ public class UISandboxSnapshots extends SelfRenderingComponent
Utils.encodeRecursive(context, action);
}
out.write(" ");
- // //Compare To Any Snapshot
+ // Compare To Any Snapshot
action = findAction(ACT_SNAPSHOT_COMPARE_TO_ANY, sandbox);
if (action == null)
{
diff --git a/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java b/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java
index 203e120597..a37b72d383 100644
--- a/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java
+++ b/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java
@@ -435,7 +435,7 @@ public class UIUserSandboxes extends SelfRenderingComponent implements Serializa
out.write("");
out.write(bundle.getString(MSG_USERNAME));
out.write(": ");
- out.write(username);
+ out.write(Utils.encode(username));
}
else
{
@@ -813,7 +813,7 @@ public class UIUserSandboxes extends SelfRenderingComponent implements Serializa
out.write(Utils.buildImageTag(fc, FileTypeImageUtils.getFileTypeImage(fc, name, true), ""));
out.write(" | ");
out.write(linkPrefix);
- out.write(name);
+ out.write(Utils.encode(name));
UIAVMLockIcon lockIcon = (UIAVMLockIcon)fc.getApplication().createComponent(
UIAVMLockIcon.ALFRESCO_FACES_AVMLOCKICON);
lockIcon.setId("avmlock_" + Integer.toString(rowIndex));
@@ -825,7 +825,7 @@ public class UIUserSandboxes extends SelfRenderingComponent implements Serializa
{
out.write(Utils.buildImageTag(fc, SPACE_ICON, 16, 16, ""));
out.write(" | ");
- out.write(name);
+ out.write(Utils.encode(name));
}
out.write(" | ");
@@ -871,14 +871,14 @@ public class UIUserSandboxes extends SelfRenderingComponent implements Serializa
{
out.write(Utils.buildImageTag(fc, FileTypeImageUtils.getFileTypeImage(fc, name, true), ""));
out.write(" | ");
- out.write(name + " [" + bundle.getString(MSG_DELETED_ITEM) + "]");
+ out.write(Utils.encode(name) + " [" + bundle.getString(MSG_DELETED_ITEM) + "]");
out.write("");
}
else
{
out.write(Utils.buildImageTag(fc, SPACE_ICON, 16, 16, ""));
out.write(" | ");
- out.write(name + " [" + bundle.getString(MSG_DELETED_ITEM) + "]");
+ out.write(Utils.encode(name) + " [" + bundle.getString(MSG_DELETED_ITEM) + "]");
}
out.write(" | ");
@@ -959,10 +959,10 @@ public class UIUserSandboxes extends SelfRenderingComponent implements Serializa
{
out.write(" | ");
String title = (String)f.getTitle();
- out.write(title != null ? title : "");
+ out.write(title != null ? Utils.encode(title) : "");
out.write(" | ");
String desc = (String)f.getDescription();
- out.write(desc != null ? desc : "");
+ out.write(desc != null ? Utils.encode(desc) : "");
out.write(" | ");
// set the form-id into the request scope for actions data binding
diff --git a/source/web/WEB-INF/alfresco.tld b/source/web/WEB-INF/alfresco.tld
index 7b49b60843..4995e522ed 100644
--- a/source/web/WEB-INF/alfresco.tld
+++ b/source/web/WEB-INF/alfresco.tld
@@ -397,6 +397,18 @@
false
true
+
+
+ dataPagerType
+ false
+ true
+
+
+
+ displayInput
+ false
+ true
+
diff --git a/source/web/WEB-INF/faces-config-beans.xml b/source/web/WEB-INF/faces-config-beans.xml
index 6889513643..a33a05db71 100644
--- a/source/web/WEB-INF/faces-config-beans.xml
+++ b/source/web/WEB-INF/faces-config-beans.xml
@@ -481,6 +481,43 @@
+ The bean that backs up the Delete Space Association Dialog
+
+ DeleteSpaceAssociationDialog
+ org.alfresco.web.bean.spaces.DeleteSpaceAssociationDialog
+ session
+
+ nodeService
+ #{NodeService}
+
+
+ fileFolderService
+ #{FileFolderService}
+
+
+ searchService
+ #{SearchService}
+
+
+ navigator
+ #{NavigationBean}
+
+
+ browseBean
+ #{BrowseBean}
+
+
+ dictionaryService
+ #{DictionaryService}
+
+
+ namespaceService
+ #{NamespaceService}
+
+
+
+
+
The bean that manages a users Clipboard state.
ClipboardBean
@@ -3599,6 +3636,43 @@
+ The bean that backs up the Delete Content Association Dialog
+
+ DeleteContentAssociationDialog
+ org.alfresco.web.bean.content.DeleteContentAssociationDialog
+ session
+
+ nodeService
+ #{NodeService}
+
+
+ fileFolderService
+ #{FileFolderService}
+
+
+ searchService
+ #{SearchService}
+
+
+ navigator
+ #{NavigationBean}
+
+
+ browseBean
+ #{BrowseBean}
+
+
+ dictionaryService
+ #{DictionaryService}
+
+
+ namespaceService
+ #{NamespaceService}
+
+
+
+
+
The bean that backs up the Delete AVM Folder Dialog
DeleteFolderDialog
diff --git a/source/web/jsp/content/create-content-wizard/details.jsp b/source/web/jsp/content/create-content-wizard/details.jsp
index db1ceefc5c..9c8d7ba157 100644
--- a/source/web/jsp/content/create-content-wizard/details.jsp
+++ b/source/web/jsp/content/create-content-wizard/details.jsp
@@ -62,7 +62,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("wizard:wizard-body:file-name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/forums/create-dialog.jsp b/source/web/jsp/forums/create-dialog.jsp
index e60b3f3a60..6c8e4c5075 100644
--- a/source/web/jsp/forums/create-dialog.jsp
+++ b/source/web/jsp/forums/create-dialog.jsp
@@ -61,7 +61,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("dialog:dialog-body:name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/forums/create-topic-dialog.jsp b/source/web/jsp/forums/create-topic-dialog.jsp
index 2700c2c05d..3a5420feb5 100644
--- a/source/web/jsp/forums/create-topic-dialog.jsp
+++ b/source/web/jsp/forums/create-topic-dialog.jsp
@@ -62,7 +62,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("dialog:dialog-body:name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/spaces/create-space-dialog.jsp b/source/web/jsp/spaces/create-space-dialog.jsp
index 446ce8fe42..28c5ce1c41 100644
--- a/source/web/jsp/spaces/create-space-dialog.jsp
+++ b/source/web/jsp/spaces/create-space-dialog.jsp
@@ -61,7 +61,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("dialog:dialog-body:name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/spaces/create-space-wizard/details.jsp b/source/web/jsp/spaces/create-space-wizard/details.jsp
index 8f3a61917f..91def2d87b 100644
--- a/source/web/jsp/spaces/create-space-wizard/details.jsp
+++ b/source/web/jsp/spaces/create-space-wizard/details.jsp
@@ -84,7 +84,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("wizard:wizard-body:name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/spaces/delete-space.jsp b/source/web/jsp/spaces/delete-space.jsp
index 10e832fd4d..557a5422f5 100644
--- a/source/web/jsp/spaces/delete-space.jsp
+++ b/source/web/jsp/spaces/delete-space.jsp
@@ -51,6 +51,24 @@
+
+
+ <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "yellowInner", "#ffffcc"); %>
+
+ <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellowInner"); %>
+
+
+
+
diff --git a/source/web/jsp/wcm/create-folder-dialog.jsp b/source/web/jsp/wcm/create-folder-dialog.jsp
index c14e3f25f9..56a116eea0 100644
--- a/source/web/jsp/wcm/create-folder-dialog.jsp
+++ b/source/web/jsp/wcm/create-folder-dialog.jsp
@@ -60,7 +60,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("dialog:dialog-body:name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/wcm/create-web-content-wizard/details.jsp b/source/web/jsp/wcm/create-web-content-wizard/details.jsp
index 4cee018641..c0d9ecff0d 100644
--- a/source/web/jsp/wcm/create-web-content-wizard/details.jsp
+++ b/source/web/jsp/wcm/create-web-content-wizard/details.jsp
@@ -62,7 +62,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("wizard:wizard-body:file-name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/wcm/create-webapp.jsp b/source/web/jsp/wcm/create-webapp.jsp
index 1ddcb0427e..a7a28963de 100644
--- a/source/web/jsp/wcm/create-webapp.jsp
+++ b/source/web/jsp/wcm/create-webapp.jsp
@@ -60,7 +60,7 @@
{
finishButtonPressed = false;
return validateName(document.getElementById("dialog:dialog-body:name"),
- '',
+ decodeURI(''),
true);
}
else
diff --git a/source/web/jsp/wcm/create-website-wizard/details.jsp b/source/web/jsp/wcm/create-website-wizard/details.jsp
index caee690cf2..507b89aaae 100644
--- a/source/web/jsp/wcm/create-website-wizard/details.jsp
+++ b/source/web/jsp/wcm/create-website-wizard/details.jsp
@@ -64,13 +64,13 @@
{
finishButtonPressed = false;
var valid = validateName(document.getElementById("wizard:wizard-body:name"),
- '',
+ decodeURI(''),
true);
if (valid == true)
{
valid = validateRegex(document.getElementById("wizard:wizard-body:dnsname"),
"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$", true, null,
- '', true);
+ decodeURI(''), true);
}
return valid;
}
diff --git a/source/web/scripts/ajax/common.js b/source/web/scripts/ajax/common.js
index d3f309d52c..23ca708289 100644
--- a/source/web/scripts/ajax/common.js
+++ b/source/web/scripts/ajax/common.js
@@ -53,8 +53,15 @@ function handleErrorDojo(type, errObj)
*/
function handleErrorYahoo(e)
{
- // TODO: Show a nicer error page, an alert will do for now!
- alert(e.status + " : " + e.statusText);
+ if (e.status == 401)
+ {
+ document.location = window.location.protocol + "//" + window.location.host + getContextPath();
+ }
+ else
+ {
+ // TODO: Show a nicer error page, an alert will do for now!
+ alert(e.status + " : " + e.statusText);
+ }
}
/**
diff --git a/source/web/scripts/ajax/yahoo-tree.js b/source/web/scripts/ajax/yahoo-tree.js
index f78b58efa7..ac361852e4 100644
--- a/source/web/scripts/ajax/yahoo-tree.js
+++ b/source/web/scripts/ajax/yahoo-tree.js
@@ -62,10 +62,17 @@ function loadDataForNode(node, onCompleteCallback)
},
failure: function(o)
{
- handleErrorYahoo("Error: Failed to retrieve children for node: " + o.argument[0].data.nodeRef);
-
- // execute the callback method
- o.argument[1]();
+ if (o.status == 401)
+ {
+ document.location = window.location.protocol + "//" + window.location.host + getContextPath();
+ }
+ else
+ {
+ handleErrorYahoo("Error: Failed to retrieve children for node: " + o.argument[0].data.nodeRef);
+
+ // execute the callback method
+ o.argument[1]();
+ }
},
argument: [node, onCompleteCallback]
}
| |