Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix full-text search results not being opened in browser #5279

Merged
merged 3 commits into from
Jan 6, 2023

Conversation

claucambra
Copy link
Collaborator

The full-text search app provides incomplete resource URLs unlike all other search result apps, meaning our default behaviour for opening search results in the browser does not work

This PR adds a procedure to compensate for this

Closes #5113 and nextcloud/fulltextsearch#728

@tobiasKaminsky
Copy link
Member

The full-text search app provides incomplete resource URLs unlike all other search result apps, meaning our default behaviour for opening search results in the browser does not work

Great!
Can you create an issue on FTS so that every result provides the entire link?
Then we can eliminate this workaround at some point again and it is also consistent with other search results (e.g. unified search).

@claucambra
Copy link
Collaborator Author

The full-text search app provides incomplete resource URLs unlike all other search result apps, meaning our default behaviour for opening search results in the browser does not work

Great! Can you create an issue on FTS so that every result provides the entire link? Then we can eliminate this workaround at some point again and it is also consistent with other search results (e.g. unified search).

done 🙂

@claucambra claucambra force-pushed the bugfix/fix-full-text-search-items branch from c9d7247 to 74fbfd8 Compare December 16, 2022 14:28
@codecov
Copy link

codecov bot commented Dec 16, 2022

Codecov Report

Merging #5279 (4812989) into master (34240e1) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5279   +/-   ##
=======================================
  Coverage   57.58%   57.58%           
=======================================
  Files         139      139           
  Lines       17631    17631           
=======================================
  Hits        10153    10153           
  Misses       7478     7478           
Impacted Files Coverage Δ
src/libsync/vfs/cfapi/cfapiwrapper.cpp 72.95% <0.00%> (-0.23%) ⬇️
src/libsync/owncloudpropagator.h 68.65% <0.00%> (+0.74%) ⬆️

@mgallien mgallien force-pushed the bugfix/fix-full-text-search-items branch from 74fbfd8 to 04783b5 Compare January 6, 2023 16:35
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
@claucambra claucambra force-pushed the bugfix/fix-full-text-search-items branch from 04783b5 to 4812989 Compare January 6, 2023 17:49
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-5279-481298997c276f858871c499bb5eed085474e7bf-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarcloud
Copy link

sonarcloud bot commented Jan 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

55.6% 55.6% Coverage
0.0% 0.0% Duplication

@claucambra claucambra merged commit 382b322 into master Jan 6, 2023
@claucambra claucambra deleted the bugfix/fix-full-text-search-items branch January 6, 2023 19:09
@mgallien mgallien added this to the 3.7.0 milestone Jan 30, 2023
@arnowelzel
Copy link

Sorry - but the fix does not work with Nextcloud Client 3.7.4.

The format of the URL is wrong. What ever is called by the client, it will end up in a URL like this: https://server.example/apps/files/?dir=/&fileid=362

However, this won't work: the directory is not / but a subfolder like /program2022/finished/text12.docx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Fulltext search results are not clicable
5 participants