Attachment thumbnail in activity log

petterbj_rgmo
Tera Contributor

Hi all,

On incident task we are showing attachments in the activity log. Normally, when a user has uploaded an attachment, he is supposed to be able to preview this in the activity log. For some reason, this does not work in our instance. Instead it looks like this:

find_real_file.png

When I am clicking the thumbnail, I get this image;

find_real_file.png

Again, If i click the thumbnail when standing in this window I am redirected to a url that looks like this:

https://instance_name/*sys_id*.iix

What is this IIX request? Can someone explain this?

Best regards,

Petter

9 REPLIES 9

Hi Chuck,



Yes, I am aware of this and I have been able to identify the error. The error is related to a before query which is working together with the ACL's on the sys_attachment table. For some reason the use of my before query is causing trouble with the pre-view in the activity log. There is no issues with the ACL's after i debugged security, and I also verified that the attachment actually is created with the correct table_name and table_sys_id.



I will have to investigate further.



I was wondering if you could give some more explanation towards the .iix extention? I am not quite sure I understand what Sergiu is trying to explain. Anyways, thanks for the help. 🙂



Best regards,
Petter


Hi Petter,



We have a processor that takes images from sys_attachment and renders inline image content (for which we add the extension .iix). The image itself is still stored in sys_attachment as jpeg/png/etc content.



Hope this helps.


Hi Sergiu,



Yes, it absolutely does. Thank you


FWIW, Jakarta introduces some notification features that relate to this. One of them is the ability to help prevent those tiny images in people's email signatures from cluttering up your attachments list on the target record.How many "signature.jpg" files you do you really need anyway?



With a couple properties, you can indicate a minimum file size (e.g. 40K) and what action you want to take on it (leave it as an attachment on the target record, leave it on the email, or just keep it on the system as a reference so you don't get broken JPG images.) Neat feature. Keep an eye out for it.


Rameswar1
ServiceNow Employee
ServiceNow Employee

You may run into such issues if there is an encryption context associated with the image attached, the thumbnail shows up broken even for users who have the encryption role.

To enable thumbnail creation, the property "glide.image_provider.security_enabled" should be present and that should be set to "true".

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0754990