-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add UI5 web app detection #66
Conversation
fa8d8a8
to
d57bb93
Compare
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/JsonParser.qll
Outdated
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/JsonParser.qll
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/JsonParser.qll
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/JsonParser.qll
Outdated
Show resolved
Hide resolved
0077a0b
to
a5fe10f
Compare
We have discovered XML views that have the namespace `sap.ui.core` instead of the documented `sap.ui.core.mvc`. To detect these XML views we now include root elements with: - the name `View`, and - a namespace `sap.ui.core.mvc`, or `sap.ui.core`, but with a namespace declaration for `sap.ui.core.mvc`.
Project resolution relied on a property that doesn't hold for all SAP UI5 projects. The WebApp approach follows the bootstrapping process to determine the definition of a webapp and uses the resource roots to resolve resources beloning to a webapp.
efddae4
to
3edb117
Compare
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/JsonParser.qll
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/JsonParser.qll
Show resolved
Hide resolved
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.
Some questions (not pointing out a functional problem!) regarding some bits here and there.
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll
Outdated
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll
Outdated
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll
Outdated
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll
Outdated
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll
Show resolved
Hide resolved
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5HTML.qll
Outdated
Show resolved
Hide resolved
It's a huge advancement! Some suggestions left above, and after those are done it's a solid 🚀 |
Removing the the forward slash ensures we can find the core script located in the same directoryy as the webapp.
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.
Solid LGTM and I learned a lot from it!
This commit changes how we detect a UI5 project.
The used
ui5.yml
file is part of a tool chain recommended to build UI5 web apps, but is not necessary.We therefore rely on detection of UI5 bootstrapping to determine a web app and its resources.