Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESAPI 2.2.0.0-RC2 causes compilation errors in Java Encoder project #31

Closed
kwwall opened this issue Apr 30, 2019 · 7 comments · Fixed by #37
Closed

ESAPI 2.2.0.0-RC2 causes compilation errors in Java Encoder project #31

kwwall opened this issue Apr 30, 2019 · 7 comments · Fixed by #37

Comments

@kwwall
Copy link
Contributor

kwwall commented Apr 30, 2019

Running 'mvn compile' causes the following compilation errors in the encoder-esapi artifact (aka, ESAPI Thunk) when used with esapi-2.2.0.0-rc2.jar:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project encoder-esapi: Compilation failure
[ERROR] /home/kww/Code/GitHub/owasp-java-encoder/esapi/src/main/java/org/owasp/encoder/esapi/ESAPIEncoder.java:[128,13] org.owasp.encoder.esapi.ESAPIEncoder.Impl is not abstract and does not override abstract method getCanonicalizedURI(java.net.URI) in org.owasp.esapi.Encoder

Note that this problem was described as part of your GitHub issue #30 but is not related to that. It was the serendipitous discovery caused by the non-pinned ESAPI transitive dependency that allowed this issue to be discovered.

If you want to eventually be able to support ESAPI 2.2.0.0 this will need to be fixed.

@guruhb
Copy link

guruhb commented May 2, 2019

week before owasp compiled without below error (But compilation failing now).
org.owasp.encoder.esapi.ESAPIEncoder.Impl is not abstract and does not override abstract method getCanonicalizedURI(java.net.URI) in org.owasp.esapi.Encoder

Haven't changed any version of the "mvn or java" even getting the same error on released tag v1.2.1 and v1.2.2. What could lead to this compilation failure ?

@kwwall
Copy link
Contributor Author

kwwall commented May 2, 2019 via email

@jmanico
Copy link
Member

jmanico commented Jul 24, 2020

I am assuming this is fixed, please reopen if not.

@jmanico jmanico closed this as completed Jul 24, 2020
@kwwall
Copy link
Contributor Author

kwwall commented Jul 30, 2020

@jmanico - Not fixed; needs reopened. If you ask nicely, I'll even submit a PR. :)

@jmanico
Copy link
Member

jmanico commented Jul 30, 2020 via email

@kwwall
Copy link
Contributor Author

kwwall commented Jul 30, 2020

@jmanico - Since the OWASP Java Encoder project is already using SLF4J and has that configured, I am just going to configure ESAPI to use SLF4J That will greatly simplify things since I don't need to use the esapi-java-logging.properties and can eliminate some of the Logger properties.

@kwwall
Copy link
Contributor Author

kwwall commented Jul 30, 2020

Okay; upon close look, you are not using any logger at all, so exceptions are not logged. But NBD. SLF4J works better without configuration than does JUL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants