Skip to content

Conversation

@neddp
Copy link
Member

@neddp neddp commented Dec 11, 2025

Fixes #3699

This PR fixes a bug in UAA's SCIM filter implementation where ISO 8601 timestamps with timezone information were incorrectly parsed by ignoring the timezone and using the JVM's local timezone instead.

Changed the SimpleDateFormat pattern from 'Z' (literal character) to X (ISO 8601 timezone):

  • Before: 'Z' in quotes treated as literal character → timezone information ignored, timestamp parsed in local time
  • After: X correctly interprets ISO 8601 timezone indicators (Z for UTC, +HH:MM/-HH:MM for offsets) → timestamp parsed with correct timezone

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in UAA's SCIM DateTime filter implementation where ISO 8601 timestamps with timezone information were being parsed incorrectly, with the timezone being ignored and the JVM's local timezone being used instead.

Key Changes:

  • Updated the SimpleDateFormat pattern in getStringOrDate() method from 'Z' (literal character) to X (ISO 8601 timezone pattern)
  • This allows proper parsing of timezone indicators like "Z" for UTC and "+HH:MM"/"-HH:MM" for timezone offsets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@strehle strehle requested a review from duanemay December 11, 2025 14:45
@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Dec 11, 2025
@duanemay duanemay merged commit 0b5cf18 into cloudfoundry:develop Dec 11, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

SCIM DateTime Filter Timezone Parsing Bug

3 participants