Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH] Add read privilege in access test for FK space
@ 2018-08-08 19:51 Nikita Pettik
  2018-08-13 10:27 ` Vladimir Davydov
  0 siblings, 1 reply; 2+ messages in thread
From: Nikita Pettik @ 2018-08-08 19:51 UTC (permalink / raw)
  To: tarantool-patches; +Cc: kyukhin, Nikita Pettik

After introducing foreign key constraints, space:drop() processes lookup
in _fk_constraint system space to drop child constraints (if any
exist). Thus, we must provide at least 'read' privilege for this space.
---
Branch: https://github.com/tarantool/tarantool/tree/np/fix-access-test
Issue: no corresponding issue
 test/box/access.result   | 3 +++
 test/box/access.test.lua | 1 +
 2 files changed, 4 insertions(+)

diff --git a/test/box/access.result b/test/box/access.result
index bc2a182da..c503babca 100644
--- a/test/box/access.result
+++ b/test/box/access.result
@@ -1443,6 +1443,9 @@ box.schema.user.grant('tester', 'read', 'space', '_sequence')
 box.schema.user.grant('tester', 'read', 'space', '_trigger')
 ---
 ...
+box.schema.user.grant('tester', 'read', 'space', '_fk_constraint')
+---
+...
 box.session.su("tester")
 ---
 ...
diff --git a/test/box/access.test.lua b/test/box/access.test.lua
index a7e636c79..fafdb130c 100644
--- a/test/box/access.test.lua
+++ b/test/box/access.test.lua
@@ -548,6 +548,7 @@ box.schema.user.grant('tester', 'create', 'universe')
 --box.schema.user.grant('tester', 'create' , 'sequence')
 box.schema.user.grant('tester', 'read', 'space', '_sequence')
 box.schema.user.grant('tester', 'read', 'space', '_trigger')
+box.schema.user.grant('tester', 'read', 'space', '_fk_constraint')
 box.session.su("tester")
 -- successful create
 s1 = box.schema.space.create("test_space")
-- 
2.15.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [tarantool-patches] [PATCH] Add read privilege in access test for FK space
  2018-08-08 19:51 [tarantool-patches] [PATCH] Add read privilege in access test for FK space Nikita Pettik
@ 2018-08-13 10:27 ` Vladimir Davydov
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Davydov @ 2018-08-13 10:27 UTC (permalink / raw)
  To: Nikita Pettik; +Cc: tarantool-patches, kyukhin

Pushed to 2.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-13 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-08 19:51 [tarantool-patches] [PATCH] Add read privilege in access test for FK space Nikita Pettik
2018-08-13 10:27 ` Vladimir Davydov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox