nextcloud / nextcloud/collectives

Full-text search not working with server-side encryption

Open
#2,681 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: search/filter feature: server encryption
Dominant language
JavaScript
Stars
195
Forks
51
Avg merge
1d 2h
Merged PRs (30d)
48

Description

Describe the bug
Full-text search seems to be broken when server-side encryption is enabled. The search request always returns an empty array (i.e. no results).

My suspicion is that indexing somehow is broken with encrypted Markdown files, but I didn't further look into it yet.

To Reproduce
Steps to reproduce the behavior:

  1. Enable server-side encryption
  2. Create a collective and a page with content
  3. Run occ collectives:index to index the page for full-text search
  4. Search for a word that is part of the page content
  5. Watch the network request returning an empty array in ocs.data.pages

Server details:

  • Collectives app version: 4.4.2
  • Nextcloud version: latest master (35)

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

Reproduce the issue with server-side encryption enabled, a collective page containing searchable text, and occ collectives:index; inspect the resulting ocs.data.pages response. Trace how encrypted Markdown content is indexed and searched, and confirm that searching for a word from the page returns the page instead of an empty array.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
search, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.