You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: REST transport uses %1s/%2s width specifiers, padding single-char push notification config IDs with spaces #1367
RestTransport and RestTransport_v0_3 construct REST paths using String.format with %1s and %2s instead of %s (or positional %1$s/%2$s). In java.util.Formatter, %2s specifies a minimum width of 2 characters with leading space padding (similar to #1197 where %2d padded single-digit historyLength).
When a push notification config ID is 1 character long (e.g., 5), the formatted URL contains a literal space:
/tasks/task-1/pushNotificationConfigs/ 5
With JdkA2AHttpClient, passing this URL to URI.create(...) immediately throws IllegalArgumentException: Illegal character in path.
Call getTaskPushNotificationConfiguration(new GetTaskPushNotificationConfigParams(task-1, 5), null) or deleteTaskPushNotificationConfigurations(new DeleteTaskPushNotificationConfigParams(task-1, 5), null) on RestTransport (or the equivalent methods on RestTransport_v0_3).
Expected Behavior
Replace %1s and %2s with %s across both RestTransport and RestTransport_v0_3 so single-character config IDs (e.g., 5) format as /tasks/task-1/pushNotificationConfigs/5 without space padding.
Activity