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

policies generated by policy playground cannot be expanded

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

@lgblaumeiser がすでに取り組んでいます。

2025年5月27日 から。

評価

この issue はまだ評価されていません。

説明

bug
Current Behavior

If I generate the simplest policy in the playground:

{
  "@context": [
    "http://www.w3.org/ns/odrl.jsonld",
    "https://w3id.org/tractusx/edc/v0.0.1",
    {
      "@vocab": "https://w3id.org/edc/v0.0.1/ns/"
    }
  ],
  "@type": "PolicyDefinition",
  "@id": "{{POLICY_ID}}",
  "policy": {
    "@type": "Set",
    "permission": [
      {
        "action": "use",
        "constraint": [
          {
            "leftOperand": "BusinessPartnerNumber",
            "operator": "eq",
            "rightOperand": "<bpnNumber>"
          }
        ]
      }
    ]
  }
}

and I try to expand it on the JSON-LD Playground
I get this error:

jsonld.InvalidUrl: Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.
Expected Behavior

to being able to expand the policy correctly.
The policy actually works if ingested in the Tractus-X connector because the context it's cached there, but the https://w3id.org/tractusx/edc/v0.0.1 url should point to the actual file uploaded somewhere to permit eventually other connectors or tools to being able to expand it correctly.

主要言語
HCL
スター
19
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

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

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

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

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