Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Simple filterExpression with constraint does not work (BusinessPartnerNumber = "something")

オープン
#430 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

bug
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:
image

However, the same query does not work when I try to query it by its BusinessPartnerNumber:
image

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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-tractusx/tutorial-resources のほかの issue

eclipse-tractusx/tutorial-resources の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。