Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-7868

Perforce: Submitted UTF-8 file with BOM header shows up as binary on review

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 4.7.0
    • 4.1.1, 4.2.0, 4.3.1, 4.4.1, 4.4.2, 4.6.0
    • None

    Description

      Summary

      Whenever a file with a utf8 Perforce filetype containing a BOM header is submitted to depot, the Crucible review with this file says the file is binary.

      Steps to Reproduce

      1. Submit a file with utf8 Perforce filetype containing a BOM header to the depot
      2. Wait until this file is indexed
      3. Add this file into a new or existing review
      4. Try to open this file
      5. Crucible will say that the file is binary

      Expected Results

      Crucible should show the file source

      Actual Results

      Crucible is saying that the file is binary, offering the option to download it.

      Perforce versions

      1. 2015.2
      2. 2016.2

      Workarounds

      • Attach files manually to review works fine — review shows utf8 file as expected.
        OR
      • Change the Perforce filetype to text with removing BOM header

      Attachments

        1. File_Added_To_Review.png
          File_Added_To_Review.png
          95 kB
        2. File_In_Depot.png
          File_In_Depot.png
          9 kB
        3. File_Shown_As_Binary.png
          File_Shown_As_Binary.png
          72 kB
        4. Perforce_Version.png
          Perforce_Version.png
          15 kB
        5. Repo_Config1.png
          Repo_Config1.png
          69 kB
        6. Repo_Config2.png
          Repo_Config2.png
          68 kB
        7. TestClassUTF8.cs
          0.3 kB

        Issue Links

          Activity

            People

              mtokarski@atlassian.com Marek Tokarski
              fkraemer Felipe Kraemer
              Votes:
              36 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 0.75h
                  0.75h