Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-16922

When uploading pictures to share their metadata is not populated properly if the metadata has chinese characters

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 5.1.0.12, 5.1.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      RHEL, Tomcat, Oracle/Postgres
    • Bug Priority:
      Category 3
    • ACT Numbers:

      00737579

    • Premier Customer:
      Yes

      Description

      [Summary]

      Premier customer has various vendors in different countries who upload their photos via alfresco share. These files on upload are being created with certain metadata fields, however the metadata populated in share displays incorrect characters if the characters were written in chinese.

      [Steps to reproduce]

      1. Install Alfresco 5.1.0.12 using the installer
      2. Start alfresco
      3. Login to alfresco share as the admin user
      4. Navigate to the repository and upload the attached jpg file
      5. Click on the file's properties to view all the pre-populated metadata

      [Current behaviour]

      Some metadata like description is populated with "?" characters

      [Expected behaviour]

      All extracted metadata is populated as the OS shows it

      [Analysis to date]

      Turning on debugging for metadata extraction shows the the OS is unable to read some of the chinese characters

       2016-10-07 10:27:41,395  DEBUG [content.metadata.AbstractMappingMetadataExtracter] [http-bio-8080-exec-10] Converted extracted raw values to system values: 
         Raw Properties:    {Artist=蘇正謙, Exif Version=2.30, Compression Type=Baseline, Image Description=佔中踏入第五日 - 黃之鋒。 蘇正謙攝(Pix By : So So) 2014/10/02 港聞, Thumbnail Compression=JPEG (old-style), By-line=?�正�, Number of Components=3, Component 2=Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert, Focal Length=135.0 mm, Component 1=Y component: Quantization table 0, Sampling factors 1 horiz/1 vert, tiff:ResolutionUnit=Inch, Date/Time Original=2014:10:02 18:01:09, Shutter Speed Value=1/159 sec, tiff:Make=NIKON CORPORATION, Component 3=Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert, F-Number=F2, tiff:BitsPerSample=8, User Comment=null, File Source=Digital Still Camera (DSC), meta:creation-date=2014-10-02T18:01:09, Creation-Date=2014-10-02T18:01:09, Make=NIKON CORPORATION, Metering Mode=Multi-segment, Orientation=Top, left side (Horizontal / normal), Contrast=None, tiff:Orientation=1, tiff:Software=Adobe Photoshop CS5.1 Macintosh, Thumbnail Offset=0 bytes, Gain Control=Low gain up, Author=?�正�, Exif Image Height=945 pixels, Unknown tag (0x0106)=2, tiff:YResolution=200.0, Y Resolution=72 dots per inch, *dc:description=�������W�����b�������n�u�����Q�G���믫�v�C 
      (��ĵ�M��  �����W�~�T�u����),*
      
      

      but it's able to read others properly

      2016-10-07 10:27:41,395  DEBUG [content.metadata.AbstractMappingMetadataExtracter] [http-bio-8080-exec-10] Converted extracted raw values to system values: 
         Raw Properties:    {Artist=蘇正謙, Exif Version=2.30, Compression Type=Baseline, Image *Description=佔中踏入第五日 - 黃之鋒。 蘇正謙攝(Pix By : So So) 2014/10/02 港聞*, Thumbnail Compression=JPEG (old-style), By-line=?�正�, Number of Components=3, Component 2=Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert, Focal Length=135.0 mm, Component 1=Y component: Quantization table 0, Sampling factors 1 horiz/1 vert, tiff:ResolutionUnit=Inch, Date/Time Original=2014:10:02 18:01:09, Shutter Speed Value=1/159 sec, tiff:Make=NIKON CORPORATION, Component 3=Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert, F-Number=F2, tiff:BitsPerSample=8, User Comment=null, File Source=Digital Still Camera (DSC), meta:creation-date=2014-10-02T18:01:09, Creation-Date=2014-10-02T18:01:09, Make=NIKON CORPORATION, Metering Mode=Multi-segment, Orientation=Top, left side (Horizontal / normal), Contrast=None, tiff:Orientation=1, tiff:Software=Adobe Photoshop CS5.1 Macintosh, Thumbnail Offset=0 bytes, Gain Control=Low gain up, Author=?�正�, Exif Image Height=945 pixels, Unknown tag (0x0106)=2, tiff:YResolution=200.0, Y Resolution=72 dots per inch, dc:description=�������W�����b�������n�u�����Q�G���믫�v�C 
      (��ĵ�M��  �����W�~�T�u����),
      

      I have added this property to the JAVA_OPTS

      -Dfile.encoding=Big5-HKSCS
      

      This seems to help but the customer would like to know if this is a viable solution.

        Attachments

        1. afterShareUpload.png
          afterShareUpload.png
          117 kB
        2. po0000947950.jpg
          po0000947950.jpg
          438 kB
        3. viewFromTheOS.png
          viewFromTheOS.png
          269 kB

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                jportillo Jose Portillo
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel