Skip to content

Commit 84754ba

Browse files
committed
Avoid logging the authentication challenge to the messages servlet
1 parent 814814d commit 84754ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/main/java/com/oracle/wls/exporter/ExporterServlet.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ private void displayMetrics(WebClient webClient, MetricsStream metricsStream, MB
7575
} catch (RestQueryException e) {
7676
metricsStream.println(
7777
withCommentMarkers("REST service was unable to handle this query\n"
78-
+ selector.getPrintableRequest() + '\n'
79-
+ "exception: " + e.getMessage()));
78+
+ selector.getPrintableRequest() + '\n'
79+
+ "exception: " + e.getMessage()));
80+
} catch (AuthenticationChallengeException e) { // don't add a message for this case
81+
throw e;
8082
} catch (IOException | RuntimeException | Error e) {
8183
MessagesServlet.addExchange(getQueryUrl(selector), selector.getRequest(), toStackTrace(e));
8284
throw e;

0 commit comments

Comments
 (0)