nextcloud / nextcloud/contacts
Search failed if address book's name contains a space
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 642
- Forks
- 221
- Avg merge
- 14h 39m
- Merged PRs (30d)
- 51
Description
Describe the bug
I have 2 address books : one called "Contacts", the other one called "Contacts Communs" (its name contains a space)
Using unified search, I cannot display a contact if it belongs to the address book with a space in its name.
To Reproduce
Steps to reproduce the behavior:
- Create an address book with a space in its name, like "Contacts Communs"
- Create a contact inside that address book
- Search this contact (with the unified search) and click on it in the search result
Expected behavior
The contact details should be displayed.
Actual behavior
An error message 'Contact not found' is showed.
Note that if the address book's name doesn't contain a space, everything works fine.
Server configuration
Operating system: Debian Buster (10)
Web server: Apache 2.4.38
Database: PostgreSQL 11
PHP version: 7.3.19
Nextcloud version: 20.0.4
Contacts version: 3.4.2
Updated from an older Nextcloud or fresh install: Updated
Signing status:
No errors have been found.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the unified-search flow with an address book named "Contacts Communs", then trace how a search result opens contact details and how the address-book name is handled. Done means contacts from address books containing spaces open normally instead of showing "Contact not found".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100