bug ? ? PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar chmst
chmst
12 Apr 2022

Pull Request for Issue #37545 .

Summary of Changes

Remove filter="url" for wrapper iframe url.

Testing Instructions

see issue #37545

Actual result BEFORE applying this Pull Request

Url without http(s):// gets prefix http:// automatically

Expected result AFTER applying this Pull Request

Url without prefix is possible.

Make sure that the url then is correct in frontend.

Documentation Changes Required

avatar chmst chmst - open - 12 Apr 2022
avatar chmst chmst - change - 12 Apr 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Apr 2022
Category Front End com_wrapper
avatar chmst chmst - change - 12 Apr 2022
The description was changed
avatar chmst chmst - edited - 12 Apr 2022
avatar chmst chmst - change - 12 Apr 2022
Labels Added: ?
avatar brianteeman
brianteeman - comment - 12 Apr 2022

I have tested this item ? unsuccessfully on 106b730

The autoadd functionality is now never available


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

avatar chmst
chmst - comment - 12 Apr 2022

Removing also validate - enables relative urls as mentioned in #33235

avatar brianteeman brianteeman - test_item - 12 Apr 2022 - Tested unsuccessfully
avatar chmst
chmst - comment - 12 Apr 2022

The autoadd function works only in frontend, not in backend. You can see the code in components\com_wrapper\src\View\Wrapper\HtmlView.php. In my opinion this is wrong in the view but this is not in scope here

avatar brianteeman
brianteeman - comment - 12 Apr 2022

I have tested this item successfully on 106b730

sorry - misunderstood


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

avatar brianteeman brianteeman - test_item - 12 Apr 2022 - Tested successfully
avatar Quy
Quy - comment - 12 Apr 2022

This reverts issue #32245 and PR #32342.

avatar bayareajenn
bayareajenn - comment - 12 Apr 2022

@Quy is correct. It reverts those other issue/PRs. I can never find this stuff so thank you for finding it.
And thank you @chmst for writing the PR. Whilst I'd love to have it back to the way it was, if it isn't going to, we can write it into our custom extension.
To me there's no point is having an option of "No" if it doesn't actually do what it says. We use a shortcode to a different server in that field in our custom extension. In working on getting our J3 extension ready for J4 is when I found this "bug" which doesn't appear to be a bug but rather other people deciding no one uses it in a different way. Bummer.

So someone let me know if I should test and then the other PR would be reverted or if we close this and I deal with it a different way, k?

Thanks for testing @brianteeman

avatar chmst
chmst - comment - 12 Apr 2022

Thanks @Quy. If this enforced http//: is intended, then the the code in components\com_wrapper\src\View\Wrapper\HtmlView.php is wrong. I never use this and so have no opinion

avatar bayareajenn
bayareajenn - comment - 13 Apr 2022

I have tested this item successfully on 106b730

Works great and how it did before #32245 and PR #32342.

Let's see what happens now.


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

avatar bayareajenn bayareajenn - test_item - 13 Apr 2022 - Tested successfully
avatar zero-24
zero-24 - comment - 13 Apr 2022

hmm i dont think we should remove the validation here. Better we should create a filter that also allows relative URLs where the question should be asked first why should we iframe an internal URL in the first place?

And by the intial report the 'issue' is that the protocol has been added? why is that an issue isnt adding the protocol not something thats a good thing?

maybe I'm missing something here?

avatar bayareajenn
bayareajenn - comment - 13 Apr 2022

@zero-24 At my company, we aren't using an internal URL. We're using a shortcode off to a different server. Our current extension adds the https so in the menu item we kept it turned off. We can't go adding http(s) twice now, can we?! So two choices: the option is added back into Joomla or my company changes our extension to NOT have the http(s) to make up for the change and maybe not be able to use the shortcode anymore since I don't think we can have Joomla detect the "s" on a shortcode.

Simply said, it was something we used. I didn't know it had disappeared in J4. I thought it was a bug.

The fact that the setting/parameter Auto Add can be set to "No" but doesn't obey "No" should be addressed though. Either allow it to be turned off for reals, or remove the Auto Add parameter completely since it doesn't work. It adds http when it is set to No.


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

avatar zero-24
zero-24 - comment - 13 Apr 2022

We're using a shortcode off to a different server.

What is a shortcode in this context? In the past it was just a "you can add here anything" field now we make sure its an URL including the protocol.

avatar frostmakk
frostmakk - comment - 13 Apr 2022

From the iframe wrapper menu's help screen:

image

The question is not why should we allow a relative path. The question is why did we remove a valid and documented option that people are using?

avatar zero-24
zero-24 - comment - 13 Apr 2022

The question is not why should we allow a relative path. The question is why did we remove a valid and documented option that people are using?

I still have the question why we need to use relative paths in the first place but when its documented that way an filter that allows relative paths should be created and we should not just remove the current url filter

avatar zero-24
zero-24 - comment - 13 Apr 2022

In the best case there should just be an option within the current URL filter like "allowRelative=true" and in case its not set its not allowing relative URLs while this option will be set here ;)

avatar frostmakk
frostmakk - comment - 13 Apr 2022

Why not simply switch the validation filter on/off with the existing Auto Add option button ?

avatar zero-24
zero-24 - comment - 13 Apr 2022

Why not simply switch the validation filter on/off with the existing Auto Add option button ?

That would mean the validation rule has to check the option of an specific backend component which is not a good idea and auto Add has nothing to do with the validation but is adding stuff the the when the user does not add it.

avatar bayareajenn
bayareajenn - comment - 13 Apr 2022

What is a shortcode in this context? In the past it was just a "you can add here anything" field now we make sure its an URL including the protocol.

We have a lot of sites. Instead of having to put the server name in each site (different for every instance), we use a shortcode - imagine it's something like _SERVER_ and it pulls from the parameters of the custom extension which does have the server name spelled out. It makes it easier for our people who build the sites (globally).

This is the second thing to be removed from the iframe menu item but the documentation says it exists #37544.

In the case of this issue, I can work around it if I have to but the fact remains, there's an Auto Add option toggle that should allow me to turn it off and I can't. So is it a bug? Or is it just other people deciding what's good for me to put in the URL field? OR should the Auto Add parameter also be removed since it's a pointless toggle?

avatar Pallieguy
Pallieguy - comment - 14 Apr 2022

We have custom scripts/tools that are developed on a development environment before being moved to production, using a relative path allows us to copy and paste everything between our production and development environments instead of manually setting them.

While not a lot of work, it's unnecessary work and one more thing for someone to miss when trying to code/debug

avatar RickR2H RickR2H - change - 21 Apr 2022
Status Pending Ready to Commit
avatar RickR2H
RickR2H - comment - 21 Apr 2022

RTC


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

avatar zero-24
zero-24 - comment - 21 Apr 2022

@RickR2H please take off the RTC label as there is still an open discussion how to solve this issue.

avatar brianteeman
brianteeman - comment - 21 Apr 2022

and please put the RLDQ tag back

avatar RickR2H RickR2H - change - 21 Apr 2022
Status Ready to Commit Pending
avatar RickR2H
RickR2H - comment - 21 Apr 2022

Back to pending. @bembelimen can you decide what to do?


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

avatar bayareajenn
bayareajenn - comment - 8 May 2022

@bembelimen and @zero-24 any updates on this one?

avatar mpradel mpradel - test_item - 27 May 2022 - Tested successfully
avatar mpradel
mpradel - comment - 27 May 2022

I have tested this item successfully on 106b730


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

avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull requests has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner
HLeithner - comment - 2 May 2023

This pull request has been automatically rebased to 4.3-dev.

avatar brianteeman
brianteeman - comment - 12 Jul 2023

This has been waitinf ro a release lead to make a decision for over 1 year :(

avatar bayareajenn
bayareajenn - comment - 12 Jul 2023

I ended up having a custom menu item built as part of our custom extension
so I could migrate. I still think this fix should be done though.

On Wed, Jul 12, 2023, 6:54 AM Brian Teeman @.***> wrote:

This has been waitinf ro a release lead to make a decision for over 1 year
:(


Reply to this email directly, view it on GitHub
#37547 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABNNIUZA3AKUWLGPO5F33VTXP2F7DANCNFSM5TIISJWQ
.
You are receiving this because you commented.Message ID:
@.***>

avatar TLWebdesign
TLWebdesign - comment - 26 Aug 2023

I've tested this and noticed that when no schema was added to the url it still added a single slash in front of the url in the generated html. When i looked at the dom it looked like this: src="/domain.nl" while the url field only contains domain.nl


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

avatar MacJoom
MacJoom - comment - 31 Aug 2023

I've tested this and noticed that when no schema was added to the url it still added a single slash in front of the url in the generated html. When i looked at the dom it looked like this: src="/domain.nl" while the url field only contains domain.nl

@TLWebdesign - thanks for testing - is this a problem within this PR or another issue?

avatar MacJoom MacJoom - change - 31 Aug 2023
Labels Added: bug ? ? PR-4.4-dev
Removed: ?
avatar MacJoom MacJoom - change - 4 Sep 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-09-04 16:33:01
Closed_By MacJoom
avatar MacJoom MacJoom - close - 4 Sep 2023
avatar MacJoom MacJoom - merge - 4 Sep 2023

Add a Comment

Login with GitHub to post a comment