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.
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.
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:
The content of config/config.php:
{
"system": {
"enable_previews": true,
"preview_libreoffice_path": "/usr/local/bin/libreoffice",
"memcache.local": "\OCMemcache\APCu",
"memcache.locking": "\OCMemcache\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
Browser: Chrome/Firefox
Operating system: Windows 10 x64
N/A
Photo preview is from the gallery app. Need to investigate.
@UnitedMarsupials reported this for files_videoplayer too:
Steps to reproduce
- Open an oC folder with lots of media files.
- Scroll down to the bottom half of the list.
- Click on a video-file to view it.
- Close the video.
Expected behaviour
The list of files should remain just as it was before you clicked on the video.
Actual behaviour
The list of files jumps back all the way up to the beginning, making it difficult to resume one's work.
Server configuration
Client
I observed this with Firefox. Maybe, other browsers don't do that...
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 please provide information about your setup.
I'd be happy to answer any follow-up questions, but I think, I already provided all the relevant details... No?
@UnitedMarsupials This is the information that is normally needed to investigate server issues:
https://raw.githubusercontent.com/owncloud/core/master/.github/issue_template.md
### Server configuration
**Operating system**:
**Web server:**
**Database:**
**PHP version:**
**ownCloud version:** (see ownCloud admin page)
**Updated from an older ownCloud or fresh install:**
**Where did you install ownCloud from:**
**Signing status (ownCloud 9.0 and above):**
This is the information that is normally needed to investigate server issues
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.
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.
@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.
@PVince81 ,
Sure would love to.
PR Here:
https://github.com/owncloud/gallery/pull/716
@PVince81
PR Here: owncloud/gallery#716
I applied the diff by hand-editing the js/slideshowcontrols.js and the list of files is no longer reset after viewing an _image_.
Unfortunately, it is still reset after watching a _video_.
My bad, didn't see about the video part.
Will update the PR soon.
My bad, didn't see about the video part. Will update the PR soon.
What about other file-types -- such as PDFs? Is each one handled separately?..
yes, this was a bug in the gallery app, so I suppose we shoud open a ticket at the respective apps and not core.
Sorry, I was wrong with my guess. Here you can find the individual repositories:
Each has own issues to report and fix bugs.
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.
I think we should fix https://github.com/owncloud/core/issues/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.
@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?
Everyone, please have a look and add your opinions:
https://github.com/owncloud/gallery/pull/716#issuecomment-283147823
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?
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 https://github.com/owncloud/core/issues/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.
@PVince81 ,
My bad, I didn't know that window.history.back() didn't force a refresh.
I'll fix the bugs.
https://github.com/owncloud/core/pull/27282 should fix this
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.
Most helpful comment
@PVince81 ,
Sure would love to.