Forums | Mahara Community
Support
/
Pictures in Textblocks disappear and appear.
25 January 2022, 21:59
Dear Mahara Team,
Students told me that in some views individual images cannot be displayed from time to time. Some hours later or a day later the pictures appears again.
I know this sounds strange but I have found in the accesslog the confirmation:
[18/Jan/2022:19:25:11 +0100] "GET /artefact/file/download.php?file=81355&view=11434&embedded=1&text=86400 HTTP/1.1" 403 23196 "https://imbmahara.donau-uni.ac.at/view/view.php?id=11434" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
I found in the same access log others to the picture. Maybe it could help.
[18/Jan/2022:20:29:21 +0100] "GET /artefact/file/download.php?file=81355&embedded=1&text=86400 HTTP/1.1" 403 23762 "https://imbmahara.donau-uni.ac.at/view/blocks.php?id=11434" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62"
[18/Jan/2022:20:29:29 +0100] "GET /artefact/file/download.php?file=81355&embedded=1&text=86400 HTTP/1.1" 303 3352 "-" "Mozilla/4.0 (compatible; ms-office; MSOffice 16)"
[18/Jan/2022:20:29:29 +0100] "GET /artefact/file/download.php?file=81355&embedded=1&text=86400&login HTTP/1.1" 200 6144 "-" "Mozilla/4.0 (compatible; ms-office; MSOffice 16)"
The pictures are insert in a textblock.
Do you have any idea where I should search?
Mahara Version 20.10.0
Ubuntu 20.04
Php: 7.4
Postgresql: 11
Thank you very much for the help :-)
Best wishes
Gregor
31 January 2022, 17:20
Hi Gregor,
Your logs show an attempt to view a page, an attempt to edit a page a hour later, followed by an attempt to access the same page but getting redirected to the login screen. This could be a couple of things but a little more information will help to narrow it down.
- Who owns the page with the ID 11434 and what are the access permissions on that page?
- Who owns the image with the ID 81355 and is the owner the same as the owner of the
- Which students cannot view the image? Is it the owner of the page, the image, or people who want to view the page?
Can you please check this bug report on embedded images and see if this fits your scenario?
Kind regards,
Doris
02 February 2022, 5:04
Hi Doris,
Thank you for the answer. The Tip with "who is owner?" was good. In this case the student had created a group view (ID 11434) with other students. The image (ID 81355) was uploaded in the user account and not in the group but the image was embed in a Textblock in the group view! The tutor, who has reportet the problem to the students, has the right to see the page (access given to the "course" group and the tutor is a member of that).
Is it possible that this causes problems if the image was not uploaded in the group?
it is not easily to rebuild the problem but I will try it.
The bug report is similar but the images disappear and reappear by themselves after some time
Best wishes
Gregor
02 February 2022, 14:27
Hi Gregor,
This is indeed a tricky one to follow through testing as it all depends on the permissions of who can see the original image and who can't.
I'd be interested to know if you can reliably replicate the issue.
Cheers
Kristina