[ 
https://issues.apache.org/jira/browse/RANGER-4854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Bhavsar updated RANGER-4854:
-----------------------------------
    Description: 
UI Policy import is failing even when we are checking the Override Policy 
option. We are seeing below error message in UI. 

error msg 
{code:java}
Unrecognized field \"listSize\" (Class 
org.apache.ranger.view.RangerExportPolicyList), not marked as ignorable\n at 
[Source: java.io.StringReader@5d0fd801; line: 1, column: 48449] (through 
reference chain: 
org.apache.ranger.view.RangerExportPolicyList[\"listSize\"]){code}
Steps to reproduce:
 # From UI export policy json from top right export button.
 # Now import the same policy json and make sure to  check the "Override 
Policy" checkbox. we would get the alert notification in UI with the error 
message.

snapshot attached for reference

  was:
 

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.

snapshot attached for reference

        Summary: Policy Import from UI is failing.  (was: UI error message seen 
while importing the policy for any service is different)

> Policy Import from UI is failing.
> ---------------------------------
>
>                 Key: RANGER-4854
>                 URL: https://issues.apache.org/jira/browse/RANGER-4854
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Vishal Bhavsar
>            Priority: Major
>         Attachments: Screenshot from 2024-07-12 15-32-07.png
>
>
> UI Policy import is failing even when we are checking the Override Policy 
> option. We are seeing below error message in UI. 
> error msg 
> {code:java}
> Unrecognized field \"listSize\" (Class 
> org.apache.ranger.view.RangerExportPolicyList), not marked as ignorable\n at 
> [Source: java.io.StringReader@5d0fd801; line: 1, column: 48449] (through 
> reference chain: 
> org.apache.ranger.view.RangerExportPolicyList[\"listSize\"]){code}
> Steps to reproduce:
>  # From UI export policy json from top right export button.
>  # Now import the same policy json and make sure to  check the "Override 
> Policy" checkbox. we would get the alert notification in UI with the error 
> message.
> snapshot attached for reference



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to