Skip to content

Geo Location in Alert Evidence breaks Json structure #3056

@SimonDubex

Description

@SimonDubex

Describe the bug

When retrieving alerts from the Security endpoint. The following Security.ipEvidence breaks the Json Structure. As the longtitude contains a comma and is not quoted.
{
"@odata.type": "#microsoft.graph.security.ipEvidence",
"ipAddress": "52.163.67.31",
"countryLetterCode": "SG",
"location": {
"countryName": "Singapore",
"state": "Central Singapore",
"city": "Singapore",
"longitude": 1,038518E+07,
"latitude": 128795
},

Expected behavior

Quote the longitude value or handle longtitude as another data type

How to reproduce

Create a json alert object, including the following information
{
"@odata.type": "#microsoft.graph.security.ipEvidence",
"ipAddress": "52.163.67.31",
"countryLetterCode": "SG",
"location": {
"countryName": "Singapore",
"state": "Central Singapore",
"city": "Singapore",
"longitude": 1,038518E+07,
"latitude": 128795
},

SDK Version

Microsoft.Graph.Security 2

Latest version known to work for scenario above?

2.20.0 and 2.23.0

Known Workarounds

Replacing the Longtitude value manually if it exists

Debug output

Click to expand log ```
</details>


### Configuration

Name                           Value                                                                                    ----                           -----                                                                                    PSVersion                      5.1.17763.6530                                                                           PSEdition                      Desktop                                                                                  PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                  BuildVersion                   10.0.17763.6530                                                                          CLRVersion                     4.0.30319.42000                                                                          WSManStackVersion              3.0                                                                                      PSRemotingProtocolVersion      2.3                                                                                      SerializationVersion           1.1.0.1

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions