-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fixed jakarta.faces.WEBAPP_CONTRACTS_DIRECTORY spec/impl mismatch #5330
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
|
||
import com.sun.faces.config.WebConfiguration; | ||
import com.sun.faces.facelets.FaceletContextImplBase; | ||
import com.sun.faces.facelets.TemplateClient; | ||
import com.sun.faces.facelets.el.VariableMapperWrapper; | ||
|
@@ -108,16 +107,12 @@ public void apply(FaceletContext ctxObj, UIComponent parent) throws IOException | |
if (path.trim().length() == 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. path.isBlank() There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not part of fix, but indeed candidate to be improved project-wide in a new pr There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just because you were editing those files ... ;) |
||
throw new TagAttributeException(tag, template, "Invalid path : " + path); | ||
} | ||
WebConfiguration webConfig = WebConfiguration.getInstance(); | ||
if (path.startsWith(webConfig.getOptionValue(WebConfiguration.WebContextInitParameter.WebAppContractsDirectory))) { | ||
throw new TagAttributeException(tag, template, "Invalid path, contract resources cannot be accessed this way : " + path); | ||
} | ||
ctx.includeFacelet(parent, path); | ||
} catch (IOException e) { | ||
if (log.isLoggable(Level.FINE)) { | ||
log.log(Level.FINE, e.toString(), e); | ||
} | ||
throw new TagAttributeException(tag, template, "Invalid path : " + path); | ||
throw new TagAttributeException(tag, template, "Invalid path : " + path, e); | ||
} finally { | ||
ctx.setVariableMapper(orig); | ||
ctx.popClient(this); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path.isBlank()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not part of fix, but indeed candidate to be improved project-wide in a new pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just because you were editing those files ... ;)