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

[BUG] Issue with Apostrophes in Config File #2629

Open
1 task done
mcoursol opened this issue Dec 3, 2024 · 0 comments
Open
1 task done

[BUG] Issue with Apostrophes in Config File #2629

mcoursol opened this issue Dec 3, 2024 · 0 comments

Comments

@mcoursol
Copy link

mcoursol commented Dec 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In the configuration file, the apostrophe (’) is accepted, but the regular single quote (') is not. This behavior is inconsistent and is causing issues during parsing or processing of the configuration.

Actual Behavior:
The apostrophe (’) is accepted without issues, but the single quote (') causes errors during processing.

Config File Sample:
{
"map": {
"interaction": "dynamic",
"viewSettings": {
"projection": 3857
},
"basemapOptions": {
"basemapId": "transport",
"shaded": true,
"labeled": true
},
"listOfGeoviewLayerConfig": [
{
"geoviewLayerId": "b6b6d5a6-bded-4b6e-9e8a-17f6e1b538dc",
"geoviewLayerName": "Qualité de l'eau des cours d'eau canadiens",
"metadataAccessPath": "",
"geoviewLayerType": "geoCore",
"listOfLayerEntryConfig": [
{
"layerId": "5",
"layerName": "Qualité de l'eau aux sites de suivi"
}
]
},
{
"geoviewLayerId": "94a51051-ad11-499a-b5f1-8c97b29f695c",
"geoviewLayerName": "Cartes des installations ayant soumis une déclaration – Rejets totaux dans l’eau",
"metadataAccessPath": "",
"geoviewLayerType": "geoCore",
"listOfLayerEntryConfig": [
{
"layerId": "3",
"layerName": "Rejets dans les eaux de surface déclarés pour 2023"
}
]
}
]
},
"components": ["north-arrow", "overview-map"],
"overviewMap": { "hideOnZoom": 6 },
"navBar": ["zoom", "fullscreen", "home", "location", "basemap-select"],
"appBar": {
"tabs": {
"core": ["geolocator", "export"]
}
},
"footerBar": {
"tabs": {
"core": ["legend", "layers", "details", "data-table"]
}
},
"corePackages": [],
"theme": "geo.ca"
}

Expected Behavior

The configuration file should accept both types of apostrophes (' and ’) without errors.

Steps To Reproduce

  1. Use the configuration file provided with the apostrophe (’) character in one part of the file.
  2. Replace the apostrophe (’) with the single quote (') in the same part of the file.
  3. Attempt to load the configuration file.

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant