Error if set command is used on read-only element
authorJeremy Stanley <fungi@yuggoth.org>
Mon, 31 Jul 2017 15:14:08 +0000 (15:14 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Mon, 31 Jul 2017 15:14:08 +0000 (15:14 +0000)
It is possible for an admin to accidentally attempt to set a facet
on an element from a read-only file. If this happens, trap the
PermissionError exception and return a clear error message to the
user instead of crashing the service. Also add a regression test to
make sure this continues to work as intended, since preventing
alteration of read-only elements is a critical security measure we
need to make certain we preserve going forward.


No differences found