Project

General

Profile

Actions

Bug #22066

closed

Images in wpdiscuz comments don't appear as expected

Added by Boone Gorges about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
S3 Uploads
Target version:
Start date:
2025-02-11
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Following up on https://redmine.gc.cuny.edu/issues/22034#note-6

The problem here appears to be specific to comments created using the wpdiscuz plugin. Marilyn, can you please get more information on how to insert an image in a comment? Maybe I'm missing something obvious, but I don't see an 'image' or 'attachment' button. See screenshot.

Technical note. The reporter's site has comments with image paths like:

https://s3.amazonaws.com/files.commons.gc.cuny.edu/wp-content/blogs.dir/35571/files/2025/02/desktop-Aticasmall-1738967759.0601-300x188.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZUO33UBRWHMWHNJB%2F20250211%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250211T185603Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21600&X-Amz-Signature=b29db9cfabfed9b49983d7d77f6ed757406c52a849cb697e887c3ee1ffffd312

No such images exist in S3. I see images with paths like:

02/desktop-Aticasmall-150x150.png
02/desktop-Aticasmall-300x188.png
02/desktop-Aticasmall-624x390.png
02/desktop-Aticasmall.png

which implies that something in the upload pipeline is causing a suffix to be appended (desktop-Aticasmall-1738967759.0601-300x188.png). But since I can't understand how images are added to comments in the first place, it's not clear to me how or where this is taking place.


Files


Related issues

Related to CUNY Academic Commons - Support #22034: Images don't appear in Classic EditorResolvedBoone Gorges2025-02-09

Actions
Actions #1

Updated by Boone Gorges about 1 month ago

  • Description updated (diff)
Actions #2

Updated by Boone Gorges about 1 month ago

  • Related to Support #22034: Images don't appear in Classic Editor added
Actions #3

Updated by Marilyn Weber about 1 month ago

I've asked and will update ASAP.

Actions #4

Updated by Marilyn Weber about 1 month ago

He replies
Here is a screenshot of what is seen when replying to a comment. As you can see from the screen shot, there is an option to click on the image icon to attach an image.

Actions #5

Updated by Boone Gorges about 1 month ago

  • Category name set to S3 Uploads
  • Status changed from New to Resolved
  • Target version set to 2.5.3

Thanks for the screenshot.

I was able to identify the several ways in which wpdiscuz is incompatible with s3-uploads. Technical details are in the commit message https://github.com/cuny-academic-commons/cac/commit/bcd70ac48c33f91353b9c940f2500a40682cbc73 The change is now deployed and images should work in wpdiscuz comments. Note that the change may only apply to newly-posted comments; those broken images from the screenshots will likely continue to be broken.

Actions

Also available in: Atom PDF