Skip to content

Breaks REST API #1

@dregad

Description

@dregad

Accessing http://localhost/mantis/api/rest with Moderate plugin installed makes the REST API unusable, due to the following error

TypeError: moderate_rest_routes(): Argument #1 ($p_app) must be of type Slim\App, array given, called in .../plugins/Moderate/Moderate.php on line 279 and defined in .../mantisbt/plugins/Moderate/files/moderate_rest.php:27
Stack trace:
#0 .../plugins/Moderate/Moderate.php(279): moderate_rest_routes()
#1 .../core/event_api.php(214): ModeratePlugin->rest_api_routes()
#2 .../core/event_api.php(240): event_callback()
#3 .../core/event_api.php(172): event_type_execute()
#4 .../api/rest/index.php(196): event_signal()
#5 {main}

mantisbt/mantisbt@1b00972
Moderate plugin at 5f4f184.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions