Skip to content

fix: persist group owner from XML in addGroup SOAP call (#0032223)#11603

Open
sKarki999 wants to merge 1 commit into
ILIAS-eLearning:release_10from
sKarki999:fix/032223
Open

fix: persist group owner from XML in addGroup SOAP call (#0032223)#11603
sKarki999 wants to merge 1 commit into
ILIAS-eLearning:release_10from
sKarki999:fix/032223

Conversation

@sKarki999
Copy link
Copy Markdown
Contributor

This PR addresses Mantis #0032223, where the <owner> tag in the XML passed to the addGroup SOAP method was silently ignored.

Test Scenarios

Scenario 1 — Owner tag with valid user

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:urn="urn:ilUserAdministration">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:addGroup>
         <sid><SID>::<CLIENT></sid>
         <target_id><TARGET_REF_ID></target_id>
         <group_xml>
            <![CDATA[
            <group id="<GROUP_ID>" type="open">
               <title><GROUP_TITLE></title>
               <owner id="il_0_usr_<OWNER_ID>"/>
               <description><GROUP_DESCRIPTION></description>

               <Registration waitingList="No">
               </Registration>

               <information><GROUP_INFORMATION></information>

               <admin id="il_0_usr_<ADMIN_ID>"/>
               <member id="il_0_usr_<MEMBER_ID_1>"/>
               <member id="il_0_usr_<MEMBER_ID_2>"/>
            </group>
            ]]>
         </group_xml>
      </urn:addGroup>
   </soapenv:Body>
</soapenv:Envelope>

Expected: Group owner is set to the specified user, not root.

@sKarki999 sKarki999 added bugfix php Pull requests that update Php code labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant