[
https://issues.apache.org/jira/browse/SOLR-18347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18108323#comment-18108323
]
Shrey Narayan edited comment on SOLR-18347 at 8/27/26 12:49 AM:
----------------------------------------------------------------
{quote}I implemented fixes for all five Admin UI defects listed in SOLR-18347:
* Guarded {{showCore()}} against a temporarily null core during navigation.
* Removed the Collections screen’s runtime dependency on the generated
JavaScript client bundle.
* Prevented Schema Designer preparation/analysis races and routed Luke
requests through the temporary collection.
* Changed ping status without a configured healthcheck from HTTP 503 to HTTP
200 with {{{}status: "not_configured"{}}}.
* Made collection reload success/failure feedback remain visible.
Regression coverage was updated so these failures are no longer broadly
exempted.
Validation:
* {{./gradlew tidy}} passed.
* JavaScript syntax validation passed.
* {{{}PingRequestHandlerTest{}}}: 6 tests passed.
* Targeted Selenium suite: 22 tests passed in Google Chrome.
* Added the required unreleased changelog entry.
Commit: [e7e66a51b5|https://github.com/NextbrickInc/solr/commit/e7e66a51b5]
Pull request: [apache/solr#4818|https://github.com/apache/solr/pull/4818]
The commit is pushed to the NextbrickInc fork. Pull-request CI can now validate
the complete change set.
{quote}
[^SOLR-18347-fix-report-secure.pdf]
was (Author: JIRAUSER314415):
{quote}I implemented fixes for all five Admin UI defects listed in SOLR-18347:
* Guarded {{showCore()}} against a temporarily null core during navigation.
* Removed the Collections screen’s runtime dependency on the generated
JavaScript client bundle.
* Prevented Schema Designer preparation/analysis races and routed Luke
requests through the temporary collection.
* Changed ping status without a configured healthcheck from HTTP 503 to HTTP
200 with {{{}status: "not_configured"{}}}.
* Made collection reload success/failure feedback remain visible.
Regression coverage was updated so these failures are no longer broadly
exempted.
Validation:
* {{./gradlew tidy}} passed.
* JavaScript syntax validation passed.
* {{{}PingRequestHandlerTest{}}}: 6 tests passed.
* Targeted Selenium suite: 22 tests passed in Google Chrome.
* Added the required unreleased changelog entry.
Commit: [e7e66a51b5|https://github.com/NextbrickInc/solr/commit/e7e66a51b5]
Pull request: [apache/solr#4818|https://github.com/apache/solr/pull/4818]
The commit is pushed to the NextbrickInc fork. Pull-request CI can now validate
the complete change set.
{quote}
[^SOLR-18347-fix-report.pdf]
> Possible AdminUI bugs found by Selenium
> ---------------------------------------
>
> Key: SOLR-18347
> URL: https://issues.apache.org/jira/browse/SOLR-18347
> Project: Solr
> Issue Type: Bug
> Components: Admin UI
> Reporter: Jan Høydahl
> Priority: Major
> Labels: pull-request-available
> Attachments: SOLR-18347-fix-report-secure.pdf
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> These were found during implementation of unit tests for Admin UI, SOLR-8474.
> *NB: If you want to fix one of these, please first move the text into a
> sub-issue*
> Issues surfaced by these tests that look like real bugs, weaknesses or
> flakiness in the Admin UI (or its backing APIs) rather than bad test code.
> Tests work around them as noted; each deserves investigation and possibly its
> own JIRA:
> # {*}Menu TypeError on per-collection pages{*}: navigating to any
> per-collection screen intermittently logs {{TypeError: Cannot read properties
> of null (reading 'name')}} from {{$scope.showCore}} in {{js/angular/app.js}}
> — the core selector fires its change handler with a null core while the menu
> resolves. Workaround: the console-error assertion filters this signature.
> _Found by_ {{AdminUiSmokeTest}} / {{{}AdminUiParamsetsScreenTest{}}}.
> # {*}Collections screen dies without the js-client bundle{*}: the
> {{CollectionsV2}} service factory ({{{}services.js{}}}) references the
> {{solrApi}} global at injection time; if {{libs/solr/index.js}} fails to
> load, the whole {{CollectionsController}} fails and the screen is blank. Only
> {{reloadCollection}} is used from that bundle — a lazy/optional lookup would
> degrade gracefully. Workaround: tests serve a stub bundle. _Found by_
> {{{}AdminUiSmokeTest{}}}; stub served by {{AdminUiTestBase}} for
> {{{}AdminUiCollectionsScreenTest{}}}.
> # {*}Schema Designer races itself{*}: creating a schema and analyzing sample
> docs transiently fails with {{Failed to persist managed schema ... version
> mismatch, retry}} from its own {{{}prep{}}}/{{{}analyze{}}} calls, surfacing
> an error dialog the user has to dismiss. Workaround: the test retries via the
> offered Reload Schema button and ignores the designer's own 5xx console
> errors; the test is currently {{@AwaitsFix}} pending this issue. _Found by_
> {{{}AdminUiSchemaDesignerTest{}}}.
> # {*}Core overview ping widget logs a 503{*}: with a configset that has no
> healthcheck file, the ping status call answers 503 and the console shows a
> resource-load error on every visit; the widget could handle "healthcheck not
> configured" gracefully. Workaround: allowed in the affected tests. _Found by_
> {{AdminUiSmokeTest}} / {{AdminUiCollectionScreensTest}} /
> {{{}AdminUiCoreAdminStandaloneTest{}}}.
> # {*}Reload success indicator is a 1-second flash{*}: the Collections
> screen's reload button only flags success via a CSS class for one second,
> which is easy to miss (and impossible to assert on reliably). Workaround: the
> test verifies the reload via the core start time instead. _Found by_
> {{{}AdminUiCollectionsScreenTest{}}}.
> h3. Done elsewhere
> # {*}Security screen dialogs unreliable under automation{*}: native clicks
> on the Add User toggle and keystrokes into the absolutely-positioned dialog
> (jQuery-positioned, {{escape-pressed}} directive) are dropped in headless
> Chrome even though the same interactions work on other screens. May indicate
> a focus/z-index issue. Workaround: the test drives the dialog via the Angular
> controller scope. _Found by_ {{{}AdminUiSecurityAuthTest{}}}.
> This was fixed in [https://github.com/apache/solr/pull/4800] , tagged with
> SOLR-8474
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]