-
Notifications
You must be signed in to change notification settings - Fork 18
[Appstore] No Error message if PERMISSION.json file not present for app #142
Comments
@trademkose do you see an easy way to suppress the dialogue in case the file is not available? |
Just as an idea: There could also be a message saying "No permission restriction" in case no |
@rohoet Actually, this is the other way arround. The PERMISSIONS.json defines what an app requires to access on vehicle side. Thus, the dialogue would say something like "No permissions required". However, I still prefer to not show anything in case the file is not available as it is just an undefined state and we cannot say whether there are no restrictions ore there are restrictions but the file was not uploaded. |
I think every single application has to have PERMISSIONS.json file even if the application doesn't require permission. |
Valid point. But then we should make sure already at the upload of an app that the file is present. Would it be possible to add a dialog to the upload that asks for the file? |
@bs-jokri I have a pull request about this issue. I have added a controller to make sure that the permission file is presented for the application. This controller works on Artifact File editor page during the uploading artifacts. If there is no permission file, the error will occur like this; And then, If you want to install the application when there is no permission file, you will see the error message also and you can not install the application. If you added the permission file but it is empty, in this case you will see this warning message like this and you can install the application after this warning message; So the PERMISSIONS.json file is a mandatory artifact for every single application. |
The new consent management feature (#113) introduces a new dialogue to provide certain rights to an app prior installing an app. The rights are configured in a PERMISSION.json file stored beside the actual app image in an hawkbit instance.
If the PERMISSIONS.json file is not present the user will see an error message saying the PERMISSION.json file is missing. It would be better to not show an error message if the file is not present.
The text was updated successfully, but these errors were encountered: