Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-6642

When calling WS separate error messages if not authorized or if WS is disabled

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.12.0
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Sprint 9

      Description

      Currenty in EjbcaWS.getAdmin we check if either WS is disabled (module configuration in System Configuration) or if admin is not authorized to AccessRulesConstants.REGULAR_PEERPROTOCOL_WS. Either way, we return the error that admin is not authorized. This makes debugging unnecessary slow trying to hunt for the right trivial checkbox to check.

      Instead, if admin is authorized give an understandable message that WS is disabled if it is. Start with checking if authorizes to not give out information about configuration to non-authorized admins.

        Attachments

          Activity

            People

            • Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Henrik Sunmark
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: