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

REST API /expire offset and maxNumberofResults doesn't work on multiple nodes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.14.0
    • Component/s: None
    • Labels:
      None

      Description

      While getting expired certificates from RA offset and maxnumber of results logic don't work for more than one node.

      For example node1 has 23 certificates, node2 - 32

      User asks 10 with offset 0;

      Now

      • 10 comes from first node + 10 from second = 20 certificates as a result

      Should be

      • get 10 from first node. Don't call second node. Return 10 as asked.

      User asks 10 with offset 20

      Now

      • User gets 3 from node1 and 10 with offset 20 from node2. Total 13 and offset on second node is not very logical

      Sould be

      • User gets 3 from node 1 (maxNumber =10, offset= 20)
      • User gets 7 from node2 (maxnumber =7, offset=0)
      • Total 10

      User asks 10 with offset 30

      Now

      • User gets 0 from node1, 2 from node2

      Should be

      • User gets 0 from node1
      • User gets 10 from node2 (maxnumber=10, offset = 7)

       

        Attachments

          Activity

            People

            • Assignee:
              katja_helmes Jekaterina Bunina
              Reporter:
              katja_helmes Jekaterina Bunina
              Verified by:
              Mike Agrenius Kushner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 1 day Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - 1 day Remaining Estimate - 1 day
                1d