- **status**: review --> closed


---

** [tickets:#8431] handle dir/file/symlink changes better**

**Status:** closed
**Milestone:** unreleased
**Created:** Fri May 20, 2022 05:06 PM UTC by Dave Brondsema
**Last Updated:** Mon May 23, 2022 03:57 PM UTC
**Owner:** Dave Brondsema


If `foo` was a directory and then in the next commit it becomes a file (or a 
symlink in git) then this error occurs

```pytb
File "/src/allura/Allura/allura/controllers/repository.py", line 688, in index
    is_text = filepath and tree.get_blob_by_path(filepath) and 
tree.get_blob_by_path(filepath).has_html_view
  File "/src/allura/Allura/allura/model/repository.py", line 1372, in 
get_blob_by_path
    obj = self.get_obj_by_path(path)
  File "/src/allura/Allura/allura/model/repository.py", line 1366, in 
get_obj_by_path
    obj = obj[p]
TypeError: 'Blob' object is not subscriptable
```


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to