Fix #61094 Wrong WSDL cache file name #475
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WSDL cache files are created with the format wsdl-owner_username-uri_md5sum and with permission 0600. This has resulted in an error when two or more users are trying to run the same script that uses the same wsdl: only the first user can access to the wsdl cache file, while a second user will encounter a SOAP-ERROR complaining about not being able to load the WSDL. The bug was introduced in commit 1a9e668 which was supposed to use getuid() instead of php_get_current_user() in the cache filename.
To reproduce the problem, use the following code and run the script with two different users:
The first user that runs the script should have no problem, but the second user (non-root) would see this error:
Bug #51407 also describes the same problem.
Please take a look at it. Thanks.