[
https://issues.apache.org/jira/browse/HIVE-24903?focusedWorklogId=633236&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-633236
]
ASF GitHub Bot logged work on HIVE-24903:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Aug/21 00:08
Start Date: 04/Aug/21 00:08
Worklog Time Spent: 10m
Work Description: github-actions[bot] closed pull request #2127:
URL: https://github.com/apache/hive/pull/2127
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 633236)
Time Spent: 50m (was: 40m)
> Change String.getBytes() to DFSUtil.string2Bytes(String) to avoid Unsupported
> Encoding Exception
> ------------------------------------------------------------------------------------------------
>
> Key: HIVE-24903
> URL: https://issues.apache.org/jira/browse/HIVE-24903
> Project: Hive
> Issue Type: Bug
> Reporter: dbgp2021
> Priority: Major
> Labels: pull-request-available
> Attachments: 1.patch
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Hello,
> I found that DFSUtil.string2Bytes(String) can be used here instead of
> String.getBytes(). Otherwise, the API String.getBytes() may cause potential
> risk of UnsupportedEncodingException since the behavior of this method when
> the string cannot be encoded in the default charset is unspecified. One
> recommended API is DFSUtil.string2Bytes(String) which provides more control
> over the encoding process and can avoid this exception.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)