? ? Success

User tests: Successful: Unsuccessful:

avatar Anu1601CS
Anu1601CS
20 Jul 2018

Issue

Try to create a new banner. And select image.
Error. Server internal error.

Summary of Changes

Fix path in URL.

Testing Instructions

Try to create a new banner. And select image.

Expected result

screenshot from 2018-07-20 08-24-44

Actual result

screenshot from 2018-07-20 08-25-18

Error

Documentation Changes Required

NO

avatar Anu1601CS Anu1601CS - open - 20 Jul 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2018

PR isn't shown at Issue Tracker, so no mark as successfully Test can be done.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2018

This PR is now shown in Issue Tracker, but as Issue, not as PR.

avatar dgrammatiko
dgrammatiko - comment - 20 Jul 2018

@laoneo can you get Kasun to review this. Hardcoding the local adapter doesn't look very promising solution...

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jul 2018
Category com_banners
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jul 2018
Status New Discussion
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2018
Category com_banners Layout
avatar brianteeman
brianteeman - comment - 9 Aug 2018

@laoneo any update on this?

avatar laoneo
laoneo - comment - 9 Aug 2018

Ups, that slipped through my inbox. With the new media storage API, we get now the question if hardcoded paths should still be supported. Because somebody can disable the local adapter and only work with media data from a cloud provider, this will likely crash again. I'm in favor to not support predefined paths as we store now the last opened folder in the local storage of the user anyway. Opinions?

avatar kasvith
kasvith - comment - 11 Aug 2018

Allon is correct in here, btw as we resolves the URL without adapter prefix even disabling an adapter wont affect articles we use.

About this one need to check whats the url being used to serve the banner, will take a look on pr

avatar kasvith
kasvith - comment - 11 Aug 2018

Ok Provided solution is not acceptable for me, it uses a hardcoded adapter, even though we provide a method to fetch absolute url to a file, we can get the real url without the adapter prefix.

It need to be done with js like @dgramatikko did with articles

avatar brianteeman
brianteeman - comment - 11 Aug 2018

, we can get the real url without the adapter prefix.

As long as it is not an absolute URL ;)

avatar Anu1601CS
Anu1601CS - comment - 11 Aug 2018

@kasvith Thanks for your review :)

avatar dgrammatiko
dgrammatiko - comment - 11 Aug 2018

FWIW I didn't do any magic tricks on the other fields, the reality is that the other fields don't use the folder option in the XML. Quite honestly I don't see how some client-side code can help up pick the right adapter. I think there must be a trait with some logic that handles that (some basic checks I guess), or just add one more option to the XML: adapter...

avatar roland-d roland-d - change - 31 Aug 2019
Labels Added: ?
avatar roland-d
roland-d - comment - 31 Aug 2019

@Anu1601CS Is this ready to be tested?

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Sep 2019
Title
[4.0] Fix media path to banners folder.
[4.0] Fix media path to banners folder
avatar franz-wohlkoenig franz-wohlkoenig - edited - 1 Sep 2019
avatar Anu1601CS
Anu1601CS - comment - 1 Sep 2019

@Anu1601CS Is this ready to be tested?

This is not perfect fix for this. But, it works for now.

We can open a new issue regarding not to hard code local adapter.

avatar roland-d
roland-d - comment - 2 Sep 2019

@wilsonge Are you OK with fixing the hard coded local adapter in a separate PR or should it be done in this PR?

avatar Schmidie64 Schmidie64 - test_item - 2 Sep 2019 - Tested successfully
avatar Schmidie64
Schmidie64 - comment - 2 Sep 2019

I have tested this item successfully on 571a2e0

For me the patch works fine, without any obvious problems.
System:
PHP Build On: Windows NT 10.0 build 18362 (Windows 10) i586
10.1.37-MariaDB
PHP-Version: 7.3.0
Webserver: Apache/2.4.37 (Win32) OpenSSL/1.1.1a PHP/7.3.0
Joomla! Version: Joomla! 4.0.0-alpha12-dev Development [ Amani ] 19-August-2019 13:40 GMT
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21189.
avatar Lyro274 Lyro274 - test_item - 2 Sep 2019 - Tested successfully
avatar Lyro274
Lyro274 - comment - 2 Sep 2019

I have tested this item successfully on 571a2e0

I followed the instructions provided by @Anu1601CS. Everything worked fine.


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Sep 2019
Status Discussion Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Sep 2019

Status "Ready To Commit".

avatar wilsonge
wilsonge - comment - 2 Sep 2019

@roland-d i'd rather fix it if it's not some insane amount of work

avatar roland-d
roland-d - comment - 2 Sep 2019

@Anu1601CS Can you please fix the issue in this PR?

avatar Anu1601CS
Anu1601CS - comment - 3 Sep 2019

@Anu1601CS Can you please fix the issue in this PR?

Ok i will try.

avatar KishoriBKarale KishoriBKarale - test_item - 19 Oct 2019 - Tested successfully
avatar KishoriBKarale
KishoriBKarale - comment - 19 Oct 2019

I have tested this item successfully on 571a2e0


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

avatar KishoriBKarale
KishoriBKarale - comment - 19 Oct 2019

I have tested this item successfully on 571a2e0


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

avatar shraddhaSankpal27 shraddhaSankpal27 - test_item - 19 Oct 2019 - Tested successfully
avatar shraddhaSankpal27
shraddhaSankpal27 - comment - 19 Oct 2019

I have tested this item successfully on 571a2e0


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

avatar Quy Quy - change - 19 Oct 2019
Status Ready to Commit Pending
avatar laoneo laoneo - change - 20 Oct 2019
Labels Added: ?
Removed: ?
avatar laoneo laoneo - change - 20 Oct 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-10-20 14:43:59
Closed_By laoneo
Labels Added: ?
Removed: ?
avatar laoneo laoneo - close - 20 Oct 2019
avatar laoneo laoneo - merge - 20 Oct 2019
avatar laoneo
laoneo - comment - 20 Oct 2019

Thanks!

avatar wilsonge
wilsonge - comment - 21 Oct 2019

Captured doing a proper fix for the issue #26750 which doesn't block any potential cloud providers here

Add a Comment

Login with GitHub to post a comment