Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

policies generated by policy playground cannot be expanded

Aperta
#561 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@lgblaumeiser ci sta già lavorando.

Dal 27/5/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
HCL
Stelle
19
Fork
33
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-tractusx/tutorial-resources

Tutte le issue di eclipse-tractusx/tutorial-resources

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.