Commit 37ed1d1c authored by dockx thibault's avatar dockx thibault
Browse files

Merge branch...

Merge branch '31-integrator-when-webservice-call-is-triggered-with-a-dn-containing-a-space-result-is-null' into 'dev'

Resolve "[Integrator] - When webservice call is triggered with a DN containing a space, result is NULL"

See merge request !44
2 merge requests!52:sparkles: Releasing Fusiondirectory Integrator 1.2,!44Resolve "[Integrator] - When webservice call is triggered with a DN containing a space, result is NULL"
Pipeline #29652 passed with stages
in 2 minutes and 4 seconds
Showing with 4 additions and 2 deletions
+4 -2
......@@ -141,7 +141,8 @@ class WebServiceCall
]
];
$this->setCurlSettings($_ENV['FUSION_DIRECTORY_API_URL'] . '/objects/tasks/' . $dn, $data, 'PATCH');
// the DN can contain space which must be URL encoded correctly.
$this->setCurlSettings($_ENV['FUSION_DIRECTORY_API_URL'] . '/objects/tasks/' . rawurlencode($dn), $data, 'PATCH');
curl_exec($this->ch);
$this->handleCurlError($this->ch);
......@@ -168,7 +169,8 @@ class WebServiceCall
'refreshUser' => NULL
];
$this->setCurlSettings($_ENV['FUSION_DIRECTORY_API_URL'] . '/objects/user/' . $dn, $data, 'PATCH');
// A DN can contain space and therefore must be encoded properly before processing.
$this->setCurlSettings($_ENV['FUSION_DIRECTORY_API_URL'] . '/objects/user/' . rawurlencode($dn), $data, 'PATCH');
curl_exec($this->ch);
$this->handleCurlError($this->ch);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment