Registry Mirror
Skip to content

Conversation

@DerDreschner

@DerDreschner DerDreschner commented Nov 30, 2026 •

Copy link
Copy Markdown
Member
  • Resolves: none

Summary

On Oracle, every contacts search with a date filter fails with a 500 (ORA-00904: "CP_BDAY"...), because the join condition isn't quoted and Oracle folds it to upper case. This has been the case since 28.0.0.

The filter itself is unchanged: it still only checks that a contact has a birthday and doesn't compare the dates (existing FIXME in the code), so Oracle now returns the same contacts as the other databases.

How to test on Oracle (with the Contacts app):

  1. Create two contacts, "Alice Test" with a birthday and "Bob Test" without one.
  2. Search with a date filter:
    curl -u admin:admin -H 'OCS-APIRequest: true' 'http://localhost/ocs/v2.php/search/providers/contacts/search?format=json&term=Test&since=2026-01-01'
  3. It returns Alice. On master, it fails with a 500.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The raw join condition isn't quoted, so Oracle folds the column names to
upper case and doesn't find them. Every contacts search with a date
filter has failed there with ORA-00904 since 28.0.0.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@DerDreschner

Copy link
Copy Markdown
Member Author

/backport to stable35

@DerDreschner

Copy link
Copy Markdown
Member Author

/backport to stable34

@DerDreschner

Copy link
Copy Markdown
Member Author

/backport to stable33

@DerDreschner DerDreschner added bug 3. to review Waiting for reviews labels Nov 30, 2026
@CarlSchwan
CarlSchwan merged commit 4487582 into master Dec 1, 2026
154 checks passed
@CarlSchwan
CarlSchwan deleted the fix/oracle-carddav-date-filter branch December 1, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants