nextcloud / nextcloud/contacts

Search failed if address book's name contains a space

Open
#1,991 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: search
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:

  1. Create an address book with a space in its name, like "Contacts Communs"
  2. Create a contact inside that address book
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.