[
https://issues.apache.org/jira/browse/BEAM-7932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17547855#comment-17547855
]
Kenneth Knowles commented on BEAM-7932:
---------------------------------------
This issue has been migrated to https://github.com/apache/beam/issues/19566
> GcsFileSystem should validate directories and file names for \n chars
> ---------------------------------------------------------------------
>
> Key: BEAM-7932
> URL: https://issues.apache.org/jira/browse/BEAM-7932
> Project: Beam
> Issue Type: Bug
> Components: io-java-gcp
> Reporter: Daniel Mills
> Priority: P3
>
> Newlines are not valid characters in GCS object names
> ([https://cloud.google.com/storage/docs/naming]), but we don't currently
> validate for this. This leads to confusing errors if users accidentally
> include a trailing newline char on a string being passed into an IO.
> The particular place where this came up was with FileIO using AvroIO.sink,
> where the directory passed to to() had a trailing newline, but it looks like
> this will be a problem generally with FileIO + GCS.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)