minio/pkg/policy
Harshavardhana 6695fd6a61
Add more context aware error for policy parsing errors (#8726)
In existing functionality we simply return a generic
error such as "MalformedPolicy" which indicates just
a generic string "invalid resource" which is not very
meaningful when there might be multiple types of errors
during policy parsing. This PR ensures that we send
these errors back to client to indicate the actual
error, brings in two concrete types such as

 - iampolicy.Error
 - policy.Error

Refer #8202
2020-01-03 11:28:52 -08:00
..
condition Add support for multiple admins (#8487) 2019-11-19 02:03:18 -08:00
action.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
action_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
actionset.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
actionset_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
effect.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
effect_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
error.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
id.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
id_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
policy.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
policy_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
principal.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
principal_test.go Update go mod with sem versions of our libraries (#7687) 2019-05-29 16:35:12 -07:00
resource.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
resource_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
resourceset.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
resourceset_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
statement.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
statement_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00