nextcloud / viewer

🖼 Simple file viewer with slideshow for media
GNU Affero General Public License v3.0
91 stars 51 forks source link

Nextcloud:29.0.0 Unable to edit photos; redirected back to the file list #2323

Open RyoKub opened 2 months ago

RyoKub commented 2 months ago

Description

When accessing the Photos app at http://[nextcloud]/apps/photos/ and clicking on the viewer to view images, the interface allows for normal interaction. However, attempting to edit an image by clicking the pencil icon results in being redirected back to the file list screen instead of opening the editing interface.

Error Message

Console in Browser : [Deprecation] Listener added for a 'DOMNodeInserted' mutation event. This event type is deprecated, and will be removed from this browser very soon. Usage of this event listener will cause performance issues today, and represents a large risk of future site breakage. Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information.

This issue occurs consistently across different browsers including Edge and Chrome on Windows, and Safari on iPad.

Steps to Reproduce

  1. Open the Nextcloud Photos app at http://[nextcloud]/apps/photos/.
  2. Click on any photo to view it.
  3. Attempt to edit the photo by clicking the pencil icon.
  4. Observe that instead of transitioning to the edit mode, the interface redirects back to the file list.

Expected behavior

The expected behavior is to transition to the photo editing interface as was the case in previous version 28.0.3.

Actual behavior

Clicking the edit icon redirects back to the photo file list, and a deprecation warning is logged in the console.

Environment

Additional context

This issue prevents any editing functionality within the Photos app, which was functional in the previous version 28.0.3. The same behavior is observed across multiple platforms and browsers indicating a possible issue with the app's handling of deprecated browser features.

image

dennisheitmann commented 1 month ago

Same here. Nextcloud 29.0.0.19 with photos 2.5.0. Tested with Chrome and Firefox on Linux.

After not editing was not working, also display of photos does not work anymore until reload of page:

image

ralfi commented 1 month ago

confirm, memories works

aurelienpierre commented 1 month ago

Same issue here.

bobobo-git commented 1 month ago

confirm it. also look at https://help.nextcloud.com/t/editing-in-images-doesnt-work/189508

😀

bobobo-git commented 1 month ago

the errormessage from above is also applied in NC 27.5.1 but there the fotoapp reacts correct

bobobo-git commented 1 month ago

i took the viewer app from a nextcloud 27 , edited the info.xml in the appinfo-folder (max-version="29") and and overwrote the existing viewer app

and then (after an updatemessage) it worked ok.

so it seam to be the viewer app (it isn't loaded in webpack when using the nc 29 version)

maybe it is time to contact the author of the viewer app author mail="skjnldsv@protonmail.com" John Molakvoæ from the info.xml

the content of folder js in the app looks strange no js files but mjs files ...

bobobo-git commented 1 month ago

i replaced all in js folder with the content of the js folder from the nc27 version

after an update message everything runs ok in nc 29 BUT the editor for text / md wont work anymore.

in a fresh installation nc 29.0.1 , all apps deactivated, a click on a jpg shows it but will not load the editor if clicked on the pencil.

bobobo-git commented 1 month ago

the image editor (*) fails to load in nc 29.

implementatin of filerobot image editor https://scaleflex.github.io/filerobot-image-editor/

read here https://nextcloud.com/blog/how-we-got-to-the-new-nextcloud-photos/

joshtrichards commented 1 month ago

Reproduced. Editing is provided by Viewer not the Photos app. Transferred to that repo.