Hi Jeremias,

Thanks for the information. I will check the code and specs as you stated.

Cheers,
Venkat.

Jeremias Maerki wrote:
On 20.10.2009 16:30:49 Venkat Reddy wrote:
Hi,

Please help me in finding the code related to this TLE value truncation happening for more than 254 bytes. The corresponding bug is already raised...

https://issues.apache.org/bugzilla/show_bug.cgi?id=47941

The MODCA documentation clearly states that 254 bytes allowed for the TLE 
value. I would like to take your inputs before digging into the code...

1. Is the behaviour correct (truncating after 254 bytes)?

I think so. There seems to be an unarchitected mechanism [1] to extend
the field length but the spec says its use is discouraged.

[1] MO:DCA spec, Eighth Edition, "Structured Field Syntax", SFI
semantics, Bytes 6-7, page 21/22.

2. Do we need to warn the user in this case?

If the truncated part is not just whitespace, then yes, IMO.

Please point me to the code points and guide me to resolve this problem, if you 
can...

org.apache.fop.afp.modca.TagLogicalElement, line 128.
Simply check if the value is longer than allowed and then check if the
truncated part contains anything other than spaces.

Thanks,
Venkat.




Jeremias Maerki



Reply via email to