-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Test connection failed on creating datasource of version 2.11 will cause page refresh #6667
Comments
@Hailong-am Hi Hailong, I couldn't reproduce the issue on both playground, and future playground. Could you check again? It might be some network or browser issue? |
try with Incognito mode issue still exists, i am using google account to login. I guess the cause might be the response status code is 401 causing page refresh. |
@Hailong-am That's why in MDS(Multiple data source) we have logic to cast 401 to 400, to avoid page reload. OpenSearch-Dashboards/src/plugins/data_source/server/lib/error.ts Lines 48 to 64 in cfe7cd1
Since you still get 401, I assume you are using 2.11.0 AOS domain. Because in 2.11, a bug was introduced in security plugin, which drops the I saw a fix opensearch-project/security#4233 was delivered by @cwperks , Craig, should this fix be backported to 2.11, and do a patch release? |
@zhongnansu thanks for the detail. Just curious about the convert 401 to 400 logic, that depends on the response must have body and status code is 401. If I have a endpoint(not opensearch)/proxy service for OpenSearch return 401 without body, will that still works? |
@Hailong-am Based on the source code, the body, header and status code needs to exist,
@zhongnansu Do we know why we need this check?
|
Hi Team Still seeing this error. On the future playground / data sources and choose test_with_other_obj. The page refreshes everytime i click test connection. |
|
Describe the bug
when create a datasource with wrong credential, click on test connection it will reports error and
refresh the page, all input disappears.
create_ds.mov
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Page should not refreshed and user could fix the wrong credential
OpenSearch Version
Please list the version of OpenSearch being used.
Dashboards Version
Please list the version of OpenSearch Dashboards being used.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: