09-24-2007 03:07 AM
09-26-2007 07:19 AM
09-26-2007 07:41 AM
09-26-2007 08:09 AM
09-26-2007 08:25 AM
09-27-2007 10:39 AM
09-27-2007 10:54 AM
Index: BrowseBean.java
===================================================================
— BrowseBean.java (revision 6874)
+++ BrowseBean.java (working copy)
@@ -780,7 +780,7 @@
node = new MapNode(nodeRef, this.nodeService, fileInfo.getProperties());
// only display the user has the permissions to navigate to the target of the link
NodeRef destRef = (NodeRef)node.getProperties().get(ContentModel.PROP_LINK_DESTINATION);
- if (new Node(destRef).hasPermission(PermissionService.READ) == true)
+ if (destRef != null && new Node(destRef).hasPermission(PermissionService.READ) == true)
{
node.addPropertyResolver("url", this.resolverLinkUrl);
node.addPropertyResolver("webdavUrl", this.resolverLinkWebdavUrl);
@@ -799,7 +799,7 @@
node = new MapNode(nodeRef, this.nodeService, fileInfo.getProperties());
// only display the user has the permissions to navigate to the target of the link
NodeRef destRef = (NodeRef)node.getProperties().get(ContentModel.PROP_LINK_DESTINATION);
- if (new Node(destRef).hasPermission(PermissionService.READ) == true)
+ if (destRef != null && new Node(destRef).hasPermission(PermissionService.READ) == true)
{
node.addPropertyResolver("icon", this.resolverSpaceIcon);
node.addPropertyResolver("smallIcon", this.resolverSmallIcon);
11-27-2007 06:21 AM
Steps to get the error:This seems fixed - there is no error.
1. Upload a new file (for instance, testfile.pdf) into your home space.
2. Create a new space (for instance (Test Folder) into your home space in order tu put the future link.
3. Copy the file testfile.pdf in your clipboard and then create a link into the Test Folder.
4. Delete testfile.pdf (original file, not destination!!)
After that, you can see the error: "A system error happened during the operation: NodeRef must be supplied for creation of a Node" into the "Test Folder".
11-27-2007 06:29 AM
Steps to get the error:This seems fixed - there is no error.
1. Upload a new file (for instance, testfile.pdf) into your home space.
2. Create a new space (for instance (Test Folder) into your home space in order tu put the future link.
3. Copy the file testfile.pdf in your clipboard and then create a link into the Test Folder.
4. Delete testfile.pdf (original file, not destination!!)
After that, you can see the error: "A system error happened during the operation: NodeRef must be supplied for creation of a Node" into the "Test Folder".
But destination link (with PROP_LINK_DESTINATION = null)
still exists into "Test Folder": it's visible using "webdav" style URL for instance
or via custom space traverse code.
ContentReader reader = null;
if (nodeInfo.isLink())
{
reader = fileFolderService.getReader(nodeInfo.getLinkNodeRef());
}
else
{
reader = fileFolderService.getReader(nodeInfo.getNodeRef());
}
Also I think it's quite useful to show original content length for "links" (not 0 as now) in UI.06-28-2017 03:42 AM
Hi olex, I need some help about create link using rest api,
I m using Alfresco Community 5.2. I want to create link a file(this file is in another site) to site by using REST API. But I can not find any document about this issue.
I m clicking "copy to" on myfiles folder or any site folder. And after that, it is appear a button called "create link". By clicking this button, I can create link for this document to any place. But now, I want to make this process (create link) with rest api.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.