cancel
Showing results for 
Search instead for 
Did you mean: 

category names not changing

nuga
Champ in-the-making
Champ in-the-making
perhaps i should log this as a defect.. or maybe it is intentional?

but when you change the category name of anything. It doesn't actually change the "name" you can query it by.

My example is that I have a category named - "DownloadableType"
and i renamed it to "Downloadable Type"

if i tried to look up anything by the name of "Downloadable Type" using webservices.. it tanks because it can't find "Downloadable Type"

Even though the "display name" says Downloadable Type
the actual alfresco node name using the node browser says

{http://www.alfresco.org/model/content/1.0}DownloadableType   workspace://SpacesStore/ee0f22c4-a0dc-11db-8df6-653fb0f9f343   true   {http://www.alfresco.org/model/content/1.0}subcategories   3


i looked it up using the node browser
2 REPLIES 2

nuga
Champ in-the-making
Champ in-the-making

rpldcox
Champ in-the-making
Champ in-the-making
This appears to have a very awkward result. (I am using version 1.4.)

(1) I am using the Classification web service to retrieve the names of all of the categories in the repository. (2) I then use the names just found to make a list of categories presented to the user in my application. The user selects a category and then I run a query to retrieve all documents marked by that category, again using a web service.

However, it seems that the category name I need to use in step 2 above is the name specified when the category was first created. This will be different from the name returned in step 1 if the category has been renamed and so my search fails.

E.g. the user selects the category "Cars" from my list. This is the name of the category now, but when first entered it was called "Automobiles". I run my search on "Cars" and nothing is returned. If I had used "Automobiles" instead, the query would have returned the expected result.

As a workaround, I tried to find a way to retrieve the original name for a category, but have not been successful - perhaps someone else knows a way to do that Smiley Happy. As the project is not live yet, I can delete all of the categories and enter them again with their correct names - however, it could easily happen that we will want to change a name in the future and then we have a problem.