View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16092Feature requestsOtherpublic2020-04-04 11:01
Reporterbismark Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary16092: add new commands folder for own Console Commands
Description

current method:
a plugin subscribes to the direct plugin event and is executable in console via
php application/commands/console.php plugin direct --target=Reminder

new method:
create a console command in new folder (other than application/commands), eg commands
$app->commandRunner->addCommands(dirname(dirname(dirname(__FILE__))) . '/commands');

and execute the command via
php application/commands/console.php reminder

TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

bismark

bismark

2020-04-04 00:57

reporter   ~56940

also add a shortcut ./lsc (limesurvey console)

#!/bin/bash
php ./application/commands/console.php $@

so we can call ./lsc reminder

bismark

bismark

2020-04-04 02:31

reporter   ~56941

ups, this is a duplicate to https://bugs.limesurvey.org/view.php?id=15970

DenisChenu

DenisChenu

2020-04-04 11:01

developer   ~56944

Possible security issue ?

Must check all include are in allowed directory.

Else : except remogving plugin direct --target= what gain ?

On linux, a simple alias and no need ;)

Issue History

Date Modified Username Field Change
2020-04-04 00:55 bismark New Issue
2020-04-04 00:57 bismark Note Added: 56940
2020-04-04 02:31 bismark Note Added: 56941
2020-04-04 11:01 DenisChenu Note Added: 56944