Page MenuHomePhabricator

[services] Tunnelbroker - Validate sessionID and deviceID in database entities.
ClosedPublic

Authored by max on Mar 28 2022, 6:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 12:50 AM
Unknown Object (File)
Thu, Nov 14, 8:54 AM
Unknown Object (File)
Wed, Nov 13, 12:43 PM
Unknown Object (File)
Wed, Nov 13, 12:43 PM
Unknown Object (File)
Sun, Nov 10, 5:42 AM
Unknown Object (File)
Oct 13 2024, 9:50 PM
Unknown Object (File)
Oct 13 2024, 9:50 PM
Unknown Object (File)
Oct 13 2024, 9:50 PM

Details

Summary

Validating sessionID and deviceID fields in database item entities using validation functions in Tools.

Note:
Validating empty strings are moved to D3525 which will be merged.

Related linear task: ENG-618

Test Plan

Successfully built and run service using yarn run-tunnelbroker-service.

Diff Detail

Repository
rCOMM Comm
Branch
deviceid-sessionid-validation
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

If this diff has a dependency on D3525, please specify it! You can do this by hitting "Edit Related Revisions..." in the UI on this page, or you can do it by specifying "Depends on Dsomething" in the diff description when creating the diff with arc diff.

(Apologies if there is no dependency, I may be misunderstanding your diff description.)

tomek requested changes to this revision.Mar 29 2022, 5:51 AM
tomek added inline comments.
services/tunnelbroker/src/Database/MessageItem.cpp
36–47 ↗(On Diff #10740)

Shouldn't we keep checking messageID and expire?

This revision now requires changes to proceed.Mar 29 2022, 5:51 AM

Moving it on top of D3525 to be more clear.

max marked an inline comment as done.
max added inline comments.
services/tunnelbroker/src/Database/MessageItem.cpp
36–47 ↗(On Diff #10740)

Shouldn't we keep checking messageID and expire?

Right, but it's on the other diff.
Moved it on top of the D3525 to be more clear.

In D3526#96388, @ashoat wrote:

If this diff has a dependency on D3525, please specify it! You can do this by hitting "Edit Related Revisions..." in the UI on this page, or you can do it by specifying "Depends on Dsomething" in the diff description when creating the diff with arc diff.

(Apologies if there is no dependency, I may be misunderstanding your diff description.)

It was like two separate parallel diffs that will be merged. But I'm changing to Parent-Child diffs stack right now to be more clear.
Thanks!

This revision is now accepted and ready to land.Mar 31 2022, 8:43 AM

Rebasing on master. Merging changes.

This revision was landed with ongoing or failed builds.Apr 7 2022, 2:51 AM
This revision was automatically updated to reflect the committed changes.