mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Fix for AWC-564
- Issue where non-ASCII characters not correctly handled for a filename when the file is download as an "attachment" - This affects the download file link on the Checkout and Edit pages . New icons and UI design in grey status area for navigation in the Space, Document and Forums details pages . A few UI fix up and improvements git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2497 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -172,11 +172,11 @@ public class DownloadContentServlet extends BaseServlet
|
||||
if (attachment == true)
|
||||
{
|
||||
// set header based on filename - will force a Save As from the browse if it doesn't recognise it
|
||||
// this is better than the default response of the browse trying to display the contents!
|
||||
// TODO: make this configurable - and check it does not prevent streaming of large files
|
||||
res.setHeader("Content-Disposition", "attachment;filename=\"" + URLDecoder.decode(filename, "UTF-8") + '"');
|
||||
// this is better than the default response of the browser trying to display the contents
|
||||
String encname = filename.replace('%', '=');
|
||||
res.setHeader("Content-Disposition", "attachment;filename=\"=?ISO-8859-1?Q?" + encname + "?=\"");
|
||||
}
|
||||
|
||||
|
||||
// get the content reader
|
||||
ContentReader reader = contentService.getReader(nodeRef, propertyQName);
|
||||
// ensure that it is safe to use
|
||||
|
@@ -136,14 +136,7 @@ public class ModeListRenderer extends BaseRenderer
|
||||
String selectedImage = (String)attrs.get("selectedImage");
|
||||
if (selectedImage != null)
|
||||
{
|
||||
out.write("<td");
|
||||
int colWidth = list.getIconColumnWidth();
|
||||
if (colWidth != 0)
|
||||
{
|
||||
out.write(" width=");
|
||||
out.write(Integer.toString(colWidth));
|
||||
}
|
||||
out.write('>');
|
||||
out.write("<td style='padding-right:4px'>");
|
||||
out.write(Utils.buildImageTag(context, selectedImage, null, "absmiddle"));
|
||||
out.write("</td>");
|
||||
}
|
||||
|
@@ -86,26 +86,6 @@ public class UISpaceSelector extends AbstractItemSelector
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.ui.repo.component.AbstractItemSelector#parentAccessable()
|
||||
*/
|
||||
/*public boolean parentAccessable(FacesContext context)
|
||||
{
|
||||
boolean accessable = false;
|
||||
try
|
||||
{
|
||||
ChildAssociationRef parentRef = getNodeService(context).getPrimaryParent(
|
||||
new NodeRef(Repository.getStoreRef(), this.navigationId));
|
||||
parentRef.getParentRef().getId();
|
||||
accessable = true;
|
||||
}
|
||||
catch (AccessDeniedException accessErr)
|
||||
{
|
||||
// cannot navigate to parent id - not accessable
|
||||
}
|
||||
return accessable;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Returns the child spaces of the current space
|
||||
|
Reference in New Issue
Block a user