Hi,
using the provided notebook to set up the example application results in an AuthorizationError when I try to upload a pdf (or any other) file as attachment.
Reproduction Steps:
- Follow Notebook
- Start Server with mvn cds:watch
- Log In with admin/admin
- Open existing book
- Click Edit
- Upload File
- The following error screen is shown:
I've attached a log with the debug level log output
attachment-authorization-error.log
Interestingly, it works when I add the following to the admin-service.cds but I don't understand why this is necessary:
annotate AdminService.DraftAdministrativeData with @restrict: [
{ grant: ['READ'], to: 'admin' }
];
If it should work without this addition this seems to be a bug, if not, you might want to add it to your example (maybe with an explanation on why it is necessary.
Please let me know if you have problem reproducing.
Regards,
Mario