Bugs item #952129, was opened at 2004-05-11 20:15
Message generated for change (Comment added) made by hughes
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=952129&group_id=73068

Category: None
Group: v 1.0-b3
Status: Open
Resolution: None
Priority: 5
Submitted By: Evan Hughes (hughes)
Assigned to: Nobody/Anonymous (nobody)
Summary: column:autolink throwing exception

Initial Comment:
LinkUtil is misbehaving. If an URL is a substring of a
larger block of text, an OutOfBounds error is thrown.
For example: 

Set a chunk of text to be: "A large string of text. Foo
bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo
bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo
bar. Foo bar. Foo bar. Foo bar.  http://foo.bar.";, and
display it with 

-----
<display:table name="sampleProperties">
  <display:column property="key" title="PROPERTY" />
  <display:column property="value" title="VALUE"
autolink="true"/>
</display:table>
-----

Upon display, you should get an exception:

-----
java.lang.StringIndexOutOfBoundsException: String index
out of range: -154
        java.lang.String.substring(String.java:1444)
        org.displaytag.util.LinkUtil.autoLink(LinkUtil.java:111) 
org.displaytag.model.Column.createChoppedAndLinkedValue(Column.java:192)
...
-----

----------------------------------------------------------------------

>Comment By: Evan Hughes (hughes)
Date: 2004-05-11 21:36

Message:
Logged In: YES 
user_id=40084

The attached file is a drop in replacement for the offending
file. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=952129&group_id=73068


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to