Can you try doing this:
Document d = getDocument(); d.getProperties().put("test", "test"); d.save();
I'm thinking that you're just missing a call to save().
Cool yeah that worked - I had originally called save earlier but it didn't work since I was using the getDocument() document object instead of the one returned from DocumentManager and must've forgotten to try it again - but seems to work now. But now I'm seeing a similar type of issue in overriding docversiondeleteaction execute method since if a version gets deleted, we want the extended properties associated with that version cleared from db as well. Doing the same thing as in restore action - call super.execute() then
JiveContext systemContext = JiveApplication.getContext(AuthFactory.getSystemAuthToken());
DocumentManager dm = systemContext.getDocumentManager();
Document doc = dm.getDocument(getDocument().getDocumentID());
I added logging before doc.save() with doc.getProperties().get(key-version) output which is correctly returning null but then when I actually delete a version and then call getDocument().getProperties().get(key-deletedversion) in an ftl it still returns the old value fine and doesn't give the undefined expression error it should. Any thoughts as to what might cause this? Thanks
Really? You delete the version:
and then after the version is deleted you're stilling seeing the properties from that version around? That's a bug if so.