-
Notifications
You must be signed in to change notification settings - Fork 180
Resolve FormatException by escaping curly brackets not meant for indexing #1475
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
Merged
WanjohiSammy
merged 2 commits into
main
from
fix/formatexception-and-add-tests-for-resources
Jun 18, 2025
Merged
Resolve FormatException by escaping curly brackets not meant for indexing #1475
WanjohiSammy
merged 2 commits into
main
from
fix/formatexception-and-add-tests-for-resources
Jun 18, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xuzhg
approved these changes
May 8, 2025
Member
Author
|
/AzurePipelines run OData-AspNetCoreOData-main-rolling-1ES |
|
No pipelines are associated with this pull request. |
Member
Author
|
/AzurePipelines run OData-AspNetCoreOData-main-rolling-1ES |
|
No pipelines are associated with this pull request. |
Member
Author
|
/AzurePipelines run OData-AspNetCoreOData-main-rolling-1ES |
|
No pipelines are associated with this pull request. |
…d-tests-for-resources
Member
Author
|
/AzurePipelines run OData-AspNetCoreOData-main-rolling-1ES |
|
No pipelines are associated with this pull request. |
Member
Author
|
/AzurePipelines run OData-AspNetCoreOData-main-rolling-1ES |
|
No pipelines are associated with this pull request. |
Member
Author
|
/AzurePipelines run OData-AspNetCoreOData-main-rolling-1ES |
|
No pipelines are associated with this pull request. |
ArnaudB88
added a commit
to ArnaudB88/OData2Linq
that referenced
this pull request
Jul 16, 2025
* Migrate to ESRP v5 (OData#1421) * Migrate to ESRP v5 * Replace raw resource identifiers with variables * Fix typo in KV variable * Add Obsolete attribute to EdmDeltaResourceObject and EdmDeltaComplexObject type * Fix regression causing navigation properties to be auto-expanded in typeless scenarios (OData#1424) * Bump version to 9.2.1 (OData#1437) * Fix an issue where multiple flags are set and ensure correct deserialization (OData#1442) * Fixes OData#1455 Add ISearchQueryValidator (OData#1456) * Restructure AggregationBinder and ComputeBinder for extensibility (port OData#1378) (OData#1457) * Bump version to 9.3.0 (OData#1464) * Fix the typo of generaticType * Fixes OData#580 Change PageResult<T> property names on serialization * Fixes OData#1472: Custom ISearchBinder does not support deeply nested $expand (OData#1474) * Fixes OData#1472: Custom ISearchBinder does not support deeply nested $expand * Address the comments. * Ensuring Url safe string key values. Aligning with ODL Client. Fixes OData#1390. (OData#1396) * CA2254 fixes possible formatting errors * bump to release version 9.3.1 * Enable minimal API OData (OData#1469) * Enable minimal API OData * Simple exclude the metadata and servicedocument reault out from the filter. * add content-type into response header * Enable Delta<T> as parameter * update the comments and public api * Bump to version 9.4.0 preview * Fixes OData#1483: Regression with computed in $orderby with 'Could not find a property named xxx on ....' (OData#1486) * Fixes OData#1483: Regression with computed in $orderby with 'Could not find a property named xxx on ....' * Bump version to 9.3.2 * Fixes OData#1487 : Minimal API TimeZoneInfo for Serialization (OData#1488) * Fixes OData#1487 : Minimal API TimeZoneInfo for Serialization minimalApi Enable ODataActionParameter and ODataUntypedActionParameter binding * Address the comment to move the error messge to Resources * Resolve the issue with IAsyncEnumerable (OData#1467) * Resolve the issue with IAsyncEnumerable * Resolve FormatException by escaping curly brackets and add tests for SRResources (OData#1475) * Fix vulnerable dependencies in newtonsoft.json (OData#1489) * Fix vulnerable dependencies * Replace Microsoft.CodeAnalysis.FxCopAnalyzers with Microsoft.CodeAnalysis.NetAnalyzers * Fixes OData#1494: Enable DeltaSet<T> for minimal API parameter binding
ArnaudB88
added a commit
to ArnaudB88/OData2Linq
that referenced
this pull request
Jul 16, 2025
* bump version * Update reference to ASP.NET Core OData v9.3.2 (#7) * Migrate to ESRP v5 (OData#1421) * Migrate to ESRP v5 * Replace raw resource identifiers with variables * Fix typo in KV variable * Add Obsolete attribute to EdmDeltaResourceObject and EdmDeltaComplexObject type * Fix regression causing navigation properties to be auto-expanded in typeless scenarios (OData#1424) * Bump version to 9.2.1 (OData#1437) * Fix an issue where multiple flags are set and ensure correct deserialization (OData#1442) * Fixes OData#1455 Add ISearchQueryValidator (OData#1456) * Restructure AggregationBinder and ComputeBinder for extensibility (port OData#1378) (OData#1457) * Bump version to 9.3.0 (OData#1464) * Fix the typo of generaticType * Fixes OData#580 Change PageResult<T> property names on serialization * Fixes OData#1472: Custom ISearchBinder does not support deeply nested $expand (OData#1474) * Fixes OData#1472: Custom ISearchBinder does not support deeply nested $expand * Address the comments. * Ensuring Url safe string key values. Aligning with ODL Client. Fixes OData#1390. (OData#1396) * CA2254 fixes possible formatting errors * bump to release version 9.3.1 * Enable minimal API OData (OData#1469) * Enable minimal API OData * Simple exclude the metadata and servicedocument reault out from the filter. * add content-type into response header * Enable Delta<T> as parameter * update the comments and public api * Bump to version 9.4.0 preview * Fixes OData#1483: Regression with computed in $orderby with 'Could not find a property named xxx on ....' (OData#1486) * Fixes OData#1483: Regression with computed in $orderby with 'Could not find a property named xxx on ....' * Bump version to 9.3.2 * Fixes OData#1487 : Minimal API TimeZoneInfo for Serialization (OData#1488) * Fixes OData#1487 : Minimal API TimeZoneInfo for Serialization minimalApi Enable ODataActionParameter and ODataUntypedActionParameter binding * Address the comment to move the error messge to Resources * Resolve the issue with IAsyncEnumerable (OData#1467) * Resolve the issue with IAsyncEnumerable * Resolve FormatException by escaping curly brackets and add tests for SRResources (OData#1475) * Fix vulnerable dependencies in newtonsoft.json (OData#1489) * Fix vulnerable dependencies * Replace Microsoft.CodeAnalysis.FxCopAnalyzers with Microsoft.CodeAnalysis.NetAnalyzers * Fixes OData#1494: Enable DeltaSet<T> for minimal API parameter binding
This was referenced Oct 16, 2025
This was referenced Oct 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
This pull request fixes a similar issue in ODL #3240 .
Description
The PR updates localized string resources and introduced tests to ensure proper formatting of resource keys. This is to prevent
FormatExceptionoccurring when some resources have incorrect parameter indexing.The changes:
SRResources.Designer.cs: Corrected parameter indexing in localized strings.SRResources.resx: Updated localized strings for consistency in parameter indexing.SRResourcesTests.cs: Added extensive test cases to validate resource keys and formatting.Checklist (Uncheck if it is not completed)
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.