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

Feature/externalize mongo schema #224

Merged
merged 22 commits into from
Jul 14, 2023
Merged

Conversation

nleach999
Copy link
Collaborator

Description

New features for 2.1.1 release.

Resolves #54
Resolves #55

References

See release notes.

Testing

Compatibility was tested for both native MongoDB and DocumentDB.

@github-actions
Copy link

InferCsharp win-x64 Results
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxAuditTrailsDB/DbAccess.cs:96: error: Dotnet Resource Leak
Leaked resource return of type CxAnalytix.CxAuditTrails.DB.DbAccess$FetchResults, Leaked resource con of type Microsoft.Data.SqlClient.SqlConnection in method "DbAccess$FetchResults DbAccess.FetchRecords(String,String,String,String,DateTime)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/CxRestContextBase.cs:127: error: Dotnet Resource Leak
Leaked resource (output of System.Net.Http.FormUrlEncodedContent::.ctor() at Line 128) of type System.Net.Http.FormUrlEncodedContent in method "LoginToken CxRestContextBase.GetLoginToken(Dictionary`2<!0,!1>)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/MNO/CxMnoPolicies.cs:28: error: Dotnet Resource Leak
Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxMnoPolicies.GetFlatPolicyNames(JToken)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastGenerateScanReport.cs:32: error: Dotnet Resource Leak
Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxSastGenerateScanReport.ReadReportId(JToken)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastScanReportGenStatus.cs:30: error: Dotnet Resource Leak
Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "CxSastScanReportGenStatus$GenStatus CxSastScanReportGenStatus.ReadStatus(JToken)".

/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:995: error: Null Dereference
writeQueue could be null (last assigned on line 809) and is dereferenced.

/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:1010: error: Null Dereference
curPathNode could be null (last assigned on line 809) and is dereferenced.

Found 7 issues
Issue Type(ISSUED_TYPE_ID): #
Dotnet Resource Leak(DOTNET_RESOURCE_LEAK): 5
Null Dereference(NULLPTR_DEREFERENCE): 2

@github-actions
Copy link

InferCsharp linux-x64 Results
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxAuditTrailsDB/DbAccess.cs:96: error: Dotnet Resource Leak
Leaked resource return of type CxAnalytix.CxAuditTrails.DB.DbAccess$FetchResults, Leaked resource con of type Microsoft.Data.SqlClient.SqlConnection in method "DbAccess$FetchResults DbAccess.FetchRecords(String,String,String,String,DateTime)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/CxRestContextBase.cs:127: error: Dotnet Resource Leak
Leaked resource (output of System.Net.Http.FormUrlEncodedContent::.ctor() at Line 128) of type System.Net.Http.FormUrlEncodedContent in method "LoginToken CxRestContextBase.GetLoginToken(Dictionary`2<!0,!1>)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/MNO/CxMnoPolicies.cs:28: error: Dotnet Resource Leak
Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxMnoPolicies.GetFlatPolicyNames(JToken)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastGenerateScanReport.cs:32: error: Dotnet Resource Leak
Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxSastGenerateScanReport.ReadReportId(JToken)".

/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastScanReportGenStatus.cs:30: error: Dotnet Resource Leak
Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "CxSastScanReportGenStatus$GenStatus CxSastScanReportGenStatus.ReadStatus(JToken)".

/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:995: error: Null Dereference
writeQueue could be null (last assigned on line 809) and is dereferenced.

/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:1010: error: Null Dereference
curPathNode could be null (last assigned on line 809) and is dereferenced.

Found 7 issues
Issue Type(ISSUED_TYPE_ID): #
Dotnet Resource Leak(DOTNET_RESOURCE_LEAK): 5
Null Dereference(NULLPTR_DEREFERENCE): 2

@nleach999 nleach999 merged commit bf4afe3 into master Jul 14, 2023
14 checks passed
@nleach999 nleach999 deleted the feature/externalize_mongo_schema branch July 14, 2023 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant