Re: StringIndexOutOfBoundsException in File Downloads
Vadim Nasardinov <[email protected]> Tue, 8 Jun 2004 12:30:17 -0400
| Newsgroups | gmane.linux.redhat.ccm.general |
|---|---|
| Organization | Red Hat / Westford |
| Message-ID | <[email protected]> |
On Tuesday 08 June 2004 12:13, Srikanth Addala wrote:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -30
> at java.lang.String.substring(String.java:1525)
> at com.arsdigita.cms.dispatcher.ServiceDispatcher.stripFileName(Unknown Source)
^^^^^^^^^^^^^
> at com.arsdigita.cms.dispatcher.ServiceDispatcher.dispatch(Unknown Source)
> at com.arsdigita.sitenode.SiteNodeDispatcher.siteNodeDispatch(Unknown Source)
> at com.arsdigita.sitenode.SiteNodeDispatcher.doDispatch(Unknown Source)
Which version of CMS are you running? I don't see a method named
"stripFileName" anywhere in ServiceDispatcher.java. I've looked at
all the mainline revisions of ServiceDispatcher.java going all the way
back to the very first revision dated 2001/09/21. I don't see see
this method in any of the past revisions.
$ cat ~/bin/print-revs.sh
#!/bin/bash
# Author: Vadim Nasardinov ([email protected])
# Since: 2002-10-03
# Version: $Id: print-revs.sh,v 1.1 2002/10/23 14:58:15 vadim Exp $
depot_path=$1
max_rev_num=$2
if [ -z "$max_rev_num" ]; then
echo "Usage:"
script=`basename $0`
echo " $script <depot_path> <max_rev_num>"
exit 1
fi
for rev_num in `seq $max_rev_num`
do
file=$depot_path#$rev_num
echo "====== $file ======="
p4 print $depot_path#$rev_num
echo
done
$ print-revs.sh //core-platform/dev/cms/content-section/src/dispatcher/ServiceDispatcher.java 4 | grep -c strip
0
$ print-revs.sh //cms/dev/src/com/arsdigita/cms/dispatcher/ServiceDispatcher.java 12 | grep -c strip
0
--
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/