? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar ditsuke
ditsuke
1 Jan 2022

Pull Request for Issue #36454.

Summary of Changes

Adds CSRF protection for task "test" trigger endpoint. Token is injected in the list template.

Testing Instructions

  • Create Scheduled Task, note ID.
  • Goto http://example.com/administrator/index.php?option=com_ajax&format=json&plugin=RunSchedulerTest&group=system&id={TaskID} in another tab.

Actual result BEFORE applying this Pull Request

Task is executed.

Expected result AFTER applying this Pull Request

Task is not executed since request lacks token.

Documentation Changes Required

-

avatar ditsuke ditsuke - open - 1 Jan 2022
avatar ditsuke ditsuke - change - 1 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jan 2022
Category Administration JavaScript Repository NPM Change Front End Plugins
avatar ditsuke
ditsuke - comment - 1 Jan 2022

@PhilETaylor please test and review.

avatar PhilETaylor
PhilETaylor - comment - 1 Jan 2022
/********/src/build/media_source/com_scheduler/js/admin-view-run-test-task.es6.js
15s
8	  21:176  error  Strings must use singlequote  quotes
avatar ditsuke ditsuke - change - 1 Jan 2022
Labels Added: NPM Resource Changed ?
avatar ditsuke
ditsuke - comment - 1 Jan 2022
/********/src/build/media_source/com_scheduler/js/admin-view-run-test-task.es6.js
15s
8	  21:176  error  Strings must use singlequote  quotes

@PhilETaylor fixed

avatar fancyFranci
fancyFranci - comment - 8 Jan 2022

I have tested this item successfully on 73414c5

With the patch the task does not run on GET request. The "Last Run Date" confirms that.

{
  "success": true,
  "message": null,
  "messages": null,
  "data": []
}
```<hr /><sub>This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="https://issues.joomla.org/tracker/joomla-cms/36518">issues.joomla.org/tracker/joomla-cms/36518</a>.</sub>
avatar fancyFranci
fancyFranci - comment - 8 Jan 2022

I have tested this item successfully on 73414c5

With the patch the task does not run on GET request. The "Last Run Date" confirms that.

{
  "success": true,
  "message": null,
  "messages": null,
  "data": []
}
```<hr /><sub>This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="https://issues.joomla.org/tracker/joomla-cms/36518">issues.joomla.org/tracker/joomla-cms/36518</a>.</sub>
avatar fancyFranci fancyFranci - test_item - 8 Jan 2022 - Tested successfully
avatar jwaisner
jwaisner - comment - 11 Jan 2022

I have tested this item successfully on 73414c5


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

avatar jwaisner jwaisner - test_item - 11 Jan 2022 - Tested successfully
avatar jwaisner jwaisner - change - 11 Jan 2022
The description was changed
Status Pending Ready to Commit
avatar joomla-cms-bot joomla-cms-bot - edited - 11 Jan 2022
avatar jwaisner
jwaisner - comment - 11 Jan 2022

RTC


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

avatar bembelimen bembelimen - close - 14 Jan 2022
avatar bembelimen bembelimen - merge - 14 Jan 2022
avatar bembelimen bembelimen - change - 14 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-14 20:42:27
Closed_By bembelimen
Labels Added: ?
avatar bembelimen
bembelimen - comment - 14 Jan 2022

Thx

Add a Comment

Login with GitHub to post a comment