Loading...
 
Skip to main content

Console task being able to execute listexecute actions

Status
Closed
Subject
Console task being able to execute listexecute actions
Version
16.x
Category
  • Feature request
Feature
Console / Command Line
Resolution status
Fixed or Solved
Submitted by
Bernard Sfez / Tiki Specialist
Volunteered to solve
Victor Emanouilov
Lastmod by
Xavier de Pedro
Rating
(0)
Description

Actually to have the plugin listExecute action initiate by a cron job you have to use curl, send user (admin) credentials and use http(s) authentification which is not very safe.

Copy to clipboard
curl -u admin:adminpassword "http://yourtiki.com/YourActionPage" --form "list_action=ActionName" --form "objects~0=ALL"


It would be nice to to have a console task being able to execute listexecute actions on a particular page avoiding unsafe communications.

Solution

Added a console command for this task. Syntax:

Copy to clipboard
php console.php list:execute "Page Name" "Action Name"


Commit in trunk: r60244

I think documentation needs to be updated as well but since this is not yet released to 16.x, I didn't do the doc update.

Importance
6
Easy to solve?
5
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6158
Created
Tuesday 01 November, 2016 13:37:27 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Friday 02 December, 2016 09:15:53 UTC


Show PHP error messages