listmonk icon indicating copy to clipboard operation
listmonk copied to clipboard

Campaign editor images "expired" when returning to a draft

Open kontur opened this issue 1 year ago • 8 comments

Version:

  • listmonk: not sure, installed from docker image <2mo ago
  • OS: not sure

Description of the bug and steps to reproduce: When returning to a campaign draft previously added images appear blank in the editor. When inspecting with right-click and revealing the image URL I get an expired resource. In the media view I can see the same image still present and inspecting it from there the link opens just fine.

Screenshots: The image in the media gallery where it shows just fine: Screenshot 2024-05-28 at 11 20 46

The editor view of the campaign draft missing the images: Screenshot 2024-05-28 at 11 21 08

The editor view image detail of the missing image: Screenshot 2024-05-28 at 11 20 56

kontur avatar May 28 '24 08:05 kontur

Could you please share a screenshot of your S3 settings (Settings -> Media)?

knadh avatar May 28 '24 09:05 knadh

Screenshot 2024-05-28 at 14 41 33

Does the greyed out 14d mean that is the default? And if so, why are those still showing in the Media browser then?

kontur avatar May 28 '24 11:05 kontur

That's a placeholder on the empty field. Can you try entering a value like "14d" and see if the issue persists?

knadh avatar May 28 '24 11:05 knadh

Just adding the 14d, saving, and viewing the existing campaign draft again the result is the same.

(Optional) Specify expiry for the generated presigned URL. Only applicable for private buckets (s, m, h, d for seconds, minutes, hours, days).

  • What even does this mean, exactly? Any upload, uploads I am viewing but haven't sent in an campaign, ...?
  • Also, is the default "infinite" as I'd expect?
  • Why would the media gallery show the preview, but not the campaign editor?

kontur avatar May 28 '24 14:05 kontur

These are S3 specific parameters (Signed URLs) for private buckets, where the files are private and publicly accessible only for a certain period of time. No value there implies no expiry, so I'm unsure what's causing this behaviour. Setting a value there and testing would help. Media gallery vs campaign editor, again, I'm unsure. Need to investigate this.

knadh avatar May 29 '24 05:05 knadh

Okay, roger that. Thanks for looking into it. The initial expiry value in the settings definitely was unset, so it would use whatever it defaults to. Let me know if there is something I can test in the meantime.

Also, what does this expiry mean for assets once a newsletter gets sent? Will they also expire e.g. after 2 weeks when recipients open their emails?

kontur avatar May 29 '24 07:05 kontur

This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.

github-actions[bot] avatar Aug 28 '24 01:08 github-actions[bot]

This is still unclear in the UI.

kontur avatar Aug 28 '24 10:08 kontur

This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.

github-actions[bot] avatar Nov 27 '24 02:11 github-actions[bot]