[ https://issues.apache.org/jira/browse/RANGER-4048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678040#comment-17678040 ]
Abhishek Kumar commented on RANGER-4048: ---------------------------------------- /ugsyncAudits/\{syncSource} API endpoint is deprecated and can be removed. The sync source can be used as a search criterion in the API endpoint /ugsyncAudits to achieve the same. > Ranger asset ugsyncAudits/{syncSource} rest api is not handling the special > characters input case > ------------------------------------------------------------------------------------------------- > > Key: RANGER-4048 > URL: https://issues.apache.org/jira/browse/RANGER-4048 > Project: Ranger > Issue Type: Bug > Components: Ranger > Reporter: Abhilash Perla > Priority: Minor > > Test case steps followed: > Called the API with test user > {noformat} > https://{ranger_base_url}/service/assets/ugsyncAudits/^&*U#$nix{noformat} > Expected Result: 400 with error handled. > Actual Result: The error is not handled and returned bad request. > Output: > {noformat} > <!doctype html> > <html lang="en"><head> > <title>HTTP Status 400 – Bad Request</title> > <style type="text/css"> > body { > font-family: Tahoma, Arial, sans-serif; > } h1, > h2, > h3, > b { > color: white; > background-color: #525D76; > } h1 { > font-size: 22px; > } h2 { > font-size: 16px; > } h3 { > font-size: 14px; > } p { > font-size: 12px; > } a { > color: black; > } .line { > height: 1px; > background-color: #525D76; > border: none; > } > </style> > </head><body> > <h1>HTTP Status 400 – Bad Request</h1> > </body></html>{noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)