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

Refine behavior of ApprovalSessionBean.getRemainingNumberOfApprovals(int)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.11.1.4, EJBCA 6.14.0
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Sprint 13

      Description

      Customer has required the following behavior from ApprovalSessionBean.getRemainingNumberOfApprovals(int)

      Modify getRemainingNumberOfApprovals so that 
      if NumberOfApprovals (noa) > 0 and not expired -> return noa 
      if noa > 0 and expired -> throw exception 
      if noa == 0 -> return 0 
      if noa <0 -> return -1

      This change in behavior should be noted in the upgrade document, as it effects behavior for the corresponding WS method.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mikek Mike Agrenius Kushner
              Reporter:
              mikek Mike Agrenius Kushner
              Verified by:
              Jekaterina Bunina
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified