04-17-2020 05:02 AM
Hi all,
we have ACS 5.2.3 installed and have an issue when copying nodes using rules or scripts.
We have noticed that when a node is copied the new target node is not named after the source node. The cn:name is the nodeid.
This does not happen if we select in Alfresco Share and copy.
Has anyone else seen this issue and knows of a fix?
Thank you.
08-26-2020 03:52 AM
Thank you afaust. Sorry about the delayed response. I hadn't seen a message in my email.
The issue appeared to be due to some misconfiguration on the Alfresco server. Everything was working, and then suddenly for no apparent reason the ID issue appeared. It then disappeared again and then reappeared. There had been changes made to configuration files of which I was unaware. This was later resolved by the support company who had added new tools to the system :-(.
04-17-2020 08:03 AM
This is not really an issue, but rather a different behaviour for different APIs in use. The CopyService Java API has a copy and a copyAndRename operation. The simple copy operation will drop the name, so it defaults to the ID.
If your scripts use the ScriptNode.copy operation, they should internally be using copyAndRename, and then it would be a bug if the name is not based on the source node. This is also what Alfresco Share uses indirectly to perform a copy. If your scripts / rules somehow use (custom) Java code that uses the simple copy operation, then it's not a bug, rather the incorrect operations are used.
08-26-2020 03:52 AM
Thank you afaust. Sorry about the delayed response. I hadn't seen a message in my email.
The issue appeared to be due to some misconfiguration on the Alfresco server. Everything was working, and then suddenly for no apparent reason the ID issue appeared. It then disappeared again and then reappeared. There had been changes made to configuration files of which I was unaware. This was later resolved by the support company who had added new tools to the system :-(.
08-26-2020 04:50 AM
Hi @CologneClaret ,
Glad you have it sorted & thanks for updating your post - helpful to other users.
Take care,
Explore our Alfresco products with the links below. Use labels to filter content by product module.