You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Libor Nenadál (JIRA)" <ji...@apache.org> on 2009/12/17 15:33:18 UTC

[jira] Created: (SANSELAN-34) FieldTypeASCII does not conform to the EXIF specification.

FieldTypeASCII does not conform to the EXIF specification.
----------------------------------------------------------

                 Key: SANSELAN-34
                 URL: https://issues.apache.org/jira/browse/SANSELAN-34
             Project: Commons Sanselan
          Issue Type: Bug
            Reporter: Libor Nenadál


According to EXIF specification "2 = ASCII An 8-bit byte containing one 7-bit ASCII code. The final byte is terminated with NULL."

Nevertheless the method FieldTypeASCII.getSimpleValue(TiffField entry) returns the string that contains NULL character in the end which is wrong. The NULL should not be included. For example try tag TiffConstants.TIFF_TAG_DATE_TIME.

Found in Sanselan 0.97.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SANSELAN-34) FieldTypeASCII does not conform to the EXIF specification.

Posted by "Charles Matthew Chen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANSELAN-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Matthew Chen closed SANSELAN-34.
----------------------------------------

    Resolution: Fixed

Committed a fix along the lines recommended by Libor.

http://svn.apache.org/viewvc?view=revision&revision=995534


> FieldTypeASCII does not conform to the EXIF specification.
> ----------------------------------------------------------
>
>                 Key: SANSELAN-34
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-34
>             Project: Commons Sanselan
>          Issue Type: Bug
>            Reporter: Libor Nenadál
>
> According to EXIF specification "2 = ASCII An 8-bit byte containing one 7-bit ASCII code. The final byte is terminated with NULL."
> Nevertheless the method FieldTypeASCII.getSimpleValue(TiffField entry) returns the string that contains NULL character in the end which is wrong. The NULL should not be included. For example try tag TiffConstants.TIFF_TAG_DATE_TIME.
> Found in Sanselan 0.97.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.