viewer icon indicating copy to clipboard operation
viewer copied to clipboard

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

Open RyoKub opened this issue 1 year ago • 9 comments

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

  • Nextcloud version: 29.0.0
  • Photos app version: 2.5.0
  • Operating system: Windows and iOS
  • Browser: Edge, Chrome, Safari

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

RyoKub avatar Apr 30 '24 08:04 RyoKub

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

dennisheitmann avatar May 06 '24 14:05 dennisheitmann

confirm, memories works

ralfi avatar May 13 '24 09:05 ralfi

Same issue here.

aurelienpierre avatar May 13 '24 22:05 aurelienpierre

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

😀

bobobo-git avatar May 26 '24 10:05 bobobo-git

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

bobobo-git avatar May 29 '24 12:05 bobobo-git

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="[email protected]" John Molakvoæ from the info.xml

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

bobobo-git avatar May 29 '24 13:05 bobobo-git

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 avatar May 29 '24 13:05 bobobo-git

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/

bobobo-git avatar May 30 '24 16:05 bobobo-git

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

joshtrichards avatar May 31 '24 15:05 joshtrichards

Still broken in NC 30.0.0 beta 5 (tested on c.nc.com)

Weird also: after unsuccessfully trying to edit and getting thrown back to files list, and clicking an image again, you see the error "no plugin avialable to view this file type" (German "Es ist kein Plugin zum Anzeigen dieses Dateityps verfügbar")

alexanderdd avatar Aug 13 '24 08:08 alexanderdd

Without more in-depth investigation: the problem seems to be related to the bundling/module-loading.

The error is not reproducible in a dev environment with debug => true. The difference here is the script loading does not add a cache-buster to the URL in dev mode, while in production mode, it's added.

In production one can observe that viewer-main.mjs is loaded a second time without a cache buster when clicking the pencil icon.

I assume that the viewer code loads and executes a second time, this time with no handlers being registered through registerHandler() (because this already happend). When stepping through the code one can see that openFileInfo() upon pencil icon click failed due to registeredHandlers being empty. Yet, when breaking in registerHandler() on page load we observe handlers being registered.

Vite does not seem to be aware of the added cachebuster when lazy-importingfilerobot-image-editor in ImageEditort.vue's mounted()

(Edits: clarifications, formatting)

thlehmann-ionos avatar Sep 10 '24 15:09 thlehmann-ionos

I'm not familiar enough with the setup and Vite's bundling internals, and I am happy to attempt fixing it if someone could give me some hints here.

thlehmann-ionos avatar Sep 10 '24 15:09 thlehmann-ionos

Hi, I have the same problem. I would be happy to get a solution soon.

Gortosch avatar Sep 14 '24 10:09 Gortosch

At the moment it does not look like this error will be fixed. I therefore suggest removing the pencil icon (edit).

dolorosus avatar Sep 29 '24 09:09 dolorosus

This is resolved for me on Nextcloud 30.0.1 RC1.

Infamousbugg avatar Oct 08 '24 01:10 Infamousbugg

Still reproducible with Nextcloud tag v30.0.0 and Viewer tag v30.0.0,'debug' => false (so that a cache-buster parameter is appended to resources) Image

thlehmann-ionos avatar Oct 10 '24 17:10 thlehmann-ionos

This is resolved for me on Nextcloud 3.0.1 RC1.

I can confirm the issue seems to be solved with 3.0.1 RC1

ivnmad avatar Oct 10 '24 20:10 ivnmad

This is resolved for me on Nextcloud 3.0.1 RC1.

I can confirm the issue seems to be solved with 3.0.1 RC1

Hi! How to get 3.0.1 RC1 version and backport to 29.0.x? Are any other alternatives?

oleua avatar Oct 13 '24 21:10 oleua

This is resolved for me on Nextcloud 3.0.1 RC1.

I can confirm the issue seems to be solved with 3.0.1 RC1

Hi! How to get 3.0.1 RC1 version and backport to 29.0.x? Are any other alternatives?

Hi, Nextcloud Hub 9 (30.0.1 RC2) has been released in the meantime. You can find it on the "beta" channel, but I would presume a version that includes the fix [30.0.2 or next] should make it to the "stable" channel soon.

In case you want to get it from the "beta" channel, you can select it from "Administration settings". After installing the update, you can then "revert" back to "stable" if you want the next update to come from that channel, or you can stay on the beta channel, if you like testing new versions:

Image

ivnmad avatar Oct 14 '24 07:10 ivnmad

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="[email protected]" John Molakvoæ from the info.xml

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

UPD: Yes. I have overwritten files from NC 28.0.11 and confirm, that it works, moreover the text docs are opening as well. Rollback to viewer v.2.3.0 can be feasible here as a temporary solution.

oleua avatar Oct 14 '24 08:10 oleua

This is resolved for me on Nextcloud 3.0.1 RC1.

I can confirm the issue seems to be solved with 3.0.1 RC1

Hi! How to get 3.0.1 RC1 version and backport to 29.0.x? Are any other alternatives?

Hi, Nextcloud Hub 9 (30.0.1 RC2) has been released in the meantime. You can find it on the "beta" channel, but I would presume a version that includes the fix [30.0.2 or next] should make it to the "stable" channel soon.

In case you want to get it from the "beta" channel, you can select it from "Administration settings". After installing the update, you can then "revert" back to "stable" if you want the next update to come from that channel, or you can stay on the beta channel, if you like testing new versions:

Can I extract viewer app from NC 30.0.2 and will it be working in NC 29.0.8?

oleua avatar Oct 14 '24 08:10 oleua

Still reproducible with Nextcloud tag v30.0.0 and Viewer tag v30.0.0,'debug' => false (so that a cache-buster parameter is appended to resources)

It's no longer reproducible on viewer tag v30.0.1rc2. 👍

thlehmann-ionos avatar Oct 14 '24 08:10 thlehmann-ionos

Still reproducible with Nextcloud tag v30.0.0 and Viewer tag v30.0.0,'debug' => false (so that a cache-buster parameter is appended to resources)

It's no longer reproducible on viewer tag v30.0.1rc2. 👍

What is the version of the viewer app? Is it 3.0.0 according to info.xml file?

oleua avatar Oct 14 '24 09:10 oleua

Still reproducible with Nextcloud tag v30.0.0 and Viewer tag v30.0.0,'debug' => false (so that a cache-buster parameter is appended to resources)

It's no longer reproducible on viewer tag v30.0.1rc2. 👍

What is the version of the viewer app? Is it 3.0.0 according to info.xml file?

The version from info.xml is 3.0.0.

Git revision: 6d3ae93f.

thlehmann-ionos avatar Oct 14 '24 09:10 thlehmann-ionos

Still reproducible with Nextcloud tag v30.0.0 and Viewer tag v30.0.0,'debug' => false (so that a cache-buster parameter is appended to resources)

It's no longer reproducible on viewer tag v30.0.1rc2. 👍

What is the version of the viewer app? Is it 3.0.0 according to info.xml file?

The version from info.xml is 3.0.0.

Git revision: 6d3ae93f.

I tried to use it with NC29.0.8, changed the info.xml file by setting version=2.3.0 and min-version=29 to skip the update prompt. That didn't work.

oleua avatar Oct 14 '24 09:10 oleua

same issue. installed new nextcloud using linuxserver.io v30 hub9 -- same issue exists on new install.

randall11GB avatar Oct 19 '24 06:10 randall11GB

same issue. installed new nextcloud using linuxserver.io v30 hub9 -- same issue exists on new install.

@randall11GB upgrade to 30.0.1 and the issue will be solved.

ivnmad avatar Oct 19 '24 07:10 ivnmad

Yes just upgraded. Resolved. Much appreciated.

Sent from Proton Mail Android

-------- Original Message -------- On 10/19/24 10:35 AM, Ivan V. wrote:

same issue. installed new nextcloud using linuxserver.io v30 hub9 -- same issue exists on new install.

@.***(https://github.com/randall11GB) upgrade to 30.0.1 and the issue will be solve.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

randall11GB avatar Oct 19 '24 08:10 randall11GB

same issue. installed new nextcloud using linuxserver.io v30 hub9 -- same issue exists on new install.

@randall11GB upgrade to 30.0.1 and the issue will be solve.

Is that possible to fix it somehow at 29.0.x?

oleua avatar Oct 19 '24 08:10 oleua

30.0.1 definitely resolved issue . From original 30.0.0 . But dont know about 29.x resolution. I am sure other friends here can help you. Best

randall11GB avatar Oct 19 '24 08:10 randall11GB