Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10292

DefaultFilenamePolicy.ParamsCoder loses information whether Params's resource ID is file/directory

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.25.0
    • sdk-java-core

    Description

      DefaultFilenamePolicy.ParamsCoder uses simple StringUtf8Coder for encoding/decoding DefaultFilenamePolicy.Params's baseFilename and therefore looses information whether Params.baseFilename resource ID is file or directory.

      The result is that it's effectively preventing user to define directory as baseFilename provider when using dynamic destinations because after deserialization it's translated to file.

      Solution is easy - use ResourceIdCoder for encoding/decoding.

      Attachments

        Issue Links

          Activity

            People

              davidak09 David Janicek
              davidak09 David Janicek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 20m
                  4h 20m