Comment 7 for bug 2060540

Revision history for this message
Ines Almeida (ines-almeida) wrote : Re: If the user has permission to list but not read the file, the upload system doesn't handle the case well

> If the user has permission to list but not read the file

Does this mean you are trying to upload a file that you don't have read access to?

If that is the case, it seems to me that we should for sure show a better error message for this particular case, but I would say that that's expected behavior.

For future reference, the oopses seem always the same:
```
  IndexError: list index out of range

    Traceback (most recent call last):
  Module zope.publisher.publish, line 139, in publish
    request.processInputs()
  Module zope.publisher.browser, line 346, in processInputs
    forms, files = multipart.parse_form_data(
  Module multipart, line 501, in parse_form_data
    for part in MultipartParser(stream, boundary, content_length, **kwargs):
  Module multipart, line 212, in __iter__
    for part in self._part_iter:
  Module multipart, line 281, in _iterparse
    for line, nl in lines:
  Module multipart, line 246, in _lineiter
    len_first_line = len(lines[0])
IndexError: list index out of range
```