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
{{ message }}
Repository navigation
Commit 0b381cd
Browse filesBrowse the repository at this point in the historyBrowse files
describe('flow get_record serves the stored-metadata family the way the data door does (#21519)',()=>{
@@ -206,7 +227,7 @@ describe('flow get_record serves the stored-metadata family the way the data doo
206
227
}
207
228
});
208
229
209
-
for(construnAsof['system','user']asconst){
230
+
for(construnAsof['system']asconst){
210
231
for(constbranchof['one','list']asconst){
211
232
it(`runAs:'${runAs}', ${branch==='one' ? 'findOne' : 'find'} branch: the output and the written record carry the projected body and the door's keyed hash`,async()=>{
212
233
constcontrol=awaitdoorRow('sys_metadata');
@@ -229,6 +250,24 @@ describe('flow get_record serves the stored-metadata family the way the data doo
229
250
}
230
251
}
231
252
253
+
// [#27884] The user-identity run of a caller below datasource administration.
254
+
for(constbranchof['one','list']asconst){
255
+
it(`runAs:'user' below datasource administration, ${branch==='one' ? 'findOne' : 'find'} branch: the node is served no datasource row`,async()=>{
Copy file name to clipboardExpand all lines: packages/services/service-automation/src/builtin/get-record-stored-metadata-filter-refusal.integration.test.ts
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,10 @@
30
30
* when the resolved list reads the body.
31
31
*
32
32
* Controls: the data door refuses the same filters; a scalar-column filter on
33
-
* a family table is served projected, as #21519 serves it; and an ordinary
33
+
* a family table is served projected to a system run, as #21519 serves it, and
34
+
* no row to a user-identity run below datasource administration (#27884: a
35
+
* datasource definition's stored row is served only to holders of
36
+
* `manage_platform_settings`, which this triggering user is not); and an ordinary
34
37
* object whose columns share the family's column names is filtered and served
35
38
* exactly as stored.
36
39
*
@@ -334,7 +337,18 @@ describe("flow get_record refuses a filter that evaluates the stored-metadata fa
334
337
});
335
338
}
336
339
337
-
for(construnAsof['system','user']asconst){
340
+
it("runAs:'user' below datasource administration: a scalar-column filter on a family read runs and is served no datasource row (#27884)",async()=>{
0 commit comments