Repository navigation
Description
Steps to reproduce
- Open the WebGUI and navigate to a folder containing enough photos to require scrolling
- Scroll down a ways and click on a photo to view the full-screen preview
- Close the photo preview
Expected behaviour
The page should just return to the file list at the same position it was when you clicked the photo, and should still have the photo thumbnails loaded so it responds quickly.
Actual behaviour
The entire folder list reloads, scrolled back to the beginning of the list. This requires not only scrolling back to where you were, but reloading all of the photo thumbnails as you go.
Server configuration
Operating system: FreeNAS (custom BSD jail, not the default plugin)
Web server: nginx
Database: MySQL
PHP version: 5.6.19
ownCloud version: (see ownCloud admin page) 9.1.0 stable
Updated from an older ownCloud or fresh install: upgrade
Where did you install ownCloud from: https://download.owncloud.org/community/owncloud-9.1.0.tar.bz2
Signing status: No errors have been found
List of activated apps:
Enabled:
- activity: 2.3.2
- comments: 0.3.0
- dav: 0.2.5
- federatedfilesharing: 0.3.0
- federation: 0.1.0
- files: 1.5.1
- files_external: 0.6.0
- files_pdfviewer: 0.8.1
- files_sharing: 0.10.0
- files_texteditor: 2.1
- files_trashbin: 0.9.0
- files_versions: 1.3.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 15.0.0
- notifications: 0.3.0
- provisioning_api: 0.5.0
- systemtags: 0.3.0
- templateeditor: 0.1
- updatenotification: 0.2.1
Disabled: - encryption
- external
- files_antivirus
- files_mv
- user_external
- user_ldap
The content of config/config.php:
{
"system": {
"enable_previews": true,
"preview_libreoffice_path": "/usr/local/bin/libreoffice",
"memcache.local": "\OC\Memcache\APCu",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "/var/run/redis/redis.sock",
"port": 0,
"timeout": 0
},
"instanceid": "ocrnlx64nnw4",
"passwordsalt": "_REMOVED SENSITIVE VALUE",
"secret": "_REMOVED SENSITIVE VALUE",
"trusted_domains": [
"_localip",
"_public DNS hostname"
],
"datadirectory": "/mnt/owncloud",
"overwrite.cli.url": "http://_localip",
"dbtype": "mysql",
"version": "9.1.0.15",
"dbname": "owncloud",
"dbhost": "localhost:/var/run/mysql/mysql.sock",
"dbtableprefix": "oc",
"dbuser": "_REMOVED SENSITIVE VALUE",
"dbpassword": "_REMOVED SENSITIVE VALUE",
"logtimezone": "UTC",
"installed": true,
"maintenance": false,
"loglevel": 0,
"htaccess.RewriteBase": "/"
}
}
Are you using external storage, if yes which one: Yes, local
Are you using encryption: No
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Chrome/Firefox
Operating system: Windows 10 x64
Logs
N/A
Activity
PVince81 commentedon Jan 27, 2017
Photo preview is from the gallery app. Need to investigate.
michaelstingl commentedon Feb 27, 2017
@UnitedMarsupials reported this for
files_videoplayertoo:I'm adding this here because it looks like a issue with the foundation for the preview apps. @UnitedMarsupials please provide information about your setup.
UnitedMarsupials-zz commentedon Feb 27, 2017
I'd be happy to answer any follow-up questions, but I think, I already provided all the relevant details... No?
michaelstingl commentedon Feb 27, 2017
@UnitedMarsupials This is the information that is normally needed to investigate server issues:
https://raw.githubusercontent.com/owncloud/core/master/.github/issue_template.md
UnitedMarsupials-zz commentedon Feb 27, 2017
But this is not a "server" issue -- this is, obviously, something about the JavaScript-code and/or the CSS.
ownCloud version:
9.1.4 stable
Updated from an older ownCloud or fresh install:
Updated from 9.1.2 (I think)
Where did you install ownCloud from:
FreeBSD port
Signing status (ownCloud 9.0 and above):
All clear.
qwertymodo commentedon Feb 27, 2017
Yeah, I get that you guys always want relevant config to reproduce properly, but this isn't a bug so much as normal functional behavior that should be reconsidered and reworked. It's been this way for awhile, completely independent of server configuration or client browser.
PVince81 commentedon Feb 27, 2017
@noveens would you be able to debug this ? Even if you can't fix it, at least find some clues what the JS code is doing / where the reloading is happening.
noveens commentedon Feb 27, 2017
@PVince81 ,
Sure would love to.
noveens commentedon Feb 27, 2017
PR Here:
owncloud/gallery#716
@PVince81
UnitedMarsupials-zz commentedon Feb 27, 2017
I applied the diff by hand-editing the
js/slideshowcontrols.jsand the list of files is no longer reset after viewing an image.Unfortunately, it is still reset after watching a video.
noveens commentedon Feb 27, 2017
My bad, didn't see about the video part.
Will update the PR soon.
UnitedMarsupials-zz commentedon Feb 27, 2017
What about other file-types -- such as PDFs? Is each one handled separately?..
noveens commentedon Feb 27, 2017
yes, this was a bug in the gallery app, so I suppose we shoud open a ticket at the respective apps and not core.
michaelstingl commentedon Feb 27, 2017
Sorry, I was wrong with my guess. Here you can find the individual repositories:
Each has own issues to report and fix bugs.
PVince81 commentedon Feb 28, 2017
Please wait before fixing the other ones, we first need to agree on the gallery fix. It's not as easy because of the URL / history.
Let's finish the gallery fix first and when it's merged use it as an example for the other apps too.
PVince81 commentedon Feb 28, 2017
I think we should fix #15520 instead, it will prevent reloading the file list when the URL is changed by the browser back button but the path argument did not change.
noveens commentedon Feb 28, 2017
@PVince81 ,
Will fixing #15520 solve this, since here we are simply calling window.history.back( ) which IMO depends on the browser and will force a refresh?
noveens commentedon Feb 28, 2017
Everyone, please have a look and add your opinions:
owncloud/gallery#716 (comment)
PVince81 commentedon Mar 1, 2017
Yes it will.
window.history.back()doesn't always force a page refresh. The history API allows for changing the URL through Javascript and catching events (onpopstate) when the URL changes. The bug from #15520 is that even though we catch the event, we still refresh the file list (not the whole page) because we didn't check whether the file list path changed or not.noveens commentedon Mar 1, 2017
@PVince81 ,
My bad, I didn't know that window.history.back() didn't force a refresh.
I'll fix the bugs.
PVince81 commentedon Mar 2, 2017
#27282 should fix this
lock commentedon Jul 31, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.