Skip to content

Closing photo preview reloads file list #26318

Closed

Description

@qwertymodo

Steps to reproduce

  1. Open the WebGUI and navigate to a folder containing enough photos to require scrolling
  2. Scroll down a ways and click on a photo to view the full-screen preview
  3. 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

  1. PVince81 commented on Jan 27, 2017

    @PVince81
    Contributor

    Photo preview is from the gallery app. Need to investigate.

  2. added this to the backlog milestone on Jan 27, 2017
  3. michaelstingl commented on Feb 27, 2017

    @michaelstingl

    @UnitedMarsupials reported this for files_videoplayer too:

    Steps to reproduce

    1. Open an oC folder with lots of media files.
    2. Scroll down to the bottom half of the list.
    3. Click on a video-file to view it.
    4. 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.

  4. UnitedMarsupials-zz commented on Feb 27, 2017

    @UnitedMarsupials-zz

    @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?

  5. michaelstingl commented on Feb 27, 2017

    @michaelstingl

    @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):**
    
  6. UnitedMarsupials-zz commented on Feb 27, 2017

    @UnitedMarsupials-zz

    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.

  7. qwertymodo commented on Feb 27, 2017

    @qwertymodo
    Author

    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.

  8. PVince81 commented on Feb 27, 2017

    @PVince81
    Contributor

    @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.

  9. noveens commented on Feb 27, 2017

    @noveens
    Contributor

    @PVince81 ,
    Sure would love to.

  10. noveens commented on Feb 27, 2017

    @noveens
    Contributor
  11. UnitedMarsupials-zz commented on Feb 27, 2017

    @UnitedMarsupials-zz

    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.

  12. noveens commented on Feb 27, 2017

    @noveens
    Contributor

    My bad, didn't see about the video part.
    Will update the PR soon.

  13. UnitedMarsupials-zz commented on Feb 27, 2017

    @UnitedMarsupials-zz

    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?..

  14. noveens commented on Feb 27, 2017

    @noveens
    Contributor

    yes, this was a bug in the gallery app, so I suppose we shoud open a ticket at the respective apps and not core.

  15. PVince81 commented on Feb 28, 2017

    @PVince81
    Contributor

    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.

  16. PVince81 commented on Feb 28, 2017

    @PVince81
    Contributor

    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.

  17. noveens commented on Feb 28, 2017

    @noveens
    Contributor

    @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?

  18. noveens commented on Feb 28, 2017

    @noveens
    Contributor

    Everyone, please have a look and add your opinions:
    owncloud/gallery#716 (comment)

  19. PVince81 commented on Mar 1, 2017

    @PVince81
    Contributor

    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 #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.

  20. noveens commented on Mar 1, 2017

    @noveens
    Contributor

    @PVince81 ,
    My bad, I didn't know that window.history.back() didn't force a refresh.
    I'll fix the bugs.

  21. PVince81 commented on Mar 2, 2017

    @PVince81
    Contributor

    #27282 should fix this

  22. lock commented on Jul 31, 2019

    @lock

    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.

  23. locked as resolved and limited conversation to collaborators on Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions