-
Notifications
You must be signed in to change notification settings - Fork 66
amps s/b created before roles #259
Comments
To create an amp, the role and the database should already exist. I believe the current order is correct. Can you provide a test case where this doesn't work? |
Maybe circular references? Sent from Samsung Mobile |
sec:create-role() does not have a parameter for amps, but sec:create-amp() does have a parameter for roles. Seems to me that roles must come before amps. |
In the absence of a test case, I'm closing this. If a test case can be provided, I'm happy to reopen it. |
Both Take a look at setup:create-roles ( which Dave - maybe you wrote! ). In create-roles let $amps as element(sec:amp)* := $role/sec:amps/* ( line 3579 )
$database, $role-name)', ( line 3698 ) Thus all the amps in are being associated with the role, so all amps contained in the role I would say that the documentation on sec:amp-add-roles "Adds the roles ($role-names) to the list of roles granted to the amp does not actually describe what this function does terribly well. So in view of the above you do, in my view need to do sec:create-amps prior Note however that when defining an amp, you can define the roles with which Ken On 8 July 2014 16:35, David Cassel notifications@github.com wrote:
|
Roles contain amps, so s/b created first
--- a/deploy/lib/xquery/setup.xqy
+++ b/deploy/lib/xquery/setup.xqy
@@ -460,13 +460,13 @@ declare function setup:do-setup($import-config as element(
{
setup:create-ssl-certificate-templates($import-config),
setup:create-privileges($import-config),
setup:create-roles($import-config),
setup:create-users($import-config),
setup:create-mimetypes($import-config),
setup:create-forests($import-config),
setup:create-databases($import-config),
setup:attach-forests($import-config),
setup:apply-database-settings($import-config),
setup:configure-databases($import-config),
setup:create-appservers($import-config),
The text was updated successfully, but these errors were encountered: