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
Environment (local platform and source/target platforms):
Windows 10
VS 2019
DacFx shows permanent diff on grantor option in permission definition if the permission is on user-defined type or schema. Other permissions (on sp or fn) are not affected by this bug. GRANT <whatever> ON SCHEMA::my_schema AS dbo is a valid syntax and should not produce any diff between project sources and target database.
Run "Schema compare" from sources to the db and back from db to sources, see no diff
Uncomment AS dbo lines in permissions.sql
Run "Schema compare" from sources to db - no diff, back from db to sources - see permanent diff which cannot be fixed by redeployment
Diff on schema permissions:
Diff on type permissions:
As a workaround we have a rule in our custom linter which prevents devs from defining grantor in permissions on types and schemas.
Did this occur in prior versions? If not - which version(s) did it work in?
If I'm not mistaken then in some of previous versions there was the same bug in forward-comparison from the project to DB but I have no proofs, unable to reproduce this behavior right now.
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered:
DacFx shows permanent diff on grantor option in permission definition if the permission is on user-defined type or schema. Other permissions (on sp or fn) are not affected by this bug.
GRANT <whatever> ON SCHEMA::my_schema AS dbo
is a valid syntax and should not produce any diff between project sources and target database.Steps to Reproduce:
Minimal repro: permissions_diff.zip
AS dbo
lines inpermissions.sql
Diff on schema permissions:
![image](https://private-user-images.githubusercontent.com/13050317/300736897-76959e41-8f31-4a5d-8b3d-268a5d4546d1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDg4NDcsIm5iZiI6MTcyMTQwODU0NywicGF0aCI6Ii8xMzA1MDMxNy8zMDA3MzY4OTctNzY5NTllNDEtOGYzMS00YTVkLThiM2QtMjY4YTVkNDU0NmQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE3MDIyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4NzMyOWVhOWYzNGFhMzU4NDIyZGE1MjM2NWI3YTQ3ZWExNjdmOTJhY2ViNGM2NjBkNmZiZjQwMDA4YTE5OTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QYsCGV1DdBoeSEQzP89IQSEzDFg3yzDRsX9VOcb5Gko)
Diff on type permissions:
![image](https://private-user-images.githubusercontent.com/13050317/300737393-8e837cb4-0b50-41b6-9d61-c47c992c91df.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDg4NDcsIm5iZiI6MTcyMTQwODU0NywicGF0aCI6Ii8xMzA1MDMxNy8zMDA3MzczOTMtOGU4MzdjYjQtMGI1MC00MWI2LTlkNjEtYzQ3Yzk5MmM5MWRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE3MDIyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3NjhlNTljMjg1OGZjYmZlZmQ2YmU2N2E2NzYxYzQ1YjJmYWNhMjFjNTg2NWNlZjA2Y2FhOGFkYjhiOTViMjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uS7Q7M_o4YAon2UtqF9eCAxmfpBuvLlNX-bgRYQWLdM)
As a workaround we have a rule in our custom linter which prevents devs from defining grantor in permissions on types and schemas.
Did this occur in prior versions? If not - which version(s) did it work in?
If I'm not mistaken then in some of previous versions there was the same bug in forward-comparison from the project to DB but I have no proofs, unable to reproduce this behavior right now.
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered: