? ? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
28 Oct 2019

Summary of Changes

added an api endpoint for com_actionlogs

Testing Instructions

if you use postman
then GET http://localhost/<yoursite>/api/index.php/v1/actionlogs

GET http://localhost/<yoursite>/api/index.php/v1/actionlogs/xx

where xx is the log id

GET http://localhost/<yoursite>/api/index.php/v1/actionlogs?extension=com_xxxx

where xxxx is the extension name

GET http://localhost/<yoursite>/api/index.php/v1/actionlogs?user=xxxx

where xxxx is the user id

if you use curl
curl -X GET /api/index.php/v1/actionlogs

Expected result

something like

{
    "links": {
        "self": "http://localhost/my4/api/index.php/v1/actionlogs",
        "first": "http://localhost/my4/api/index.php/v1/actionlogs?page[offset]=0&page[limit]=20",
        "next": "http://localhost/my4/api/index.php/v1/actionlogs?page[offset]=20&page[limit]=20",
        "previous": "http://localhost/my4/api/index.php/v1/actionlogs?page[offset]=0&page[limit]=20",
        "last": "http://localhost/my4/api/index.php/v1/actionlogs?page[offset]=0&page[limit]=20"
    },
    "data": [
        {
            "type": "actionlogs",
            "id": "14",
            "attributes": {
                "id": "14",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_USER_LOGGED_IN",
                "message": "{\"action\":\"login\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"app\":\"PLG_ACTIONLOG_JOOMLA_APPLICATION_API\"}",
                "log_date": "2019-10-28 19:14:54",
                "extension": "com_users",
                "user_id": "607",
                "item_id": "0",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "13",
            "attributes": {
                "id": "13",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_USER_LOGGED_IN",
                "message": "{\"action\":\"login\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"app\":\"PLG_ACTIONLOG_JOOMLA_APPLICATION_API\"}",
                "log_date": "2019-10-28 19:14:15",
                "extension": "com_users",
                "user_id": "607",
                "item_id": "0",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "12",
            "attributes": {
                "id": "12",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_USER_LOGGED_IN",
                "message": "{\"action\":\"login\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"app\":\"PLG_ACTIONLOG_JOOMLA_APPLICATION_API\"}",
                "log_date": "2019-10-28 19:13:21",
                "extension": "com_users",
                "user_id": "607",
                "item_id": "0",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "11",
            "attributes": {
                "id": "11",
                "message_language_key": "PLG_SYSTEM_ACTIONLOGS_CONTENT_UPDATED",
                "message": "{\"action\":\"update\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_COMPONENT_CONFIG\",\"id\":\"213\",\"title\":\"com_patchtester\",\"extension_name\":\"com_patchtester\",\"itemlink\":\"index.php?option=com_config&task=component.edit&extension_id=213\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\"}",
                "log_date": "2019-10-28 18:48:12",
                "extension": "com_config.component",
                "user_id": "607",
                "item_id": "213",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "10",
            "attributes": {
                "id": "10",
                "message_language_key": "PLG_SYSTEM_ACTIONLOGS_CONTENT_UPDATED",
                "message": "{\"action\":\"update\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_COMPONENT_CONFIG\",\"id\":\"213\",\"title\":\"com_patchtester\",\"extension_name\":\"com_patchtester\",\"itemlink\":\"index.php?option=com_config&task=component.edit&extension_id=213\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\"}",
                "log_date": "2019-10-28 18:47:39",
                "extension": "com_config.component",
                "user_id": "607",
                "item_id": "213",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "9",
            "attributes": {
                "id": "9",
                "message_language_key": "PLG_SYSTEM_ACTIONLOGS_CONTENT_UPDATED",
                "message": "{\"action\":\"update\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_COMPONENT_CONFIG\",\"id\":\"213\",\"title\":\"com_patchtester\",\"extension_name\":\"com_patchtester\",\"itemlink\":\"index.php?option=com_config&task=component.edit&extension_id=213\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\"}",
                "log_date": "2019-10-28 18:45:57",
                "extension": "com_config.component",
                "user_id": "607",
                "item_id": "213",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "8",
            "attributes": {
                "id": "8",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_EXTENSION_INSTALLED",
                "message": "{\"action\":\"install\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_COMPONENT\",\"id\":\"213\",\"name\":\"com_patchtester\",\"extension_name\":\"com_patchtester\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\"}",
                "log_date": "2019-10-28 18:44:12",
                "extension": "com_installer",
                "user_id": "607",
                "item_id": "213",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "7",
            "attributes": {
                "id": "7",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_USER_CHECKIN",
                "message": "{\"action\":\"checkin\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_USER\",\"id\":\"607\",\"title\":\"admin\",\"itemlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"table\":\"#__extensions\"}",
                "log_date": "2019-10-28 18:41:52",
                "extension": "com_checkin",
                "user_id": "607",
                "item_id": "607",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "6",
            "attributes": {
                "id": "6",
                "message_language_key": "PLG_SYSTEM_ACTIONLOGS_CONTENT_UPDATED",
                "message": "{\"action\":\"update\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_PLUGIN\",\"id\":214,\"title\":\"plg_webservices_actionlog\",\"extension_name\":\"plg_webservices_actionlog\",\"itemlink\":\"index.php?option=com_plugins&task=plugin.edit&extension_id=214\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\"}",
                "log_date": "2019-10-28 18:41:52",
                "extension": "com_plugins.plugin",
                "user_id": "607",
                "item_id": "214",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "5",
            "attributes": {
                "id": "5",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_EXTENSION_INSTALLED",
                "message": "{\"action\":\"install\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_PLUGIN\",\"id\":\"214\",\"name\":\"plg_webservices_actionlog\",\"extension_name\":\"plg_webservices_actionlog\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\"}",
                "log_date": "2019-10-28 18:41:24",
                "extension": "com_installer",
                "user_id": "607",
                "item_id": "214",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "4",
            "attributes": {
                "id": "4",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_USER_LOGGED_IN",
                "message": "{\"action\":\"login\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"app\":\"PLG_ACTIONLOG_JOOMLA_APPLICATION_API\"}",
                "log_date": "2019-10-28 18:28:24",
                "extension": "com_users",
                "user_id": "607",
                "item_id": "0",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "3",
            "attributes": {
                "id": "3",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_USER_LOGGED_IN",
                "message": "{\"action\":\"login\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"app\":\"PLG_ACTIONLOG_JOOMLA_APPLICATION_API\"}",
                "log_date": "2019-10-28 18:27:57",
                "extension": "com_users",
                "user_id": "607",
                "item_id": "0",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "2",
            "attributes": {
                "id": "2",
                "message_language_key": "PLG_SYSTEM_ACTIONLOGS_CONTENT_ADDED",
                "message": "{\"action\":\"add\",\"type\":\"PLG_ACTIONLOG_JOOMLA_TYPE_ARTICLE\",\"id\":\"1\",\"title\":\"AAAAAA\",\"itemlink\":\"index.php?option=com_content&task=article.edit&id=1\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\"}",
                "log_date": "2019-10-28 18:27:50",
                "extension": "com_content.article",
                "user_id": "607",
                "item_id": "1",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        },
        {
            "type": "actionlogs",
            "id": "1",
            "attributes": {
                "id": "1",
                "message_language_key": "PLG_ACTIONLOG_JOOMLA_USER_LOGGED_IN",
                "message": "{\"action\":\"login\",\"userid\":\"607\",\"username\":\"admin\",\"accountlink\":\"index.php?option=com_users&task=user.edit&id=607\",\"app\":\"PLG_ACTIONLOG_JOOMLA_APPLICATION_ADMINISTRATOR\"}",
                "log_date": "2019-10-28 18:27:37",
                "extension": "com_users",
                "user_id": "607",
                "item_id": "0",
                "ip_address": "COM_ACTIONLOGS_DISABLED"
            }
        }
    ],
    "meta": {
        "total-pages": 1
    }
}

Actual result

N\A

Documentation Changes Required

yes

avatar alikon alikon - open - 28 Oct 2019
avatar alikon alikon - change - 28 Oct 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2019
Category Front End Plugins
572a0a3 28 Oct 2019 avatar alikon lang
avatar alikon alikon - change - 28 Oct 2019
Labels Added: ?
7d42774 28 Oct 2019 avatar alikon lang
avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2019
Category Front End Plugins Administration Language & Strings Front End Plugins
avatar alikon alikon - change - 28 Oct 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2019
Category Front End Plugins Administration Language & Strings Administration Language & Strings SQL Installation Front End Plugins
avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2019
Category Front End Plugins Administration Language & Strings SQL Installation Administration Language & Strings SQL Installation Postgresql Front End Plugins
avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2019
Category Front End Plugins Administration Language & Strings SQL Installation Postgresql SQL Administration com_admin Language & Strings Installation Postgresql Front End Plugins
60656da 28 Oct 2019 avatar alikon oops
avatar Quy
Quy - comment - 20 Nov 2019

Installation failed.

PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "file:/joomla-cms-patch-111/plugins/webservices/actionlog/actionlog.xml" in \libraries\src\Installer\Installer.php on line 2034

avatar Quy
Quy - comment - 20 Nov 2019

Change the path to plugins/webservices/actionlog/ without s for the 2 files fixed the installation issue.

avatar Quy
Quy - comment - 20 Nov 2019

In User Actions Log: User admin logged in to PLG_ACTIONLOG_JOOMLA_APPLICATION_API
With PR #27094 installed, the above entry is not logged.

avatar alikon
alikon - comment - 21 Nov 2019

that's expected by #27094, it logs only performed "verb"
p.s
i'll look into the 's' issue asap

1777105 22 Nov 2019 avatar alikon clean
e4c2641 22 Nov 2019 avatar alikon clean
avatar joomla-cms-bot joomla-cms-bot - change - 22 Nov 2019
Category Front End Plugins Administration Language & Strings SQL Installation Postgresql com_admin SQL Administration com_admin Postgresql Language & Strings Installation
0709628 22 Nov 2019 avatar alikon add
avatar joomla-cms-bot joomla-cms-bot - change - 22 Nov 2019
Category Administration Language & Strings SQL Installation Postgresql com_admin SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins
ca1fde3 22 Nov 2019 avatar alikon add
b0a93f7 22 Nov 2019 avatar alikon item
f790003 22 Nov 2019 avatar alikon grr
963dce0 22 Nov 2019 avatar alikon grrr
29da6a2 22 Nov 2019 avatar alikon s
avatar alikon alikon - change - 23 Nov 2019
The description was changed
avatar alikon alikon - edited - 23 Nov 2019
avatar alikon alikon - change - 12 Feb 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-02-12 19:35:29
Closed_By alikon
Labels Added: ?
avatar alikon alikon - close - 12 Feb 2020

Add a Comment

Login with GitHub to post a comment