BinaryExporterServlet not working with assets that have non-UUID inode
In demo you can create rest URLs like this
http://demo.dotcms.com/contentAsset/image/136fbb3d-90b8-4662-9ecc-e785ac13b000/fileAsset/byInode/1/filter/Resize/resizew/500/resizeh/200
The non-working case is when the inode come from an old db like 56767 AND is a file_asset
Look at com.dotmarketing.image.filter.ImageFilter line 168 I have try changing the regexp to
``Java inode = RegEX.find(file.getCanonicalPath(), "([\w]{8}(-[\w]{4}){3}-[\w]{12})|(\d+\.\w+$)").get(0).getMatch();``
But still it doesn't work. Maybe we have to fix in other places
Reproduced on Healthone staging server (2.1.1). See URL
http://test.spaldingrehab.com/contentAsset/image/148053/fileAsset/byInode/1/filter/Resize/resize_w/637/resize_h/276
The image exists (checked on backend and DB) and we can pull it by using the old resize_image servlet. This issue only happens for file assets that have a non-UUID inode (old file assets form 1.7).