Repository navigation
feat(aviator): 2493050 resolve application name through GetApplicationByName - #1150
Merged
Conversation
…nByName Non-numeric values passed to aviator app commands are resolved with a single GetApplicationByName call instead of listing all applications and filtering by name on the client. Numeric values are still treated as application ids. Requires a server that supports GetApplicationByName. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
anishkumarnagaraj-design
requested review from
ankit2995,
kireetivar and
rsenden
October 28, 2026 19:00
anishkumarnagaraj-design
changed the base branch from
feat/v3.x/aviator/27.1
to
dev/v3.x
October 29, 2026 05:34
anishkumarnagaraj-design
changed the base branch from
dev/v3.x
to
feat/v3.x/aviator/27.1
October 29, 2026 05:48
anishkumarnagaraj-design
force-pushed
the
feat/v3.x/aviator/get-application-by-name
branch
from
October 29, 2026 06:27
4ffcd0a to
8535066
Compare
…hing Name matching is performed by the server and is case-insensitive. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kireetivar
reviewed
Oct 29, 2026
…pplicationByName Map gRPC UNIMPLEMENTED to an actionable message (upgrade the server, or use the numeric application id) instead of the generic technical error. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ankit2995
approved these changes
Oct 29, 2026
kireetivar
reviewed
Oct 29, 2026
kireetivar
reviewed
Oct 29, 2026
… service Users cannot upgrade the hosted service, so state that the service does not support the operation and keep only the numeric id hint. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rsenden
approved these changes
Oct 29, 2026
rsenden
merged commit Oct 29, 2026
fb3c43b
into
fortify:feat/v3.x/aviator/27.1
14 of 15 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Story
Work item 2493050: Add
GetApplicationByNamegRPC command to the server and use it in fclihttps://almoctane-ams.saas.microfocus.com/ui/?p=206015/2001#/entity-navigation?entityType=work_item&id=2493050
Targets
feat/v3.x/aviator/27.1.Why
fcli aviator app get|update|delete|add-entitlement|reduce-entitlementaccept an application name or id. For a name, fcli calledListApplicationsand compared names on the client, because the server had no lookup by name. The server now providesGetApplicationByName(see the companion server MR), so fcli resolves a name with a single call.What changed
Application.proto(fcli copy): adds theApplicationByNamemessage and theGetApplicationByNamerpc, with the same field numbers as the server proto (name=1, signature=2, message=3, tenantName=4). Other differences between the two proto copies are unrelated and were left alone.AviatorGrpcClient.getApplicationByName(...)andConstants.OP_GET_APP_BY_NAME.AviatorAppHelper.resolveApplicationId:(tenant, name)and callsGetApplicationByName, then returns the application id.fcli.aviator.app.app-name-or-idsays names are matched case-insensitively.Behaviour
UNIMPLEMENTED). No fallback toListApplications, by decision: a new fcli needs a server with the new RPCName matching is case-insensitive and done by the server.
Tests
AviatorAppHelperTestnow covers the numeric path (no server call, using null client and descriptor), blank and null values, andisNumeric. The tests for the removed list-matching code were removed with it.AviatorAppResolverMixinTeststill passes.resolveApplicationId. The module has no Mockito and signing needs real keys, so this needs an integration test against a server with the new RPC.Run (JDK 17 toolchain, online):
./gradlew :fcli-core:fcli-aviator:test --tests "*AviatorAppHelperTest" --tests "*AviatorAppResolverMixinTest"Not in this change
--appoption on user-facing commands (fcli aviator ssc audit-sastand similar) is intentionally unchanged: it is always an application name, never an id.Related
Server MR (adds the RPC): https://gitlab.otxlab.net/appsec/aviator/fortify-aviator/-/merge_requests/407