You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an INSERT update contains a resource with multiple classes of which only one is writeable according to the mu-authorization configuration, it will only succeed if the last class to appear in the update is the known one.
Reproduction steps
Clone this repository: git clone [email protected]:sergiofenoll/inheritance-issue.git
Up the Docker containers using docker compose: cd inheritance-issue; docker compose up -d
Start the frontend with a simple reproduction: cd frontends/inheritance-frontend; eds -n=inheritance-issue_default --proxy=http://identifier
Start the frontend for the debug-auth-headers service: cd frontends/debug-auth-headers-frontend;EDI_EMBER_VERSION="3.15.1" eds -n=inheritance-issue_default --proxy=http://identifier --port=4300 --live-reload-port=49153
Go to http://localhost:4200, open your Network tab in the your development console and click the Create AJob button. Observe that the call fails and feel free to look at the mu-authorization logs. Observe that the executed query is trying to insert a resource with classes ext:AJob, ext:Job (in that order), and fails.
Go to http://localhost:4300 and execute the following update (and ignore the response body, it's lying):
Repo containing a reproduction: https://github.com/sergiofenoll/inheritance-issue
What
If an
INSERT
update contains a resource with multiple classes of which only one is writeable according to themu-authorization
configuration, it will only succeed if the last class to appear in the update is the known one.Reproduction steps
git clone [email protected]:sergiofenoll/inheritance-issue.git
docker compose
:cd inheritance-issue; docker compose up -d
cd frontends/inheritance-frontend; eds -n=inheritance-issue_default --proxy=http://identifier
debug-auth-headers
service:cd frontends/debug-auth-headers-frontend;EDI_EMBER_VERSION="3.15.1" eds -n=inheritance-issue_default --proxy=http://identifier --port=4300 --live-reload-port=49153
Create AJob
button. Observe that the call fails and feel free to look at the mu-authorization logs. Observe that the executed query is trying to insert a resource with classesext:AJob
,ext:Job
(in that order), and fails.The text was updated successfully, but these errors were encountered: