Search Result Export with SSL off doesn't work
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 74/100
Línea de trabajo
Start in Splunk\Python-3.13\Lib\site-packages\splunk\rest_init_.py, around streamingRequest and the conn creation logic, then reproduce the export request with enableSplunkdSSL=false. Verify the connection uses the configured protocol and that search-result export succeeds without the WRONG_VERSION_NUMBER error.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When the [sslConfig] enableSplunkdSSL is set to false in server.conf, then export of search results fails, giving the following on-screen error:
This was working in the 9.* version, but has been broken in the 10.* version.
To Reproduce
Steps to reproduce the behavior:
- Go to 'server.conf' and set the [sslConfig] enableSplunkdSSL flag to false. Restart splunk server.
- Perform a search in the web search.
- Attempt to export the results using the down arrow.
- See error
Expected behavior
Results are exported
Logs or Screenshots
This log can be seen in web_service.log:
2026-08-18 06:50:23,399 ERROR [6a8400af56192cc745880] __init__:874 - SSL error communicating with splunkd, error="[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1046)", path=/servicesNS/admin/search/search/v2/jobs/export
2026-08-18 06:50:23,399 ERROR [6a8400af56192cc745880] decorators:413 - Splunkd daemon is not responding: ('SSL error communicating with splunkd, error="[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1046)", path=/servicesNS/admin/search/search/v2/jobs/export',)
Traceback (most recent call last):
File "F:\Program Files\Splunk\Python-3.13\Lib\site-packages\splunk\rest\__init__.py", line 855, in streamingRequest
conn.connect()
~~~~~~~~~~~~^^
File "F:\Program Files\Splunk\Python-3.13\Lib\http\client.py", line 1499, in connect
self.sock = self._context.wrap_socket(self.sock,
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Program Files\Splunk\Python-3.13\Lib\ssl.py", line 460, in wrap_socket
return self.sslsocket_class._create(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
sock=sock,
^^^^^^^^^^
...<5 lines>...
session=session
^^^^^^^^^^^^^^^
)
^
File "F:\Program Files\Splunk\Python-3.13\Lib\ssl.py", line 1085, in _create
self.do_handshake()
~~~~~~~~~~~~~~~~~^^
File "F:\Program Files\Splunk\Python-3.13\Lib\ssl.py", line 1381, in do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1046)
Splunk (please complete the following information):
- Version: 10.4.1
- OS: Windows
- Deployment: Single Instance Enterprise
SDK (please complete the following information):
- Version: As per install
- Language Runtime Version: As per install
- OS: As per install
Additional context
I think the problem is in Splunk\Python-3.13\Lib\site-packages\splunk\rest\__init__.py, when it goes to create the "conn" object for the connection, it has an if-else statement. In the "if" part of the statement, it has the "if isssl else httplib.HTTPConnection(host, port, timeout=timeout)" code which will create an HTTPConnection if ssl is not enabled. BUT in the "else" part of the if-else statement, it doesn't have that, so will always attempt to create an HTTPSConnection even if ssl is not enabled.
- Lenguaje dominante
- Python
- Estrellas
- 743
- Forks
- 387
- Merge medio
- 42 min
- PR fusionados (30 d)
- 4
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de splunk/splunk-sdk-python
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
splunk/splunk-sdk-python#835 · 1 comentario · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
splunk/splunk-sdk-python#831 · 1 comentario ·
-
Unverified SSL context Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
splunk/splunk-sdk-python#704 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
splunk/splunk-sdk-python#840 ·
-
Splunk core -> python3.13 Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
splunk/splunk-sdk-python#785 · 1 reacción ·
Todos los issues de splunk/splunk-sdk-python
Issues similares
-
link-check link-check:sphinx-theme
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
OpenHands/extensions#626 · 1 comentario ·
-
Change observation tooltip text Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
CSCfi/sd-search-api#39 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100