[SOLVED] EnrichedAssetEvent.ParentId is always default value

I have…

  • [ X] Read the following guideline: Troubleshooting and Support | Squidex. I understand that my support request might get deleted if I do not follow the guideline.
  • [ X] Used code blocks with ``` to format my code examples like JSON or logs properly.

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • [ X] Bug report
  • Performance issue
  • Documentation issue or request

Current behavior

When sending Asset events to a webhook the parentId property is always the default GUID value (onlys 0s) even when the asset is in a folder (ie has a parentId).
example:

Request:
POST: https://httpbin.org/anything HTTP/1.1
X-Signature: 6qY22NBNLEosoKQFeBR4f26lQ0gkmYoWYkFXclk1zdw=
traceparent: 00-3a043038a6fb814eae09f5c9f36e8d45-0b400039233b6f22-01
Content-Type: application/json; charset=utf-8
Content-Length: 1102

{
  "type": "AssetAnnotated",
  "payload": {
    "$type": "EnrichedAssetEvent",
    "type": "Annotated",
    "id": "a913aced-257b-46cf-beb5-4d0c110886fd",
    "created": "2024-12-03T13:34:09Z",
    "lastModified": "2024-12-03T13:35:33Z",
    "createdBy": "subject:66717a021c1e09a5562081d9",
    "lastModifiedBy": "subject:66717a021c1e09a5562081d9",
    "parentId": "00000000-0000-0000-0000-000000000000",
    "mimeType": "image/png",
    "fileName": "ACCUEIL.png",
    "fileHash": "k/ZNvtsVMVnJ0BiSmkY0nhgB4Z1MV3bmofiq7ZLP8t8=",
    "slug": "accueil.png",
    "fileVersion": 0,
    "fileSize": 211976,
    "isProtected": true,
    "pixelWidth": 1440,
    "pixelHeight": 330,
    "assetType": "Image",
    "metadata": {
      "pixelWidth": 1440,
      "pixelHeight": 330,
      "description": "PNG File"
    },
    "isImage": true,
    "partition": 696911982,
    "actor": "subject:66717a021c1e09a5562081d9",
    "appId": "f8d4ec62-7cca-4f41-858a-5b730b0c4819,ade-test",
    "timestamp": "2024-12-03T13:35:33Z",
    "name": "AssetAnnotated",
    "version": 1
  },
  "timestamp": "2024-12-03T13:35:33Z"
}

Expected behavior

The parentId should reflect the real values of the asset parentId

Minimal reproduction of the problem

Create a rule for AssetChanged event. Create an asset inside an Assert Folder, when checking the rules log for the generated event the parentId is always only 0s.

Environment

App Name:

  • [ X] Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Version: [VERSION]

Browser:

  • Chrome (desktop)
  • Chrome (Android)
  • Chrome (iOS)
  • Firefox
  • Safari (desktop)
  • Safari (iOS)
  • IE
  • [ X] Edge

Others:

Thanks. I can reproduce that. Bugfix will be there soon.

This has been fixed.

Thank you for the quick fix.

1 Like