You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/07/16 09:56:00 UTC

[jira] [Updated] (HDDS-5455) OM shutdown when creating key with malformed characters

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

ASF GitHub Bot updated HDDS-5455:
---------------------------------
    Labels: pull-request-available  (was: )

> OM shutdown when creating key with malformed characters
> -------------------------------------------------------
>
>                 Key: HDDS-5455
>                 URL: https://issues.apache.org/jira/browse/HDDS-5455
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Janus Chow
>            Assignee: Janus Chow
>            Priority: Major
>              Labels: pull-request-available
>
> In OzoneManagerStateMachine.runCommand, if there is a Runtime exception, OM will be terminated.
> In our case, the user would like to create an object with malformed characters in keyName, and the following error happened and throws an InvalidPathException, which is a Runtime Exception causing the OM's shutdown.
> Normally this wouldn't happen, since a user can not easily create an invalid keyName with UTF-8. It happened in our environment because our OM started with the property of "file.encoding" and "sun.jnu.encoding" set to "ANSI_X3.4-1968", and it's easy for the user to write a invalid keyName.
> This issue can be avoided when running in a good environment, but it's still not reasonable that a client create key operation causing the shutdown of OM.
> This ticket is to check the keyName if it fits the current encoding of OM, if not just return the OMException of "INVALID_KEY_NAME".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org