? ? Pending

User tests: Successful: Unsuccessful:

avatar clayfreeman
clayfreeman
30 Jul 2018

Is your feature request related to a problem? Please describe.

Components are unable to specify additional query parameters when defining primary admin menu items in the manifest file. Submenu items, however, are able to specify additional query parameters.

Describe the solution you'd like

Patch this file to allow additional query parameters as specified in the component manifest, similar to how it is done for submenu items. See the changes in this pull request to apply the patch and test it.

Additional context

It should be possible to build components without the use of a "generic" controller that defines a default view. Menu items should be able to specify the task and view query parameters so that there is no ambiguity as to which controller and view class should be used.

Example

task and view can now be set in the primary menu item so that the default administration controller doesn't have to be used for the primary menu item.

<administration>
  ...
  <menu task='test.display' view='test'>Test</menu>
  ...
</administration>

For a component com_blah, the above code example will create a menu item that points to index.php?option=com_blah&task=test.display&view=test. This means that BlahControllerTest, BlahModelTest and BlahViewTest will be used to handle the request as opposed to the generic, component-wide BlahController and its BlahView$default_view class.

avatar clayfreeman clayfreeman - open - 30 Jul 2018
avatar clayfreeman clayfreeman - change - 30 Jul 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jul 2018
Category Libraries
avatar wilsonge
wilsonge - comment - 30 Jul 2018

I can see why you would want to allow task/view as you described in your issue (although don't feel strongly about it). However neither act nor sub are things used in core therefore I definitely am against them being magically whitelisted when they have no definition.

avatar clayfreeman clayfreeman - change - 30 Jul 2018
Labels Added: ?
avatar clayfreeman
clayfreeman - comment - 30 Jul 2018

@wilsonge I've stripped down the list of allowed parameters. Please see my revision.

avatar clayfreeman
clayfreeman - comment - 1 Aug 2018

I'm not quite sure why the AppVeyor build failed; logically there was no difference from that merge commit.

Regardless, is there an update on this?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Aug 2018

@clayfreeman next this PR needs two sucessfully Tests.

avatar clayfreeman
clayfreeman - comment - 1 Aug 2018

By Joomla developers or community members?

I have been running this patch for days with no issue.

On Jul 31, 2018, at 10:53 PM, Franz Wohlkönig notifications@github.com wrote:

@clayfreeman next this PR needs two sucessfully Tests.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Aug 2018

Everyone can test (Test by PR-Creator doesn't count as its expected that he test before create Pull Request).

Edit: Its helpful to give Instructions for Tester in the PR, a Link to an Issue without Instructions isn't helpful to know what to test.

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Aug 2018
Title
modify installer to allow additional query params
[3.9] modify installer to allow additional query params
avatar joomla-cms-bot joomla-cms-bot - edited - 1 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Aug 2018

Changed Title to show its about 3.9.


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

avatar mbabker
mbabker - comment - 1 Aug 2018

By Joomla developers or community members?

I have been running this patch for days with no issue.

All patches must be tested/reviewed by at least two people other than the person who submitted the pull request.

avatar clayfreeman clayfreeman - change - 1 Aug 2018
The description was changed
avatar clayfreeman clayfreeman - edited - 1 Aug 2018
avatar clayfreeman clayfreeman - change - 1 Aug 2018
The description was changed
avatar clayfreeman clayfreeman - edited - 1 Aug 2018
avatar travisrisner
travisrisner - comment - 1 Aug 2018

I have tested this item successfully on adf71c7.

avatar jeremyvii
jeremyvii - comment - 1 Aug 2018

I have also tested this item successfully on adf71c7.

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Aug 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Aug 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 2 Aug 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-08-02 22:30:19
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 2 Aug 2018
avatar mbabker mbabker - merge - 2 Aug 2018
avatar wilsonge
wilsonge - comment - 2 Aug 2018

Thankyou for your first contribution to the CMS!

Add a Comment

Login with GitHub to post a comment