[#379] Add Iana CharsetReader for Oracle integration #379
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#379
Loading…
Reference in a new issue
No description provided.
Delete branch "pogpp/frostfs-s3-gw:bugfix/update_decoder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Pavel Pogodaev p.pogodaev@yadro.com
[#] Add Iana CharsetReader for Oracle integrationto [#379] Add Iana CharsetReader for Oracle integrationd880fbd106
toe1c887e6c4
e1c887e6c4
to48e5ce1d10
@ -322,6 +323,13 @@ func (s *appSettings) NewXMLDecoder(r io.Reader) *xml.Decoder {
if s.defaultXMLNS {
dec.DefaultSpace = awsDefaultNamespace
}
dec.CharsetReader = func(charset string, reader io.Reader) (io.Reader, error) {
Since setting this field doesn't require any config parameter we can (and should) move assignment out of critical section (mutex)
@ -325,0 +326,4 @@
dec.CharsetReader = func(charset string, reader io.Reader) (io.Reader, error) {
enc, err := ianaindex.IANA.Encoding(charset)
if err != nil {
return nil, fmt.Errorf("charset %s: %s", charset, err.Error())
Let's write
@ -37,0 +38,4 @@
<CompleteMultipartUpload>
<Part>
<PartNumber>1</PartNumber>
<ETag>
It's better write like this
48e5ce1d10
tode09c0bf67
de09c0bf67
to4f99dc1a68
Please update changelog
4f99dc1a68
todb05021786