[ 
https://issues.apache.org/jira/browse/CAMEL-27984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adriano Machado reassigned CAMEL-27984:
---------------------------------------

    Assignee: Adriano Machado

> camel-console - bugs in several dev consoles
> --------------------------------------------
>
>                 Key: CAMEL-27984
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27984
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Adriano Machado
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> h4. 1. ProducerDevConsole: NullPointerException when JMX is off
> getManagementStrategy().getManagementAgent().getMBeanServer() runs before the 
> try. Without a ManagementAgent (JMX disabled or camel-management absent) the 
> console throws a NullPointerException. Proposed change: null-check the agent 
> and return an empty list.
> h4. 2. ReloadDevConsole: a timed-out or failed reload reports success
> With wait=true, the catch around f.get(30s) swallows TimeoutException and 
> ExecutionException without setting failed, so the answer says success. 
> Proposed change: set failed=true in the catch, or add a timeout status.
> h4. 3. RouteControllerConsole text output: wrong elapsed and next attempt 
> times
> "Elapsed" prints TimeUtils.printDuration(state.getFirstAttemptTime()), an 
> epoch timestamp formatted as a duration; "Next Attempt" applies printSince to 
> a future time; "Total Routes" has no newline before it. The JSON output is 
> right. Proposed change: use getCurrentElapsedTime() and printDuration(next - 
> now).
> h4. 4. ServiceDevConsole text output: the Endpoint line prints the service URL
> It prints URISupport.sanitizeUri(es.getServiceUrl()) instead of the endpoint 
> URI. Proposed change: sanitizeUri(es.getEndpointUri()).
> h4. 5. SqlQueryDevConsole: truncated is wrong
> truncated = rowCount >= maxRows is always true with maxRows=0 (no limit in 
> JDBC), and also true when exactly maxRows rows exist. Proposed change: 
> maxRows > 0 && rowCount >= maxRows, or fetch maxRows+1 rows.
> h4. 6. DataSourceDevConsole: Agroal pools are never detected
> detectPoolType compares ds.getClass().getName() with 
> io.agroal.api.AgroalDataSource, which is an interface, so Agroal is always 
> "Unknown" and no Agroal metrics are shown. Proposed change: check the class 
> and its interfaces by name.
> h4. 7. JvmDevConsole: showClasspath is never read
> The option (default true) is never used, so the classpath is always included. 
> Proposed change: honor it, or remove the option.
> h4. 8. HealthDevConsole JSON: a check is listed twice
> checks joins the readiness and liveness results, so a check that is both (the 
> HealthCheck default) appears twice. Proposed change: de-duplicate by check id.
> h4. 9. BrowseDevConsole: tail does not return the last messages
> Without freshSize, getExchanges(limit) returns the first limit messages and 
> tail takes its last N of those, so on an endpoint with more than limit 
> messages tail does not return the endpoint's last N. Proposed change: browse 
> all messages when tail > 0, as freshSize does.
> h4. 10. JfrMemoryLeakDevConsole: limit keeps the first groups, not the largest
> limit only applies when the stop command ends the recording (an auto-stop 
> always keeps 100), keeps the first N groups in the order seen, and 
> query/compare ignore it. Proposed change: sort the groups by sampledSize 
> before the cut, and apply it in every path.
> h4. 11. Smaller ones
> TaskRegistryDevConsole JSON: error is "" when there is no exception (others 
> leave it out). RestDevConsole text labels both isSpecification and 
> getSpecificationUri as "Specification:". TraceDevConsole matches dump 
> case-insensitively but enabled case-sensitively, so enabled=TRUE is ignored. 
> SourceDevConsole JSON returns code [] instead of leaving it out when the 
> source cannot be resolved.
> Found while checking the option and console descriptions of CAMEL-27980.
> ----
> _Filed by Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to