Closed aro closed 6 years ago
Hi ! Is there any news about this bug ?
Hi @navyhod The issue has been fixed and it will be included in 6.13 release. It's available in the latest snapshot from XP, in the master branch. But that is not stable, and must not be used in production.
Steps to reproduce issue:
contentLib.modify
will always fail with an exceptionThe problem is that
AttachmentUploaderType
usesReference
as underlying type. When trying to convert from the JavaScript string type to aReference
it fails because aReference
is a wrapper for aNodeId
, andNodeId
allows a limited set of characters.Is it correct that
AttachmentUpload
is based on aReference
? Shouldn't it have beenBinaryReference
?This was reported in Discuss: https://discuss.enonic.com/t/unable-to-edit-object-with-attachment-with-content-modify/1285
Stack trace: