[
https://issues.apache.org/jira/browse/SOLR-17731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149331#comment-18149331
]
ASF subversion and git services commented on SOLR-17731:
--------------------------------------------------------
Commit e997ae88fddff0119709dda8af7e5ba94abe1123 in solr's branch
refs/heads/main from Eric Pugh
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=e997ae88fdd ]
SOLR-17731: Fix shadowed v2 alias and snapshot APIs (#5353)
Align the class-level resource roots and move resource names to method-level
paths, preserving the public URLs.
Reuse GetAliasByNameResponse for each entry in the v2 alias listing. Entries
now contain name, a collections array, and properties, matching the detail
response. Update the Admin UI to consume this structure and preserve the v1
LISTALIASES response format.
Introduce typed collection snapshot metadata, including replica details and
creation time in epoch milliseconds. Use the narrower synchronous listing
response base and include CREATE response fields consistently in JSON, XML, and
Javabin.
Return HTTP 404 for missing aliases, collections, and snapshots, and HTTP 400
for a missing snapshot creation body. Preserve the v1 snapshot collection error
codes, missing-snapshot deletion no-op, and listing format in the adapters.
Migrate bin/solr snapshot create, delete, list, and describe to the generated
v2 clients. Use typed metadata directly when describing a snapshot, removing
the legacy response parsing.
Update the reference guide examples and API conventions documentation.
> Some v2 APIs are overshadowed at runtime so can't be used
> ---------------------------------------------------------
>
> Key: SOLR-17731
> URL: https://issues.apache.org/jira/browse/SOLR-17731
> Project: Solr
> Issue Type: Bug
> Reporter: Colvin Cowie
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> This sort of problem tends to happen when multiple resources declare
> overlapping paths, e.g. "abc/xyz" in one resource and "abc" in another, but
> there may be other reasons for it too.
> These APIs exist in code but aren't accessible, you get a 405 because another
> resource handler is responding.
> * POST /collections/\{collectionName}/snapshots/\{snapshotName} -->
> CollectionSnapshotsApi.CreateCollectionSnapshot#CreateCollectionSnapshot
> * GET /aliases/\{aliasName} --> ListAliasesApi.getAliases()
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]