Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 50
    • Issues 50
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #5798
Closed
Open
Issue created Mar 27, 2018 by tbp@tbpReporter

API returns no error when asking for non existing tab using method getfields()

Description

API returns no error when asking for non existing tab using method getfields().

Distribution Name and Version

Whatever is running demo.fusiondirectory.org.

FusionDirectory Version

1.2

Plugin with the defect

Web service

PHP version used

Whatever is running demo.fusiondirectory.org.

Origin of php packages

Whatever is running demo.fusiondirectory.org.

Steps to Reproduce

  1. Call method getfields: {'id': '123', 'method': 'getfields', 'params': ['1kl6phb0evov24vfasiv5p2s32', 'USER', None, 'foobar']})
  2. Observe answer with no error: {'result': {'sections_order': ['main'], 'sections': {'main': {'attrs': [], 'attrs_order': [], 'name': 'Plugin'}}}, 'id': '123', 'error': None}

Expected behavior:

I expect an error telling me that 'foobar' is not a valid tab name.

Actual behavior:

I'm not told that 'foobar' is not a valid tab name.

Reproduces how often: 100%

Edited Mar 28, 2018 by Côme Chilliet
Assignee
Assign to
Time tracking