You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
When you add unit testing to your roxy configuration, the config will be expanded for the test http-server and the test-content database. However, the setup.xqy script does not take the group for the http server and the database into account when it expands the @import attribute. That info effectively gets lost when recreating server and database xml to merge the settings. As a result the server and database end up in the Default group, which may potentially not contain any hosts, so server because unreachable, and the database will have no forests.
This can be fixed by creation of extra function:
declarefunctionsetup:get-group-name($server-config aselement()) as xs:string
{
(: app servers :)if ($server-config/ancestor::gr:group/gr:group-name) then
$server-config/ancestor::gr:group/gr:group-name
(: databases :)elseif ($server-config/@group) then
$server-config/@group(: revert to defaults :)elseif ($server-config/ancestor::*:configuration/@default-group) then
$server-config/ancestor::*:configuration/@default-groupelse"Default"
};
and rewrite the function setup:get-group to :
declarefunctionsetup:get-group($server-config aselement()) as xs:unsignedLong
{
xdmp:group(setup:get-group-name($server-config))
};
In function setup:get-http-appservers-from-config (around line 3463) an attribute group must be added to the gr:http-server element:
In function setup:get-databases-from-config (around line 5480) an attribute group must be added to the db:database element:
element db:database
{
attributegroup {setup:get-group-name($db)},
$db/@*[fn:not(fn:local-name(.) = "import")],
The text was updated successfully, but these errors were encountered:
grtjn
changed the title
@import attribute not propagated to the correct group in multi group configuration
Group not propagated for servers/databases using @import
Jun 23, 2015
When you add unit testing to your roxy configuration, the config will be expanded for the test http-server and the test-content database. However, the setup.xqy script does not take the group for the http server and the database into account when it expands the @import attribute. That info effectively gets lost when recreating server and database xml to merge the settings. As a result the server and database end up in the Default group, which may potentially not contain any hosts, so server because unreachable, and the database will have no forests.
This can be fixed by creation of extra function:
and rewrite the function setup:get-group to :
In function setup:get-http-appservers-from-config (around line 3463) an attribute group must be added to the gr:http-server element:
In function setup:get-databases-from-config (around line 5480) an attribute group must be added to the db:database element:
The text was updated successfully, but these errors were encountered: