Skip to content

Commit ffc8a2d

Browse files
committed
Set permissions on resources stored at install
- repo.xml’s permissions element is used to set user and group ownership and mode on all collections and resources stored during installation. - for collections and resources stored after installation, user and group ownership and mode need to be set separately - but if we define the permissions correctly here, we can read from these definitions even after installation - rwxrwxr-- ensures (1) default “repo” group can read and write documents and (2) all users can read and access collection contents. (Note that o+rx is needed for guest queries to run fn:collection.)
1 parent 3b2f036 commit ffc8a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<target>public-repo</target>
1111
<prepare>pre-install.xq</prepare>
1212
<finish>post-install.xq</finish>
13-
<permissions password="repo" user="repo" group="repo" mode="rw-rw-r--"/>
13+
<permissions password="repo" user="repo" group="repo" mode="rwxrwxr-x"/>
1414
<changelog>
1515
<change version="2.0.0">
1616
<ul xmlns="http://www.w3.org/1999/xhtml">

0 commit comments

Comments
 (0)