Image is inserted into content
Nothing happens.
Using browser console in Firefox shows [HTTP/1.1 403 Forbidden]
Joomla_4.0.0-beta8-dev-Development-Full_Package - 2021-03-18
Works if you are logged into administrator backend
Same happens on latest versions of Chrome, Edge
Labels |
Added:
J4 Issue
|
Labels |
Added:
?
|
Yes Phil, I saw your previous reports and wondered why the issue had been closed
This particular issue is maybe caused by the administrator path being hard-coded into the iamge select endpoint as follows:
file : media/system/js/fields/joomla-image-select.js
line : 195
const apiBaseUrl = ${Joomla.getOptions('system.paths').rootFull}administrator/index.php?option=com_media&format=json
;
that was changed in some places like build/media_source/system/js/fields/joomla-field-media.w-c.es6.js
in https://github.com/joomla/joomla-cms/pull/30617/files
Maybe one instance was missed.
Paging @SharkyKZ who worked on that.
Hi @PhilETaylor and @david19161. My name is Jenniline Ebai I am applying for GSOCI 2021 under the Media Manager project. I notice that this issue directly relates to the project. I will like to work on this issue and use it to get acquainted with the Media Manager Project. I have read the discussion and I have tried to understand what this issue means please can you give me some description and direction to work on this issue? Thanks
This should be a release blocker like the others were. (@infograf768 @wilsonge)
@Jenniline welcome. This might not be a good starting issue as it has history, everything you need to know is linked in this issue, and the two previous issues that have already been resolved. It might be that @SharkyKZ missed one instance of the hard coded path. I steer clear of JS in Joomla so I'll be of no help here :)
okay Thanks
Labels |
Added:
?
|
@david19161
You are correct. Taking off administrator/
in that line solves the issue.
Edit: also wrong path
diff --git a/build/media_source/system/js/fields/joomla-image-select.w-c.es6.js b/build/media_source/system/js/fields/joomla-image-select.w-c.es6.js
index b15f09b..fbc3807 100644
--- a/build/media_source/system/js/fields/joomla-image-select.w-c.es6.js
+++ b/build/media_source/system/js/fields/joomla-image-select.w-c.es6.js
@@ -191,5 +191,5 @@
}
- const apiBaseUrl = `${Joomla.getOptions('system.paths').rootFull}administrator/index.php?option=com_media&format=json`;
+ const apiBaseUrl = `${Joomla.getOptions('system.paths').baseFull}index.php?option=com_media&format=json`;
Joomla.request({
PR welcome.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-23 19:21:08 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
?
Removed: ? ? |
Labels |
Removed:
?
|
hmmm... this echos some of the media bugs I reported, and others fixed, before...
#32259
#30005
related?