Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-1940

CBATS : Issue in getCandidate/deleteCandidate

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      observed an issue in the getCandidate and deleteCandidate api.

      The candidate shamooka@gmail.com is created at DMS from cbinternalBeta (AccountDID - AKF7Y86DJ2Z4VLMS9MN), but I am able to get the information & also delete the candidate from other system like "cbta (AccountDID - AKD3PK619G7BM6056N6)".

      https://apimanagement.cbplatform.link/#routes/tester?preURL=https%3A%2F%2Fapi.careerbuilder.com%2F&postURL=corporate%2Fdms%2Fapi%2FcandidateProfile%2Fshamooka%40gmail.com&method=get&contentType=application%2Fjson&acceptType=application%2Fjson&version=default&region=productionus&flow=authorization_code&userDid=U8Q7SR6BQK3KSWWW6V8&accountDid=AKD3PK619G7BM6056N6&headers=&body=

        Attachments

          Activity

          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment - - edited

          Below API are targeted 

          api/deleteCandidate [This api already has company id check]

          api/candidateProfile
          — > This API will return not found result.

          api/candidateProfile/{emailAddress}/{sourceProduct}/{documentId}
          ---> This API returns not found. Also if provided document id is not matched with email address then also not found with message Document not found for provided email.

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - - edited Below API are targeted  api/deleteCandidate [This api already has company id check] api/candidateProfile — > This API will return not found result. api/candidateProfile/{emailAddress}/{sourceProduct}/{documentId} ---> This API returns not found. Also if provided document id is not matched with email address then also not found with message Document not found for provided email.
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Below are 3C's.

          Concern: Other company candidate can be accessed.

          Cause: System fetches candidate from email address only , there is no check for company id.

          Correction: We have added company check.

          CC – Samir

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Below are 3C's. Concern: Other company candidate can be accessed. Cause: System fetches candidate from email address only , there is no check for company id. Correction: We have added company check. CC – Samir
          Hide
          priya.dhamande Priya Dhamande (Inactive) added a comment -

          Environment: Preprod - ONEIM
          API: /api/deleteCandidate

          Points verified:
          1. Email ID of same companies
          2. Email IDS of different companies

          Both scenarios passed. refer screen capture. So, marking jira done.

          Samir Rohan J Khandave Hrishikesh Deshpande Sachin Hingole

          Show
          priya.dhamande Priya Dhamande (Inactive) added a comment - Environment: Preprod - ONEIM API: /api/deleteCandidate Points verified: 1. Email ID of same companies 2. Email IDS of different companies Both scenarios passed. refer screen capture. So, marking jira done. Samir Rohan J Khandave Hrishikesh Deshpande Sachin Hingole

            People

            Assignee:
            rohan.khandave Rohan J Khandave (Inactive)
            Reporter:
            rohan.khandave Rohan J Khandave (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h
                5h