FIXME: regression: open several times the same file. The second time the view must be forced read-only.