Issue #163 new

s3boto modified_time fails for new file with preload metadata

Bouke Haarsma avatarBouke Haarsma created an issue

Scenario is reproducable like this:

  1. Files are listed (metadata is preloaded)
  2. New file is uploaded
  3. modified_time on new file is requested

Exception:

File "/storages/backends/s3boto.py" in modified_time
  455.         return parse_ts_extended(entry.last_modified)
File "/storages/backends/s3boto.py" in parse_ts_extended
  39.         rv = parse_ts(ts)
File "/boto/utils.py" in parse_ts
  390.     ts = ts.strip()

Exception Type: AttributeError at /admin/filebrowser/browse/
Exception Value: 'NoneType' object has no attribute 'strip'

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.