Conflicting Files ? Failure

User tests: Successful: Unsuccessful:

avatar stutteringp0et
stutteringp0et
11 Dec 2017

This small change allows media fields to be used in user profiles, where a user is not authorized for core.create in com_users - they can be authorized in com_media. In conjunction with a filesystem plugin, a user can be granted access to com_media a limited area of the filesystem. This change should not impact anything other than front-end media modals.

Summary of Changes

allow core.create for com_media to open com_media

Testing Instructions

Create a user custom field of type media as a regular user (registered group). Editing your profile, the media field will have no button to open the media manager because the user has no access.

Apply this change, and allow "Regisered" user group "create" permissions. The user is now given the "Select"

Expected result

media custom fields usable

Actual result

after change, users can use media fields

Documentation Changes Required

avatar stutteringp0et stutteringp0et - open - 11 Dec 2017
avatar stutteringp0et stutteringp0et - change - 11 Dec 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Dec 2017
Category Front End com_media Plugins
avatar stutteringp0et stutteringp0et - change - 11 Dec 2017
Labels Added: ?
avatar dgt41 dgt41 - change - 11 Dec 2017
Title
Update dispatcher.php
[4.0] Update dispatcher.php
avatar joomla-cms-bot joomla-cms-bot - edited - 11 Dec 2017
avatar joomla-cms-bot joomla-cms-bot - change - 11 Dec 2017
Title
Update dispatcher.php
[4.0] Update dispatcher.php
avatar stutteringp0et stutteringp0et - change - 12 Dec 2017
Title
[4.0] Update dispatcher.php
[4.0] com_media modifications for front-end use
avatar stutteringp0et stutteringp0et - change - 12 Dec 2017
Title
[4.0] Update dispatcher.php
[4.0] com_media modifications for front-end use
avatar stutteringp0et stutteringp0et - edited - 12 Dec 2017
avatar sanderpotjer
sanderpotjer - comment - 5 May 2019

@stutteringp0et thanks for the PR! Can you please fix the merge conflict so this can properly be tested?

avatar stutteringp0et
stutteringp0et - comment - 22 Jul 2019

This is so far out of date, should I just close it and open a new PR?

avatar ghost
ghost - comment - 23 Jul 2019

@stutteringp0et Its enough to resolve conflicting files so the Pull Request can be tested as @sanderpotjer comment above.

avatar ghost
ghost - comment - 2 Sep 2019

Please resolve conflicting files so this PR can get tested at Worldwide Pizza, Bugs & Fun, October 19th

avatar stutteringp0et
stutteringp0et - comment - 3 Sep 2019

Yeah, the conflicting file no longer exists. It's been replaced by components/com_media/src/Dispatcher.php

I think I must close and submit a new PR, unless someone can tell me how to do that.

avatar Quy
Quy - comment - 13 Oct 2019

@stutteringp0et Since there are minor changes, the easiest would be to close and submit a new PR.

avatar roland-d
roland-d - comment - 1 Aug 2020

Was a new PR ever created for this?

avatar flo-the-cat flo-the-cat - test_item - 16 Oct 2020 - Not tested
avatar flo-the-cat
flo-the-cat - comment - 16 Oct 2020

I have not tested this item.

Looks like the code base has changed too much since this was made


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

avatar flo-the-cat flo-the-cat - test_item - 16 Oct 2020 - Tested unsuccessfully
avatar flo-the-cat
flo-the-cat - comment - 16 Oct 2020

I have tested this item ? unsuccessfully on 5ef2943

Looks like the code base has changed too much since this was made
The file marked for modification does not exist: components/com_media/dispatcher.php


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

avatar vijaykhollam vijaykhollam - test_item - 7 Nov 2020 - Tested unsuccessfully
avatar vijaykhollam
vijaykhollam - comment - 7 Nov 2020

I have tested this item ? unsuccessfully on 5ef2943


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

Got the following error after applying patch.
"The file marked for modification does not exist: components/com_media/dispatcher.php"

avatar ashvini77 ashvini77 - test_item - 7 Nov 2020 - Tested unsuccessfully
avatar ashvini77
ashvini77 - comment - 7 Nov 2020

I have tested this item ? unsuccessfully on 5ef2943

Warning "The file marked for modification does not exist: components/com_media/dispatcher.php" displayed on applying the patch


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

avatar N6REJ
N6REJ - comment - 13 Nov 2020

@stutteringp0et please fix or close this pr.

avatar particthistle
particthistle - comment - 15 Jan 2021

@stutteringp0et here's the steps I think you need to perform to remove the conflict and apply your change to the new location of the dispatcher.php. (I'll leave better coders to indicate if I'm wrong here)

  • Add your modification to around line 56 in the new components/com_media/src/Dispatcher/Dispatcher.php
  • Remove components/com_media/dispatcher.php from your previous commit
  • Commit the new changes, and it should be ready to go.

Otherwise, close the PR and start again.

BTW I like the premise here - Not sure if it resolves an issue I'm yet to raise with accessing media in the editor, but gives me somewhere to look when I get back to it.

Reviewing this as part of a "Outstanding PR Status List" exercise to work on reducing the number of outstanding PR that have been otherwise orphaned, neglected or forgotten instead of being merged. See Glip Bugs & Fun @ Home channel for more information.

avatar rdeutz
rdeutz - comment - 15 Mar 2021

I am moving this to 4.1, we are in beta and this is a new feature.

avatar rdeutz rdeutz - change - 15 Mar 2021
Title
[4.0] com_media modifications for front-end use
[4.1] com_media modifications for front-end use
avatar rdeutz rdeutz - edited - 15 Mar 2021
avatar particthistle
particthistle - comment - 19 Oct 2021

Replacement PR #35863

#19038 can now be closed.

avatar richard67
richard67 - comment - 19 Oct 2021

Closing due to reasons commented above. Feel free to re-open if this is wrong.

avatar richard67 richard67 - change - 19 Oct 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-10-19 13:00:29
Closed_By richard67
Labels Added: ?
Removed: ?
avatar richard67 richard67 - close - 19 Oct 2021

Add a Comment

Login with GitHub to post a comment