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

--- Comment #8 from Venkat Reddy <vanukuri.ven...@googlemail.com> 2009-10-20 
07:12:49 UTC ---
It is better to warn the user atleast when used more than 254 bytes for the TLE
value, so that he will get an idea about the truncation happened because of
lengthy input value.

(In reply to comment #7)
> secondly i tried it with a small testcase holding
> 10 TLEs with increasing value length:
> input:
> <afp:tag-logical-element name="name250" value=  ..."/>
> <afp:tag-logical-element name="name251" value=  ...1"/>
> <afp:tag-logical-element name="name252" value=  ...12"/>
> <afp:tag-logical-element name="name253" value=  ...123"/>
> <afp:tag-logical-element name="name254" value=  ...1234"/>
> <afp:tag-logical-element name="name255" value=  ...12345"/>
> <afp:tag-logical-element name="name256" value=  ...123456"/>
> <afp:tag-logical-element name="name257" value=  ...1234567"/>
> <afp:tag-logical-element name="name258" value=  ...12345678"/>
> <afp:tag-logical-element name="name259" value=  ...123456789"/>
> the first failure will be for TLE with name "name253" and it just looks like 
> a overflow.
> $ grep T36 testcase001.dmp 
>               T36: Attribute Value [251]
>               T36: Attribute Value [252]
>               T36: Attribute Value [253]
>               T36: Attribute Value [0]
>               T36: Attribute Value [0]
>               T36: Attribute Value [0]
>               T36: Attribute Value [1]
>               T36: Attribute Value [2]
>               T36: Attribute Value [3]
>               T36: Attribute Value [4]
> in my opinion the best will be to split up such problem TLEs and write out
> several
> TLE structed fields with incremented triplet 0x80 'Sequence Number'. 
> Unfortunately i did no java debugging for the last few years i have first to
> setup 
> eclipse or IntelliJ on my computer.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to