- Issue created by @tedbow
- πΊπΈUnited States tedbow Ithaca, NY, USA
Leaving assigned to myself. See not in summary
NOT DONE WITH SUMMARY PLEASE LET ME FINISH BEFORE ISSUE IS WORKED ON ETC(πtedbow)
Will finish later today, there are few steps I want to explain. Then I will bring over changes from π [PP-1] Add entity access checks to routes that deal with entities Postponed to start the MR
- πΊπΈUnited States tedbow Ithaca, NY, USA
Update the summary, not need to start the MR from the work on π [PP-1] Add entity access checks to routes that deal with entities Postponed
- πΊπΈUnited States tedbow Ithaca, NY, USA
Ok. I am guessing the change will make
entity-form-field-types-test.cy.js
fail for the field field_xbt_comment see https://git.drupalcode.org/project/experience_builder/-/merge_requests/9...Not sure it if is related but I did see problem with field_xbt_comment in π Radio button boolean fields can sometimes can be set in page data form Active
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
What's next here? The status is not clear.
This sounds like a beta blocker given the security implications?
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
Basically, if I got this right, this is the same than π Add field and entity access check on `ApiAutoSaveController::post()` Active with
`ApiLayoutController`
.The difference is that for publishing, we want to throw an
AccessDeniedException
if we don't have access to the field.For the layout, we just want to ignore the field, to prevent losing the changes other user would have made. As anyone publishing this would require to have all the needed permissions, they should be able to validate all field changes.
@Ted, can you confirm I'm right, and what's missing from the MR? (I think it is ready for review?)
- πΊπΈUnited States mglaman WI, USA
Per #10, let's postpone this on π Page status changes from "Published" to "Changed" even when no actual changes are made Active . Chatted w/ @tedbow and the conclusion was to postpone since both touch buildPreviewRenderable, then reopen to test.
- πΊπΈUnited States mglaman WI, USA
π Page status changes from "Published" to "Changed" even when no actual changes are made Active just landed.
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
Too good to be true, if we can do !1086-note_540820 this is RTBC.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
#10: π Add field and entity access check on `ApiAutoSaveController::post()` Active landed, but had the "field access" bits descoped to π Add field access check on `ApiAutoSaveController::post()` Active .
@penyaskito requested some extra test coverage.
I asked some Qs β AFAICT this entire problem is caused by #2862574: Add ability to track an entity object's dirty fields (and see if it has changed) β , would be good to see that A) confirmed/denied, B) if confirmed, a @todo pointing to it.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Maybe @penyaskito can still review this today, I canβt π
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
penyaskito β credited larowlan β .
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
LGTM, thanks for the extra explanations @tedbow and @larowlan!
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
Assigning @tedbow for commit, but needs a rebase
- πΊπΈUnited States tedbow Ithaca, NY, USA
We haven't had a chance to hear back from @wim leers about https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...
but since this issue just adds test coverage I think it is practical to commit. We could still change that behavior laterI will merge
-
tedbow β
committed 73dc521f on 0.x
Issue #3527244 by tedbow, penyaskito, wim leers, mglaman, larowlan: Add...
-
tedbow β
committed 73dc521f on 0.x
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
For posthumous review.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
+1 for pragmatism; +1 for not waiting for my approval when there's >=2 sign-offs, and all of that doubly so when it's a test-only MR! π
The combination of @tedbow's and @larowlan's explanations are solid. I think that for me, the thing that really connected the dots was realizing that "the form logic will ignore" was referring to XB's call to
setProgrammedBypassAccessCheck(FALSE)
.I think that'd be good to do a tiny follow-up MR on this issue to update the comment? https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...
- πΊπΈUnited States tedbow Ithaca, NY, USA
@wim leers created follow-up MR here with your suggested comment. Looks good to me
-
wim leers β
committed fd72618c on 0.x authored by
tedbow β
Issue #3527244 by tedbow, wim leers, larowlan: Clarify a crucial comment
-
wim leers β
committed fd72618c on 0.x authored by
tedbow β
Automatically closed - issue fixed for 2 weeks with no activity.