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

deliminates data stream and route with an underscore #533

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

cfarmer-fearless
Copy link
Contributor

This patch addresses an issue with how we use filenames to define data streams and routes for manifest validation. Currently, data streams and routes provided in a sender manifest are used to read in the manifest config json file by joining the data stream and route strings with a "-" (dash) character. This made it difficult to determine the datastream and route given the filename since some data streams had dashes within their values. This allowed for unintended behavior in the UI by allowing some invalid inputs to be deemed valid.

For example, if we wanted to pick the datastream "covid-all-monthly-vaccination" and the route of "csv", we could say the datastream is actually "covid-all" and the route is "monthly-vaccination-csv". The service would simple concatinate these two values with a dash, and would be able to resolve the json file. Obviously, this input combination is invalid and the user should instead see a "not found" message.

To fix this, I've renamed all of the V2 config files to use an "_" (underscore) delimiter between the datastream and route instead of a dash. That way, it's more clear where the two parts of information are, and gives the desired behavior in the UI.

Copy link

Fortify Scan Results

🟢 Status: ✅ Passed

Summary

  • 🚨 Critical Issues: 0
  • 🛑 High Issues: 0
  • ⚠️ Medium Issues: 0
  • 🔍 Low Issues: 0

No Action Required

No vulnerabilities were identified in this scan.

Detailed Results

📂 Scanned Path(s)

upload-server

📊 Detailed Scan Results


sourceanalyzer is installed.
FPRUtility is installed.
fortifyclient is installed.
Using Fortify Source Analyzer to scan the code from upload-server. Results will be upload-server.fpr.
Printing the results using Fortify FPRUtility, FPRUtility summarizes and translate results.
Summary of all issues:

Total for all categories => 0 Issues

****************************************************
Number of critical issues:
No issues matched search query.
****************************************************
Number of high issues:
No issues matched search query.
****************************************************
Number of medium issues:
No issues matched search query.
****************************************************
Number of low issues:
No issues matched search query.
****************************************************

Details of all issues in csv format:




upload-server/testing/cli_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@thetif thetif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

Fortify Scan Results

🟢 Status: ✅ Passed

Summary

  • 🚨 Critical Issues: 0
  • 🛑 High Issues: 0
  • ⚠️ Medium Issues: 0
  • 🔍 Low Issues: 0

No Action Required

No vulnerabilities were identified in this scan.

Detailed Results

📂 Scanned Path(s)

upload-server

📊 Detailed Scan Results


sourceanalyzer is installed.
FPRUtility is installed.
fortifyclient is installed.
Using Fortify Source Analyzer to scan the code from upload-server. Results will be upload-server.fpr.
Printing the results using Fortify FPRUtility, FPRUtility summarizes and translate results.
Summary of all issues:

Total for all categories => 0 Issues

****************************************************
Number of critical issues:
No issues matched search query.
****************************************************
Number of high issues:
No issues matched search query.
****************************************************
Number of medium issues:
No issues matched search query.
****************************************************
Number of low issues:
No issues matched search query.
****************************************************

Details of all issues in csv format:




@cfarmer-fearless cfarmer-fearless merged commit 2ba279f into main Oct 18, 2024
3 checks passed
@cfarmer-fearless cfarmer-fearless deleted the UPLOAD-1745/bugfix-data-stream-route-concat branch October 18, 2024 17:59
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 this pull request may close these issues.

3 participants