Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

database 'filesystem' not recognized for settting up amps #258

Closed
mustard57 opened this issue Jul 7, 2014 · 1 comment
Closed

database 'filesystem' not recognized for settting up amps #258

mustard57 opened this issue Jul 7, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@mustard57
Copy link

In setup.xqy I did

to allow amp definition when app-modules-db is 'filesystem'

@@ -3863,11 +3866,12 @@ declare function setup:create-amps($import-config)
xdmp:eval(
'import module namespace sec="http://marklogic.com/xdmp/security" at "/
declare variable $amp external;

  •              declare variable $db := if($amp/sec:db-name = "filesystem") then 0 else xdmp:database($amp/sec:db-name);
      sec:create-amp(
        $amp/sec:namespace,
        $amp/sec:local-name,
        $amp/sec:doc-uri,
    
  •       xdmp:database($amp/sec:db-name),
    
  •       $db,
        $amp/sec:role-name
     )',
     (xs:QName("amp"), $amp),
    
dmcassel added a commit that referenced this issue Jul 7, 2014
@dmcassel
Copy link
Collaborator

dmcassel commented Jul 7, 2014

I added your code to the dev branch. Thanks for including the patch!

@dmcassel dmcassel closed this as completed Jul 7, 2014
@dmcassel dmcassel added the bug label Jul 7, 2014
@dmcassel dmcassel self-assigned this Jul 7, 2014
@dmcassel dmcassel added this to the v1.6 milestone Jul 7, 2014
@paxtonhare paxtonhare modified the milestone: v1.6 Oct 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants