? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
29 Jun 2019

Pull Request for Issue #23510.

Summary of Changes

This should fix using admin base path in frontend, e.g. when using Editors-XTD plugins.

Testing Instructions

Edit an article in frontend.
In editor, click CMS Content and any button (except Page Break or Read More)

Expected result

Modal with a list of items opens up.

Actual result

Modal with error appears, e.g.:

 View not found [name, type, prefix]: contacts, html, 

Documentation Changes Required

Maybe.

@mbabker @laoneo @wilsonge please review.

avatar SharkyKZ SharkyKZ - open - 29 Jun 2019
avatar SharkyKZ SharkyKZ - change - 29 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jun 2019
Category Libraries
avatar mbabker
mbabker - comment - 29 Jun 2019

All this pull request is doing is re-affirming my feeling that it is time to deprecate having separate extensions per application (minus templates). Because there are more hacks to "proxy" things than benefits this separation really brings.

avatar SharkyKZ
SharkyKZ - comment - 29 Jun 2019

If this is about the messy code, it seems to be here for B/C-ish reasons. We could stop using base_path configuration option in J4 components and just pass the appropriate prefix everywhere. Similarly like suggested here #23539 (comment).

avatar SharkyKZ SharkyKZ - change - 29 Jun 2019
Labels Added: ?
avatar twister65 twister65 - test_item - 6 Jul 2019 - Tested successfully
avatar twister65
twister65 - comment - 6 Jul 2019

I have tested this item successfully on cb8d6cc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25367.

avatar alikon alikon - test_item - 6 Jul 2019 - Tested successfully
avatar alikon
alikon - comment - 6 Jul 2019

I have tested this item successfully on cb8d6cc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25367.

avatar richard67
richard67 - comment - 6 Jul 2019

I have tested this item successfully on cb8d6cc

It seems that some backend language filesa are not loaded in the modals, but I think that's another issue and not subject of this PR, right?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25367.

avatar richard67 richard67 - test_item - 6 Jul 2019 - Tested successfully
avatar alikon
alikon - comment - 6 Jul 2019

i suppose so

avatar alikon alikon - change - 6 Jul 2019
Status Pending Ready to Commit
avatar alikon
alikon - comment - 6 Jul 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25367.

avatar SharkyKZ
SharkyKZ - comment - 6 Jul 2019

@richard67, yes. Related issue #25344.

avatar richard67
richard67 - comment - 6 Jul 2019

@SharkyKZ Ha, I knew there was something like that. Other question. Are you still waiting for requested reviews, or are the good tests sufficient for you?

avatar rdeutz rdeutz - change - 6 Jul 2019
Labels Added: ?
avatar SharkyKZ
SharkyKZ - comment - 6 Jul 2019

It's up to maintainers now. Though I agree with @mbabker this is a rather ugly hack. We can probably do better here.

avatar richard67
richard67 - comment - 6 Jul 2019

Sure, but as far as I understand him, the right way would be far beyond the scope of this PR, and so I think this "ugly hack" is ok as a bug fix right now. Medium or long term we should really think over if this admin site thing still makes sense for plugins, modules, packages, and components, if I understand him right.

avatar richard67
richard67 - comment - 6 Jul 2019

We already have other ugly hacks for the same reason, see e.g. my PR #25404 .

avatar SharkyKZ
SharkyKZ - comment - 6 Jul 2019

I don't think that PR was a hack. But even if it was, it's not an excuse to add more hacks.

avatar richard67
richard67 - comment - 6 Jul 2019

Depends ... if adding hacks means more consistency because existing code is alrerady full of hacks it could make sense ? (attention, sarcastic joke)

avatar SharkyKZ
SharkyKZ - comment - 6 Jul 2019

Sure, but as far as I understand him, the right way would be far beyond the scope of this PR

We could do it here. This PR really just moves some existing code around. The code that was initially added for B/C reasons, so we wouldn't have to set prefixes per component. We could remove this code from MVC library and set correct prefixes in components. But this would affect 3rd party components as they would also have to do the same.

avatar richard67
richard67 - comment - 6 Jul 2019

I see.

avatar wilsonge wilsonge - change - 23 Jul 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-23 18:39:02
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 23 Jul 2019

Thanks!

Actually spent some time on this and the fix looks cleaner to me than what we had before too

Add a Comment

Login with GitHub to post a comment