Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid name in matches from SelectResults #117

Closed
TimoGlastra opened this issue Jun 7, 2023 · 1 comment
Closed

Invalid name in matches from SelectResults #117

TimoGlastra opened this issue Jun 7, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TimoGlastra
Copy link
Contributor

TimoGlastra commented Jun 7, 2023

  • I'm submitting a ...
    [x] bug report

  • Summary

When filtering credentials using the PEX library, the name property in the matches in some cases contain an invalid name.

When I define a presentation definition with two submission requirements with rule: pick and count: 1, the matches will always point to the same input descriptor, even though they satisfy another input descriptor.

See this REPL that replicates the issue: https://replit.com/@timo10/PEX-Playground-Match-name-bug

Basically what happens:

  • PD with two submission requirements. Those are satisfied with two different credentials for two different input descriptors. The matches is as follows:
[
    {
      "rule": "pick",
      "from": [
        "A"
      ],
      "vc_path": [
        "$.verifiableCredential[0]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    },
    {
      "rule": "pick",
      "from": [
        "B"
      ],
      "vc_path": [
        "$.verifiableCredential[1]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    }
  ]

As you can see the name property points to the same input descriptor id. If the input descriptor were to have a name, the property here would both be the name of the same input descriptor, even thought they point to different input descriptors (as per the submission requirements).

However, when I leave out some credentials the and the matches can't be satisfied, the name property suddenly switches to the other input descriptor id, so it's wrong the other way around (this is if I only provide the first credential):

[
    {
      "rule": "pick",
      "from": [
        "A"
      ],
      "vc_path": [
        "$.verifiableCredential[0]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea2549",
      "count": 1
    },
    {
      "rule": "pick",
      "from": [
        "B"
      ],
      "vc_path": [],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea2549",
      "count": 1
    }
 ]

Then when I only provide the second credential and not the first, it switches again from wich input descriptor id it uses:

[
    {
      "rule": "pick",
      "from": [
        "A"
      ],
      "vc_path": [],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    },
    {
      "rule": "pick",
      "from": [
        "B"
      ],
      "vc_path": [
        "$.verifiableCredential[0]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    }
 ]

It seems there's a bug in the input_desciptor that is used for the name property, as the other fields (which credential from which group it picks for the submission requirement) are correct in this case.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
Presentation Definition
{
   "id":"022c2664-68cc-45cc-b291-789ce8b599eb",
   "name":"Presentation Definition",
   "purpose":"We want to know your name and e-mail address (will not be stored)",
   "input_descriptors":[
      {
         "id":"c2834d0e-3c95-4721-b21a-40e3d7ea2549",
         "purpose":"To access this portal your DBC Conference 2023 attendance proof is required.",
         "group":[
            "A"
         ],
         "schema":[
            {
               "uri":"DBCConferenceAttendee",
               "required":true
            }
         ],
         "constraints":{
            "fields":[
               {
                  "path":[
                     "$.credentialSubject.event.name",
                     "$.vc.credentialSubject.event.name"
                  ],
                  "filter":{
                     "type":"string",
                     "pattern":"DBC Conference 2023"
                  }
               }
            ]
         }
      },
      {
         "id":"c2834d0e-3c95-4721-b21a-40e3d7ea25434",
         "purpose":"To access this portal you need to show your JFF Plugfest OpenBadge credential.",
         "group":[
            "B"
         ],
         "schema":[
            {
               "uri":"OpenBadgeCredential",
               "required":true
            }
         ]
      }
   ],
   "submission_requirements":[
      {
         "rule":"pick",
         "count":1,
         "from":"A"
      },
      {
         "rule":"pick",
         "count":1,
         "from":"B"
      }
   ]
}
Credentials
[
	"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDprZXk6ekRuYWVlY3Vacjg2OXZTNTl4R1BSTmRTTnFEVHBvc2pTWlVqQ1E3c1RoUkExeDRDNyN6RG5h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cml0ZXJpYSJ9LCJkZXNjcmlwdGlvbiI6IlRoaXMgd2FsbGV0IGNhbiBkaXNwbGF5IHRoaXMgT3BlbiBCYWRnZSAzLjAiLCJpZCI6IjAiLCJpbWFnZSI6eyJpZCI6Imh0dHBzOi8vdzNjLWNjZy5naXRodWIuaW8vdmMtZWQvcGx1Z2Zlc3QtMi0yMDIyL2ltYWdlcy9KRkYtVkMtRURVLVBMVUdGRVNUMi1iYWRnZS1pbWFnZS5wbmciLCJ0eXBlIjoiSW1hZ2UifSwibmFtZSI6Ik91ciBXYWxsZXQgUGFzc2VkIEpGRiBQbHVnZmVzdCAjMiAyMDIyIiwidHlwZSI6IkFjaGlldmVtZW50In0sInR5cGUiOiJBY2hpZXZlbWVudFN1YmplY3QifSwibmFtZSI6IkFjaGlldmVtZW50IENyZWRlbnRpYWwifSwianRpIjoidXJuOnV1aWQ6YjA3MzZhMDMtMGJlYy00NmE2LTkxZGEtMzJhZTVkZmJmMTU2In0.M7m5_E1hcCp13x4zWqZA6dASMh9sfNB9sr8Dwtm40vdQtPFyJ5PFESzPLhfv0kzyFAe3f_KMqZIbU7VKpsKACw"
]
Select Results (two credentials provided to `selectFrom`)
{
  "errors": [],
  "matches": [
    {
      "rule": "pick",
      "from": [
        "A"
      ],
      "vc_path": [
        "$.verifiableCredential[0]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    },
    {
      "rule": "pick",
      "from": [
        "B"
      ],
      "vc_path": [
        "$.verifiableCredential[1]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    }
  ],
  "areRequiredCredentialsPresent": "info",
  "verifiableCredential": [
    "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDprZXk6ekRuYWVlY3Vacjg2OXZTNTl4R1BSTmRTTnFEVHBvc2pTWlVqQ1E3c1RoUkExeDRDNyN6RG5hZWVjdVpyODY5dlM1OXhHUFJOZFNOcURUc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I6IlRoaXMgd2FsbGV0IGNhbiBkaXNwbGF5IHRoaXMgT3BlbiBCYWRnZSAzLjAiLCJpZCI6IjAiLCJpbWFnZSI6eyJpZCI6Imh0dHBzOi8vdzNjLWNjZy5naXRodWIuaW8vdmMtZWQvcGx1Z2Zlc3QtMi0yMDIyL2ltYWdlcy9KRkYtVkMtRURVLVBMVUdGRVNUMi1iYWRnZS1pbWFnZS5wbmciLCJ0eXBlIjoiSW1hZ2UifSwibmFtZSI6Ik91ciBXYWxsZXQgUGFzc2VkIEpGRiBQbHVnZmVzdCAjMiAyMDIyIiwidHlwZSI6IkFjaGlldmVtZW50In0sInR5cGUiOiJBY2hpZXZlbWVudFN1YmplY3QifSwibmFtZSI6IkFjaGlldmVtZW50IENyZWRlbnRpYWwifSwianRpIjoidXJuOnV1aWQ6YjA3MzZhMDMtMGJlYy00NmE2LTkxZGEtMzJhZTVkZmJmMTU2In0.M7m5_E1hcCp13x4zWqZA6dASMh9sfNB9sr8Dwtm40vdQtPFyJ5PFESzPLhfv0kzyFAe3f_KMqZIbU7VKpsKACw"
  ],
  "warnings": []
}
Select Results (only first credential provided to `selectFrom`)
{
  "errors": [
    {
      "tag": "UriEvaluation",
      "status": "error",
      "message": "@context URI for the of the candidate input MUST be equal to one of the input_descriptors object uri values exactly.: $.input_descriptors[1]: $.verifiableCredential[0]"
    },
    {
      "tag": "MarkForSubmissionEvaluation",
      "status": "error",
      "message": "The input candidate is not eligible for submission: $.input_descriptors[1]: $.verifiableCredential[0]"
    }
  ],
  "matches": [
    {
      "rule": "pick",
      "from": [
        "A"
      ],
      "vc_path": [
        "$.verifiableCredential[0]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea2549",
      "count": 1
    },
    {
      "rule": "pick",
      "from": [
        "B"
      ],
      "vc_path": [],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea2549",
      "count": 1
    }
  ],
  "areRequiredCredentialsPresent": "error",
  "verifiableCredential": [
    "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDprZXk6ekRuYWVlY3Vacjg2OXZTNTl4R1BSTmRTTnFEVHBvc2pTWlVqQ1E3c1RoUkExeDRDNyN6RG5hZWVjdVpyODY5dlM1OXhHUFJOZFNOcURUcG9zalNaVWpDUTdzVGhSQTF4NEM3In0.eyJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiREJDQ29uZmVyZW5jZUF0dGVuZGVlIl0sImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImZpcnN0TmFtZSI6IkphbiIsImxhc3ROYW1lIjoiUmlldHZlbGQiLCJlbWFpbCI6ImphbkBhbmltby5pZCIsImV2ZW50Ijp7Im5hbWUiOiJEQkMgQ29uZmVyZW5jZSAyMDIzIiwiZGF0ZSI6IjIwMjMtMDYtMjYifX19LCJpc3MiOiJkaWQ6a2V5OnpEbmFlZWN1WnI4Njl2UzU5eEdQUk5kU05xRFRwb3NqU1pVakNRN3NUaFJBMXg0QzciLCJzdWIiOiJkaWQ6andrOmV5SmpjbllpT2lKUUxUSTFOaUlzSW10MGVTSTZJa1ZESWl3aWVDSTZJbUZqWWtsUmFYVk5jek5wT0Y5MWMzcEZha295ZEhCVWRGSk5ORVZWTTNsNk9URlFTRFpEWkVneVZqQWlMQ0o1SWpvaVgwdGplVXhxT1haWFRYQjBibTFMZEcwME5rZHhSSG80ZDJZM05FazFURXRuY213eVIzcElNMjVUUlNKOSIsIm5iZiI6MTY4NTQ0ODAwMH0.GpNndHFkLQlR7wtl4loorizB7jCXArv6YIPW5ckmFP92BXHd4o_bX13osah_3o2iqjN7SWjwex_L3COmB02ysg"
  ],
  "warnings": []
}
Select Results (only second credential provided to `selectFrom`)
{
  "errors": [
    {
      "tag": "UriEvaluation",
      "status": "error",
      "message": "@context URI for the of the candidate input MUST be equal to one of the input_descriptors object uri values exactly.: $.input_descriptors[0]: $.verifiableCredential[0]"
    },
    {
      "tag": "FilterEvaluation",
      "status": "error",
      "message": "Input candidate does not contain property: $.input_descriptors[0]: $.verifiableCredential[0]"
    },
    {
      "tag": "MarkForSubmissionEvaluation",
      "status": "error",
      "message": "The input candidate is not eligible for submission: $.input_descriptors[0]: $.verifiableCredential[0]"
    }
  ],
  "matches": [
    {
      "rule": "pick",
      "from": [
        "A"
      ],
      "vc_path": [],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    },
    {
      "rule": "pick",
      "from": [
        "B"
      ],
      "vc_path": [
        "$.verifiableCredential[0]"
      ],
      "name": "c2834d0e-3c95-4721-b21a-40e3d7ea25434",
      "count": 1
    }
  ],
  "areRequiredCredentialsPresent": "error",
  "verifiableCredential": [
    "eyJraWQiOiJkaWQ6andrOmV5SnJkSGtpT2lKUFMxQWlMQ0oxYzJVaU9pSnphV2NpTENKamNuWWlPaUpGWkRJMU5URTVJaXdpYTJsa0lqb2lOMlEyWTJKbU1qUTRPV0l6TkRJM05tSXhOekl4T1RBMU5EbGtNak01TVRnaUxDSjRJam9pUm01RlZWVmhkV1J0T1RsT016QmlPREJxY3poV2REUkJiazk0ZGxKM1dIUm5VbU5MY1ROblFrbDFPQ0lzSW1Gc1p5STZJa1ZrUkZOQkluMCMwIiwidHlwIjoiSldUIiwiYWxnIjoiRWREU0EifQ.eyJpc3MiOiJkaWQ6andrOmV5SnJkSGtpT2lKUFMxQWlMQ0oxYzJVaU9pSnphV2NpTENKamNuWWlPaUpGWkRJMU5URTVJaXdpYTJsa0lqb2lOMlEyWTJKbU1qUTRPV0l6TkRJM05tSXhOekl4T1RBMU5EbGtNak01TVRnaUxDSjRJam9pUm01RlZWVmhkV1J0T1RsT016QmlPREJxY3poV2REUkJiazk0ZGxKM1dIUm5VbU5MY1ROblFrbDFPQ0lzSW1Gc1p5STZJa1ZrUkZOQkluMCIsInN1YiI6ImRpZDpqd2s6ZXlKcmRI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Y3QifSwibmFtZSI6IkFjaGlldmVtZW50IENyZWRlbnRpYWwifSwianRpIjoidXJuOnV1aWQ6YjA3MzZhMDMtMGJlYy00NmE2LTkxZGEtMzJhZTVkZmJmMTU2In0.M7m5_E1hcCp13x4zWqZA6dASMh9sfNB9sr8Dwtm40vdQtPFyJ5PFESzPLhfv0kzyFAe3f_KMqZIbU7VKpsKACw"
  ],
  "warnings": []
}
@sksadjad sksadjad self-assigned this Jun 29, 2023
@sksadjad sksadjad added the bug Something isn't working label Jun 29, 2023
@nklomp nklomp added the in progress Work is being done label Jul 4, 2023
@nklomp
Copy link
Contributor

nklomp commented Jul 4, 2023

Fixed in the next release as part of #122

@nklomp nklomp closed this as completed Jul 4, 2023
@nklomp nklomp removed the in progress Work is being done label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants