Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

OC9 + search_lucene (broken link 404) #118

Open
blackhold opened this issue Mar 21, 2016 · 5 comments
Open

OC9 + search_lucene (broken link 404) #118

blackhold opened this issue Mar 21, 2016 · 5 comments

Comments

@blackhold
Copy link

As told in OC forum https://forum.owncloud.org/viewtopic.php?f=38&t=34471

Please help us by providing the following info. Before posting please also check the pinned "Known issues" thread.

Steps to reproduce

  1. Do a search on search box (for example example.odt)
  2. Click on a file
  3. The link is: https://cloud.capa8.net/files/index.php ... xample.odt
  4. The link should be: https://cloud.capa8.net/index.php/apps/ ... xample.odt

Expected behaviour
The link should be: https://cloud.capa8.net/index.php/apps/ ... xample.odt

Actual behaviour
The link is: https://cloud.capa8.net/files/index.php ... xample.odt

Server configuration
Operating system: GNU/Linux Debian 8.3
Web server: Apache2
Database: MySQL
PHP version: 5.6.17+dfsg-0+deb8u1
ownCloud version (see ownCloud admin page): ownCloud 9.0.0 (stable)
Updated from an older ownCloud or fresh install: fresh install
ownCloud log (data/owncloud.log): No log generated in this file on doing the action

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
Proxyfied https connection. Tested also directly and the behavior is the same. Tested in http and the behavior is the same.
I also do an other installation to an other server, also enabling search_lucene and the behavior is the same.

I'm trying to fix using rewrite rule, but need some help to do it.

Thanks you much!

@blackhold
Copy link
Author

Trying to fix it myself I found that appears 2 searches, one of the lucene and the other of owncloud, now no one of both are working. I have disabled app search_lucene on other owncloud I've installed and the behaviour is the same :(

/var/www/owncloud/apps/search_lucene/search/luceneresult.php
IS:
$this->link = \OCP\Util::linkTo(
'files',
'index.php',
array('dir' => dirname($this->path), 'scrollto' => $this->name)
);

SHOULD BE:
$this->link = \OCP\Util::linkTo(
'index.php',
'apps',
'files',
array('dir' => $info['dirname'], 'scrollto' => $info['basename'])
);

/var/www/owncloud/lib/private/search/result/file.php
The same.

When I do this modification, the link of searches appears like:
https://cloud.capa8.net/index.php/apps

Wich is the problem? how make it work?!

Thanks you much!

@blackhold
Copy link
Author

Hi, some clue?

Thanks!

@ianvanwijk
Copy link

Maybe a fix for your problem. It worked for me ;)
owncloud/core@3c06b08

@blackhold
Copy link
Author

yeaww!!! it worked! :D

thanks you much! :) 👍

@NacreData
Copy link

NacreData commented Apr 17, 2016

Thanks for the link @ianvanwijk; I have updated this in my pull request which addresses this issue as a secondary one to the primary goal of allowing searches across shared files - see branch https://github.com/NacreData/search_lucene/tree/shared-files and pull request #120

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

No branches or pull requests

3 participants