Uploaded image for project: 'Optimization Framework'
  1. Optimization Framework
  2. OPTFRA-498

Policy loading problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Dublin Release
    • Dublin Release
    • OSDF
    • None
    • SB-00

      When Traffic Distribution request is being done OSDF returns and error HTTP 400 with message PE300 - no match found. Attached debug.log from pdp with information that requested policies are being loaded by pdp but because of some reason HTTP 400 is returned.

      Perhaps the problewm is with policy pattern used for policy retrieval "policyName": "OSDF_CASABLANCA..\\d."

      When I invoke such query on OSDF it return 400:

      wget -O - --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST'  https://pdp:8081/pdp/api/getConfig  --post-data '{ "policyName": "OSDF_CASABLANCA.*.[\\d].*"}'
      

      but when I modify it to:

      wget -O - --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST'  https://pdp:8081/pdp/api/getConfig  --post-data '{ "policyName": "OSDF_CASABLANCA.*"}'
      

      it returns whole set of policies.

      Moreover, OSDF looks for policies with scope OSDF_CASABLANCA when it should look for OSDF_DUBLIN scope instead.

        1. pdp-debug.txt
          27 kB
        2. request.json
          2 kB
        3. response.json
          0.9 kB

            rajewluk Lukasz Rajewski
            rajewluk Lukasz Rajewski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: