-
Notifications
You must be signed in to change notification settings - Fork 14
Increase strictness / correctness of URI micro form validation #18
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
Merged
stevenhartley
merged 26 commits into
eclipse-uprotocol:main
from
PLeVasseur:feature/protobuf_id_u32_to_micro_serializer_u16_checks
Feb 16, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3182423
Added checks and failure paths if UEntity and UResource do not have t…
PLeVasseur b27d63a
Cleaned up UEntity and UResource functions checking on overflow to re…
PLeVasseur 2388cd5
Ran cargo fmt.
PLeVasseur 5f03557
Worked the check is_micro_form() to use the check on small enough to …
PLeVasseur 0d32bca
Added tests in urivalidator for new cases where is_micro_form() could…
PLeVasseur 4aec055
Addressed TODO regarding check for fully resolved URI.
PLeVasseur b67a74d
Addressed UEntity MAJOR version overflow of allotted 8 bits.
PLeVasseur 156d5ff
Added check for UAuthority ID and IP compliance for is_micro_form(). …
PLeVasseur 6741bee
Revised MicroUriSerializer impl of serialize to remove now unnecessar…
PLeVasseur e392178
Minor rename of IpConformance enum members.
PLeVasseur b7ab7fe
Added documentation to validation functions within UAuthority and UEn…
PLeVasseur a094c1f
Fix clippy warning.
PLeVasseur 46f991f
Began process of breaking up validate_micro_form() into relevant UFoo.
PLeVasseur a1ae166
Migrated validate_micro_form() logic into each component of a UUri.
PLeVasseur 1dbf0e0
cargo fmt
PLeVasseur ee854bc
Bail out of validate_micro_form() functions as soon as we fail a vali…
PLeVasseur 72a8458
Fixing unit tests after change to using protobuf crate from prost.
PLeVasseur 269fcbc
Address clippy
PLeVasseur cfbdc84
Added a bit more documentation that serialize() can return a Serializ…
PLeVasseur 7a41c6c
Moved a number of unit tests into doc tests :)
PLeVasseur 5d0d7f9
Removed checking on string fragments due to its frailty. Added a chec…
PLeVasseur 59b22d7
Updated feature flag for ureq to respect any proxy settings the user …
PLeVasseur 9f43990
Adding .idea/ to .gitignore.
PLeVasseur 3546d49
Updates: handling new up-core-api fixes to remove ip/id ambiguity in …
PLeVasseur e02f64c
Update doctests to refer to now instead of .
PLeVasseur 2f75090
Removed equality checks against string fragments in unit tests.
PLeVasseur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.