You want to replace an image in DAM by uploading an image with the same name on your desktop. In the DAM UI, you click on new and browse your desktop to upload an image (with same name as one already in the DAM). After allowing the DAM image to be replaced, the following error is thrown:
Cannot move JcrNodeResource, type=nt:file, path=/tmp/asset1272638951270 to /var/dam/banner.gif: destination exists
Furthermore, the original image gets deleted from
/var/dam, but the new image does not get uploaded in its place.
The issue has been fixed in CQ 5.3. As a workaround for the current environment, the following two options are available: