Hi all,
can someone tell me or give me a link to explanation of c8y_GlobalObjectConfiguration
? We have a custom Widget to display pictures, but on upload the binary needs c8y_Global fragment.
greets
Helmut
Hi all,
can someone tell me or give me a link to explanation of c8y_GlobalObjectConfiguration
? We have a custom Widget to display pictures, but on upload the binary needs c8y_Global fragment.
greets
Helmut
Hi @hgansmueller,
as you are already having a custom widget, why are you not just adding the c8y_Global
fragment when uploading these images as part of your code?
The c8y_GlobalObjectConfiguration
is read by certain parts of the UI to know if e.g. a device Configuration should be created for all users (with the c8y_Global
) fragment or not. In case you would like to reuse this configuration object for your logics you might be able to do so via the GlobalConfigService.
Regards,
Tristan
Hi Tristan_Bastian,
That was my mistake. I misunderstood my colleague. It’s about the image widget. We have one on the start page of the cockpit and everyone should be able to see the image, even if they are restricted. To do this, we need to be able to set c8y_Global for the binary. Unfortunately, the image widget does not allow us to do this and when replacing the image with the Rest API, we cannot pass the request header “object”. This only works when creating/uploading an image. Now we hoped that we could do this somehow with c8y_GlobalObjectConfiguration. Is that possible? Or is there another solution to our problem?
thx for help
greets
Helmut
Which version of Cockpit are you using?
The image widget is not using the c8y_GlobalObjectConfiguration
, but it is assigning the uploaded binary managedObject as a childAddition to the dashboard you’ve configured the widget on.
So as long as the user has access to the dashboard he should also be able to access the image assigned to it…
Regards,
Tristan
cockpit version is 1018.503.106
So as long as the user has access to the dashboard he should also be able to access the image assigned to it…
I can see the image under childAdditions but I don´t have access to them. I tried it some times with different images. All images are still under childAdditions although I have deleted the image widget.
Is it possible that it is a bug?
greets
Helmut
Deleting the image widget will not delete the image binaries, this is as expected.
Regarding not having access to the binary eventhough it is a childAddition of the dashboard: Please open a ticket with support to further investigate this.