You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
There is no way to connect to the server WITHOUT specifying a port.
How to reproduce
I try set an "empty string" port in configs and get an error like:
TypeError: Solarium\Core\Client\Endpoint::getPort(): Return value must be of type ?int, string returned in Solarium\Core\Client\Endpoint->getPort() (line 123 of /var/www/html/vendor/solarium/solarium/src/Core/Client/Endpoint.php).
If I set port = NULL then I have : mark/symbol in the URI and this URL does not work.
Possible Solution
Fix / make more flexible Endpoint class -> function getServerUri().
Can you provide a code sample that reproduces the problem? I'd like to see how you configured Solarium and which adapter you're using.
I did a quick test with examples 6.1.1 (PSR-18 adapter), 6.1.2 (cURL adapter), and 6.1.3 (HTTP adapter). All three do work for me with the scheme set to 'https' and the port explicitly set to null. Verified by setting up nginx as a reverse proxy that listens on port 443 and passes requests to Solr.
Having a : in the URI without a port number is allowed by RFC 3986.
Solarium version(s) affected: 6.3.6
Solr version: 8.11.3
Solr mode: standalone
Description
There is no way to connect to the server WITHOUT specifying a port.
How to reproduce
I try set an "empty string" port in configs and get an error like:
TypeError: Solarium\Core\Client\Endpoint::getPort(): Return value must be of type ?int, string returned in Solarium\Core\Client\Endpoint->getPort() (line 123 of /var/www/html/vendor/solarium/solarium/src/Core/Client/Endpoint.php).
If I set
port = NULL
then I have:
mark/symbol in the URI and this URL does not work.Possible Solution
Fix / make more flexible
Endpoint
class ->function getServerUri()
.instead of:
upgrade to for example:
Additional context
The text was updated successfully, but these errors were encountered: