marklogic-community / data-explorer

Data Explorer Tool
Other
15 stars 4 forks source link

FERR-17 - Clean out the namespace xml on install #49

Open nlaprell opened 6 years ago

nlaprell commented 6 years ago

Original Reporter: @markschiffner
Created: 25/Apr/17 6:58 PM

Description

Make sure the namespace xml is cleared on install or deinstall. Add the following to the build script:

xquery version "1.0-ml";
xdmp:eval('
xdmp:document-delete("/conf/namespaces.xml")
',(),
<options xmlns="xdmp:eval">
<database>

Unknown macro: {xdmp}
</database>
</options>
)

Can be done in conjunction with FERR-7

Comments

@aebadirad added a comment - 30/Apr/17 6:51 PM As a note, at least for me, this currently dumps the conf files into the 'security' database.

The install scripts don't seem to setup a data-explore-content database, so other databases who also use security, now run the risk of having it exposed directly to an http app server, which means a breach in read security means that all the amps/security configs could be read.

Is this intentional design? Or is there just not a data-explore-content database being setup to store the configs/other content data for the app yet?