Simple filterExpression with constraint does not work (BusinessPartnerNumber = "something")
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- api
調査の方向性
POST /management/v3/policydefinitions/request から開始し、EDC 0.7.3 を使用して BusinessPartnerNumber の検証エラーを再現します。エンドポイントの動作を、リンクされている Tractus-X EDC 0.8.0-rc3 Swagger 仕様と比較し、報告された PolicyDefinition スキーマ検証を追跡します。サポートされているフィルターフィールドとバージョン固有の動作が特定され、文書化または修正されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Current Behavior
Hi all! I'm creating an access policy to be used among some of my contracts, and I want to re-use the same policy for some of them. I'm able to create the policy with the following request body:
{
"@context": {
"@vocab": "https://w3id.org/edc/v0.0.1/ns/",
},
"@id": "{{POLICY_DEFINITION_ID}}",
"policy": {
"@context": "http://www.w3.org/ns/odrl.jsonld",
"@type": "Set",
"@id": "{{POLICY_DEFINITION_ID}}",
"odrl:permission": [
{
"odrl:action": "USE",
"odrl:constraint": {
"@type": "LogicalConstraint",
"odrl:and": [{
"@type": "Constraint",
"odrl:leftOperand": "BusinessPartnerNumber",
"odrl:operator": {
"@id": "odrl:eq"
},
"odrl:rightOperand": "BPNL123"
}]
}
}
]
}
}
Which gives me an IdResponse like:
{
"@type": "IdResponse",
"@id": "4fe7d4f3-9890-4cd9-9e1e-671faf8ba39b",
"createdAt": 1726832897018,
"@context": {
"@vocab": "https://w3id.org/edc/v0.0.1/ns/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"tx": "https://w3id.org/tractusx/v0.0.1/ns/",
"tx-auth": "https://w3id.org/tractusx/auth/",
"cx-policy": "https://w3id.org/catenax/policy/",
"odrl": "http://www.w3.org/ns/odrl/2/"
}
}
When I try to query by its ID using POST /management/v3/policydefinitions/request, it works seamsly:
However, the same query does not work when I try to query it by its BusinessPartnerNumber:
It brings back this Error validating schema: Field BusinessPartnerNumber not found on type class org.eclipse.edc.connector.controlplane.policy.spi.PolicyDefinition.
Where can I find this validation schema details? I was browsing the current repository but could not find anything mentioning that, nor the Swagger has any example for such.
I'm following the Swagger specs are provided in the following link:
https://app.swaggerhub.com/apis/eclipse-tractusx-bot/tractusx-edc/0.8.0-rc3
My EDC is on version 0.7.3.
Thank you all!
- 主要言語
- HCL
- スター
- 19
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-tractusx/tutorial-resources のほかの issue
-
policies generated by policy playground cannot be expanded再び着手できるかも @lgblaumeiser が 507 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
eclipse-tractusx/tutorial-resources#561 · コメント 1 件 · 担当者 1 名 ·
-
Dependency Issueオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
eclipse-tractusx/tutorial-resources#545 · コメント 8 件 · リアクション 4 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
eclipse-tractusx/tutorial-resources#512 · コメント 3 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
eclipse-tractusx/tutorial-resources#497 · コメント 2 件 ·
-
Postman Query catalogue call no longer works再び着手できるかも @AndrYurk が 665 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug good first issue
eclipse-tractusx/tutorial-resources#476 · コメント 14 件 · 担当者 1 名 ·
eclipse-tractusx/tutorial-resources の issue をすべて見る
似ている issue
-
ai-driven-qa bug Cosmetic
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
numberly/vault-db-injector#107 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
interledger/publisher-tools#931 ·
メンテナーはふだん 1 日以内に返信
-
area/import kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
refactor: replace numbered import aliases in platform/common, platform/fabricx, integration and ciオープンcleanup go hacktoberfest priority: low skill: good first issue status: ready for dev
難易度 2/5 半日 初心者へのやさしさ 72/100
hyperledger-labs/fabric-smart-client#2134 ·
メンテナーはふだん 1 日以内に返信