History log of /dokuwiki/inc/ActionRouter.php (Results 1 – 25 of 26)
Revision Date Author Comments
# d4f83172 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: line breaks


# 177d6836 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow whitespaces


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# 8c7c53b0 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: class declaration braces


# 74981a4e 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

apply PSR-12 constant visibility rule

PSR-12 says constants need their visibility declared from PHP 7.1
onwards


# 24870174 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to the rest of inc


# ecad51dd 17-Dec-2021 Andreas Gohr <andi@splitbrain.org>

fix handling of loading auth backend

When a non existing auth backend was configured, the action router ran
into an infinie loop exception. The reason was that the denied action
required a configure

fix handling of loading auth backend

When a non existing auth backend was configured, the action router ran
into an infinie loop exception. The reason was that the denied action
required a configured auth system, but denying access should always
work.

Interestingly the problem did not occur when the auth backend signalled
a failure to load. This was because the auth backend was not properly
deinitialized. This is now done.

To aid debugging similar problems, fatal errors are now logged through
the logging mechanism in the action router

show more ...


# 985f440f 14-Mar-2020 Damien Regad <dregad@mantisbt.org>

Fix typo in error message


# e1d9dcc8 15-Jun-2018 Andreas Gohr <andi@splitbrain.org>

First go at moving the plugin classes into their own namespace


# b2c9cd19 12-Apr-2018 Andreas Gohr <gohr@cosmocode.de>

renamed ActionRouter::checkPermissions to checkPreconditions

As discussed in #1933


# c7d61a4e 07-Sep-2017 Andreas Gohr <gohr@cosmocode.de>

pass action name by reference. fixes #2117

This fixes plugins that expect that they can change the global $ACT
instead of $event->data in the ACTION_ACT_PREPROCESS event.

This make the whole route

pass action name by reference. fixes #2117

This fixes plugins that expect that they can change the global $ACT
instead of $event->data in the ACTION_ACT_PREPROCESS event.

This make the whole route a little bit uncleaner but would increase
backwards compatibility.

I'm not sure how widespread the problem is and if adding this is a good
idea.

show more ...


# 68667f4a 06-Sep-2017 Michael Große <grosse@cosmocode.de>

fix(ActionRouter): trigger ACTION_ACT_PREPROCESS for all actions

This should recreate the behaviour prior to #1933, where the event was
triggered for all ACT values. Some plugins, like edittable, de

fix(ActionRouter): trigger ACTION_ACT_PREPROCESS for all actions

This should recreate the behaviour prior to #1933, where the event was
triggered for all ACT values. Some plugins, like edittable, depend on
the functionality.

show more ...


# 7675e707 27-Aug-2017 Andreas Gohr <andi@splitbrain.org>

do not hide fatal exceptions during unit tests


# 6e4577dc 27-Aug-2017 Andreas Gohr <andi@splitbrain.org>

undo unecessary action routing adjustments


# 572dc222 27-Aug-2017 LarsDW223 <lars_paulsen@web.de>

Test code for workflow 'show - sectionedit - save/cancel' (with modifications in test classes and 'send_redirect()' and 'act_dispatch()'.


# d5d08c05 27-Aug-2017 Andreas Gohr <andi@splitbrain.org>

fixed some style errors found by scrutinizer


# 58528803 18-May-2017 Andreas Gohr <andi@splitbrain.org>

introduce a redirect action

Action can now abort to 'redirect' to explicitly trigger a redirect
back to showing the current page. Automatic triggering for post->show is
now only done when a 'show' a

introduce a redirect action

Action can now abort to 'redirect' to explicitly trigger a redirect
back to showing the current page. Automatic triggering for post->show is
now only done when a 'show' action was not explicitly requested.

show more ...


# 81f9e22b 18-May-2017 Andreas Gohr <andi@splitbrain.org>

allow actions to throw exception that are shown to the user


# 16d428e9 01-Apr-2017 Andreas Gohr <andi@splitbrain.org>

removed unneeded check

the $from != $to check is handled further up already and throws an
exception.


# 480336a3 31-Mar-2017 Andreas Gohr <andi@splitbrain.org>

no longer rely on actionOk when checking if actions are disabled

loadAction() and checkAction() are now public and could be used within
actionOK(). However some weird circular references prevent tha

no longer rely on actionOk when checking if actions are disabled

loadAction() and checkAction() are now public and could be used within
actionOK(). However some weird circular references prevent that. In
addition, actionOK is also used to check for things that aren't Actions
(yet) like 'rss' and 'top'.

show more ...


# 73522543 11-Mar-2017 Andreas Gohr <andi@splitbrain.org>

fixed export action by supporting underscores in actions

Now underscores can be used to have sub actions. The loader will try to
find an exact match first, then begin removing parts from the end unt

fixed export action by supporting underscores in actions

Now underscores can be used to have sub actions. The loader will try to
find an exact match first, then begin removing parts from the end until
a matching action is found.

show more ...


# ae7bcdc7 11-Mar-2017 Andreas Gohr <andi@splitbrain.org>

fix singleton pattern in ActionRouter


# 50701b66 11-Mar-2017 Andreas Gohr <andi@splitbrain.org>

better action transitions

It should now catch any circular loops (by having a maxiumum recursion
depth) and it handles the automatic redirect after save (and others)


# a3f6fae6 11-Mar-2017 Andreas Gohr <andi@splitbrain.org>

Add action plugin hooks back into the ActionRouter

This is not how integration of plugins would ideally be done in this new
system. Ideally an action plugin would actually implement an instance of
A

Add action plugin hooks back into the ActionRouter

This is not how integration of plugins would ideally be done in this new
system. Ideally an action plugin would actually implement an instance of
AbstractAction and would just fall into the normal flow of actions here.

However to not break a gazillion of existing plugins, this is just add
the existing two events into the new system through the use of a Plugin
action.

Maybe we could add "new" action plugins later.

show more ...


# f21dad39 11-Feb-2017 Andreas Gohr <andi@splitbrain.org>

all actions should have a class now

Lots of FIXMEs and the routing isn't integrated, yet


12