The following xquery worked in 8.7 but not in 9.1.0.8.  All but the copyResources extension is ignored.

 

xquery version "1.0";

declare namespace QueryUpdate = "java:edu.iastate.its.thinkspace.core.xquery.QueryUpdate";

declare namespace SpaceFileService = "java:edu.iastate.its.thinkspace.core.filesystem.SpaceFileService";

 

declare variable $spaceFileService external;

declare variable $state external;

declare variable $_operationType external;

declare variable $user external;

declare variable $upd external;

declare variable $args external;

 

let $status := 0

let $root := concat('/space/',$args/args/pid/.,'/')

let $profile :=

<profile _n="2" background="white" layout="60%,40%" id="{$args/args/pid/.}" help="true" theme="EnterpriseBlue">

      <apps>

      <app column="0" id="addapp" minimized="false" name="Apps" type="addapp" url=""/>

      <app column="0" id="profileapp" minimized="false" name="Profile" type="profileapp"

           url=""/>

      <app column="1" id="spacesapp" minimized="false" name="my Spaces" type="spacesapp"

           url=""/>

      <app column="1" id="portfolioapp" minimized="false" name="My Portfolios"

           type="portfolioapp"

           url=""/>

      <app column="2" id="libraryapp" minimized="false" name="My Docs" type="libraryapp"

           url=""/>

      </apps>

</profile>

let $dirs :=  ('lib/','logs/','lib/archives/','lib/templates/','lib/public/')

let $doc := SpaceFileService:makeDirectories($spaceFileService,$state,$root,$dirs)

let $doc := QueryUpdate:createDoc($upd,concat($root,'profile.xml'),$profile)

let $files := '/gwt/ckeditor/styles.js,/gwt/ckeditor/templates.js'

let $doc := SpaceFileService:copyResources($spaceFileService,$state,$files,concat($root,'lib/templates/'))

return

      <response>

            {$doc/response/*}

      </response>

 

 

Pete Boysen(pboysen@iastate.edu)

Information Technology Services

209 Durham

(515)294-6663