[owncloud-devel] External search for oc

Vincent Petry pvince81 at owncloud.com
Thu Jun 30 08:16:39 GMT 2016


In 9.1 there will be a new URL format for the web UI to point to a
file/folder by file id: "http://host/owncloud/f/$fileid".
See https://github.com/owncloud/core/pull/24434#issue-152956911

When opening such links, the web UI will redirect to the correct folder
depending on which user opened it.
For files it only scrolls to the file, there is no mechanism to
automatically open a file with a viewer.

In previous versions of ownCloud there is no such mechanism.

Hope this helps.



On 29.06.2016 22:44, Christian Ludwig wrote:
> Hi,
> In our application we use Solr search that is feed with oc data adding access rights so that only files will be found that the user has access to. The search is completely external and we deeplink into ownCloud.
> Now I am looking for a solution to generate the deeplinks to shared files where the path can be different to the one in file_cache.path. In the search results I have the fileid and path (more data can be stored in Solr if necessary). So is there a way to use ownCloud functions to get the individual path to files?
> Problems while using the search could be:
> * user might not be logged in jet to oc
> * the user is connected by our oc backend_users and backend_groups app. So it could be that the user might get results for files where no oc_mounts.mount_points exist.
> Thanks for any ideas.
> One additional thing:
> Is it possible to open the gallery view by deep linking using hashtags?
> Oc generates links like these (https://my.cloud/apps/files/?dir=Datan#Datan/image.png) but they do not open the gallery nor do they highlight the file.
> Greets
> Christian
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20160630/3b674850/attachment.sig>

More information about the Devel mailing list