rombert commented on code in PR #3:
URL:
https://github.com/apache/sling-org-apache-sling-commons-crypto/pull/3#discussion_r1796967532
##########
src/main/java/org/apache/sling/commons/crypto/webconsole/internal/EncryptWebConsolePlugin.java:
##########
@@ -98,19 +98,16 @@
writer.println("<p>No crypto service available</p>");
}
- final String forwardRequestUri = (String)
request.getAttribute(RequestDispatcher.FORWARD_REQUEST_URI);
- if (Objects.nonNull(forwardRequestUri) &&
forwardRequestUri.equals(request.getRequestURI())) {
- final String ciphertext = (String)
request.getAttribute(ATTRIBUTE_CIPHERTEXT);
- if (Objects.nonNull(ciphertext)) {
- final String html = String.format("<p
id=\"ciphertext\">Encrypted message: %s</p>", ciphertext);
- writer.println(html);
- }
+ final String ciphertext = request.getParameter(PARAMETER_CIPHERTEXT);
+ if (Objects.nonNull(ciphertext)) {
+ final String html = String.format("<p id=\"ciphertext\">Encrypted
message: %s</p>", ciphertext);
+ writer.println(html);
Review Comment:
Fair enough, will fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]