src/main/java/org/apache/sling/auth/core/spi/AbstractAuthenticationFormServlet.java [273:297]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private String getRawForm() throws IOException {
        String value = rawForm.get();
        if (value == null) {
            try (InputStream ins = getLoginFormStream();
                    Reader r = ins == null ? null : new InputStreamReader(ins, StandardCharsets.UTF_8)) {
                if (r != null) {
                    StringBuilder builder = new StringBuilder();

                    char[] cbuf = new char[1024];
                    int rd = 0;
                    while ((rd = r.read(cbuf)) >= 0) {
                        builder.append(cbuf, 0, rd);
                    }

                    value = builder.toString();
                    rawForm.set(value);
                }
            }

            if (value == null) {
                throw new IOException("Failed reading form template");
            }
        }
        return value;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/auth/core/spi/AbstractJakartaAuthenticationFormServlet.java [271:295]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private String getRawForm() throws IOException {
        String value = rawForm.get();
        if (value == null) {
            try (InputStream ins = getLoginFormStream();
                    Reader r = ins == null ? null : new InputStreamReader(ins, StandardCharsets.UTF_8)) {
                if (r != null) {
                    StringBuilder builder = new StringBuilder();

                    char[] cbuf = new char[1024];
                    int rd = 0;
                    while ((rd = r.read(cbuf)) >= 0) {
                        builder.append(cbuf, 0, rd);
                    }

                    value = builder.toString();
                    rawForm.set(value);
                }
            }

            if (value == null) {
                throw new IOException("Failed reading form template");
            }
        }
        return value;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



