Authenticate before issuing getParameter in commands_lib.js

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0, 8.2.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • v8.2
    • Server Security 2025-09-12
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The isFeatureEnabled() function in commands_lib.js is mainly used to check if a test case can be skipped if a feature flag is not enabled. The problem with this function is that it issues a getParameter command without first authenticating as the "admin" user, therefore getting an "Unauthorized" error response that is never checked for its error code. In this situation, the function will simply look for the search key in the error response object and will always return false, causing the test case to be skipped despite the feature being enabled.

            Assignee:
            Erwin Pe
            Reporter:
            Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: