Vishal Bhavsar created RANGER-4854:
--------------------------------------
Summary: UI error message seen while importing the policy for any
service is different
Key: RANGER-4854
URL: https://issues.apache.org/jira/browse/RANGER-4854
Project: Ranger
Issue Type: Bug
Components: Ranger
Reporter: Vishal Bhavsar
While importing the policy for any service if we do not check the Override
Policy option then we get an Error message in UI, this message is different
then what we use to see before.
error msg seen now
{code:java}
Unrecognized field \"listSize\" (Class
org.apache.ranger.view.RangerExportPolicyList), not marked as ignorable\n at
[Source: java.io.StringReader@8142902; line: 1, column: 12046] (through
reference chain: org.apache.ranger.view.RangerExportPolicyList[\"listSize\"])
{code}
error msg seen before
{code:java}
"(0) Validation failure: error code[3006], reason[Another policy already exists
for this name: policy-id=[425], service=[hive2]], field[policy name],
subfield[null], type[semantically incorrect] (1) Validation failure: error
code[3010], reason[Another policy already exists for matching resource:
policy-name=[all - global], service=[hive2]], field[resources], subfield[null],
type[semantically incorrect] " {code}
Steps to reproduce:
# From UI export policy for any service say for eg Hive.
# Now import the same policy for hive service without checking the "Override
Policy" checkbox. we would get the alert notification in UI with the error
message.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)