You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by bu...@apache.org on 2001/12/30 10:12:57 UTC

DO NOT REPLY [Bug 5624] New: - Postgresql template typo causes ArrayIndexOutOfBounds on generation

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5624>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5624

Postgresql template typo causes ArrayIndexOutOfBounds on generation

           Summary: Postgresql template typo causes ArrayIndexOutOfBounds on
                    generation
           Product: Turbine
           Version: 2.1 final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Torque
        AssignedTo: turbine-dev@jakarta.apache.org
        ReportedBy: i13@hotmail.com


Unzipped the torque-2.1 archive, attempted to run the default example "project".
 Velocity reported an ArrayIndexOutOfBounds exception from
sql\base\postgresql\table.vm [17,25].  Line 17 follows:

#if($index.length() > 0)$strings.chop($index,1)#end

Investigated problem.  Turns out that given the templates in the 2.1 release,
($index.length() > 0) is always true.  Source of the problem is trailing
whitespace at the end of sql\base\postgres\index.vm.  Removing the linefeed
resolved the problem.

Checked cvs - the problem exists in version 1.4 of index.vm as of this date.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>