[zope2-tracker] [Bug 487998] Re: text_type can give IndexError: string index out of range in zope 2.11 & 2.12

Andrew P. Ho aho at ucla.edu
Tue Mar 23 19:22:56 EDT 2010


Importance of this error should be bumped up to "Critical" because it
affects DTML Document and DTML Method.  This renders Zope 2.12.3
unusable.

I don't know whether this is exactly the same bug but it is most likely highly related.
For example, I am getting the following traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module OFS.DTMLDocument, line 150, in __call__
   - <DTMLDocument at /production/test2>
   - URL: http://192.168.2.23:8080/
   - Physical Path: /production/test2
  Module zope.contenttype, line 76, in guess_content_type
  Module zope.contenttype, line 39, in text_type
IndexError: string index out of range
---------
DTML Document content in test2

<dtml-call "REQUEST.set('jump_back', 'no')">
<dtml-call "REQUEST.set('jump_back', 'no')">
<dtml-call "REQUEST.set('jump_back', 'no')">
<dtml-call "REQUEST.set('jump_back', 'no')">
--------
Zope Version (2.12.3, python 2.6.4, linux2)
Python Version 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1]

-- 
text_type can give IndexError: string index out of range in zope 2.11 & 2.12
https://bugs.launchpad.net/bugs/487998
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list