Sorry if this topic allready exists but no luck searching…. also sorry for me poor english
Im trying to register node updates (node properties updates really) in an external php app. Comunications are made via REST. So I implemented a custom behaviour with java for onUpdateProperties and onUpdateNode policies. The code calls the external app to register the new properties vlaues. It works fine when updating any propierties but not for cm:name, which is quite critic for the integration. The new value for cm:name cames like this
Can't see anything wrong with your code. Is that the new name? Check the node in the node browser to see what the cm:name property is after the update.
I'm updating throught Share, normal operation with the edit properties ui action. The new name is not that, I tried with dummy things like
before.txt and after.txt
and I allways get an ugly hexadecimal string
The only "diferent" thing from a normal Alfresco Share instalation is that I'm authenticating in Share with and custom external cookie based SSOAuthenticationFilter, i guess that's nothing to do with my issue….
This is debug output from one try (old_name=AC Stairs.dwf , new_name=Stairs.dwf)
I forget to mention that after every test I can see the correct value of cm:name in the node browser, it looks to me like the value returned in the behaviour is an intermediate/temporal name ….