SOAP: Fix wrong path to WSDL depending on endpoint#9115
SOAP: Fix wrong path to WSDL depending on endpoint#9115mjansenDatabay wants to merge 1 commit intoILIAS-eLearning:release_10from
Conversation
|
Dear @mjansenDatabay, Thank you for the PR. :) I have tested this PR and in the log i can see still an error. I have few questions:
I think it will be better if i provide a new PR for this mantis id rather than making the changes in the current PR. Kind regards, |
122662d to
5853dd5
Compare
|
Hi @sKarki999, thanks for your feedback. I applied som changes to the PR.
Can you provide more details about what was happening?
They are needed because the
You are right, if we solve the issue in The main problem, which I've referred to in different PRs and Mantis issues, is that there is a lack of an internal API which reliably exposes information regarding:
When consumers call Of course, the approach here is only a temporary solution (as I said, The question is: Where does such an API reside? In the Since I personally do not have the answer to this (of course, I have an opinion) and cannot decide on this topic alone, I initially suggested to change You can test the changes and differences of the two methods:
<?php
declare(strict_types=1);
error_reporting(-1);
ini_set('display_errors', 1);
chdir(__DIR__);
$ilias_root_directory = '';
while (!is_file($ilias_root_directory . 'ilias.ini.php')) {
$ilias_root_directory .= '../';
}
chdir($ilias_root_directory);
require_once './vendor/composer/vendor/autoload.php';
ilInitialisation::initILIAS();
echo ilUtil::_getHttpPath();
echo "<br>";
echo ilUtil::getPublicHttpPath();Best regards, |
|
Hi @mjansenDatabay , Thank you for detailed explanation :) Initial log issue which i was mentioning which came from the 1st commit is: ilObjectCopyGUI::copyContainer:941 ilContainer::cloneAllObject: Trying to call Soap client... Additionally, i also agree with your initial suggestion of modifiying the ilSoapClient class would be the right choice. From the first commit, the URL is malformed and i suspect the dirname() is over stripping the URL. Kind regards, |
|
Hi @mjansenDatabay , |
See: https://mantis.ilias.de/view.php?id=42320
If approved (please test this thoroughly, and even better, take this as a start and provide a more elaborate solution to the problem), this has to be picked to
trunkas well.