enonic / lib-guillotine

Apache License 2.0
3 stars 0 forks source link

Attachment field bug: `Parameter 'key' is required` #246

Closed reisfmb closed 2 years ago

reisfmb commented 2 years ago

I think I found a bug when trying to run a query to access an attachment field...

Part: image

Query: image

Error:

{
  errorType: 'DataFetchingException',
  message: "Exception while fetching data (/guillotine/get/components[2]/part/config/blackrock_demo/video_banner/video) : Parameter 'key' is required",
  locations: [ { line: 369, column: 5 } ],
  exception: {
    name: 'com.enonic.xp.resource.ResourceProblemException',
    message: "Parameter 'key' is required"
  }
}

Is this actually a bug or am I missing something? For me the query is ok since video is of type Attachment in the part: image