Tagging files does not always work on cloud.nextcloud.com, current version as of 21.08.2018
Expected behaviour:
Tags show including the input field to add more tags
Actual behaviour:
Nothing happens upon click, not even any JS error in the dev console.
This only happen sometimes, sometimes it works.
How to reproduce it:
Reload the browser page with Nextcloud file explorer in a folder that contains multiple files.
Open document details of one file, click on "Tags": the tag input box appears.
Now open the document details of another file (without reloading the browser!), click on "Tags": the tag input box does not appear.
GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/7801 (Nextcloud Talk APP NOT Working), https://github.com/nextcloud/server/issues/5391 (2fa TOTP stopped working on Nextcloud 12), https://github.com/nextcloud/server/issues/8310 (Disable web app by own cloud interface (NO NEXTCLOUD THEME)), https://github.com/nextcloud/server/issues/8348 (Server error response (nextcloud.com down)), and https://github.com/nextcloud/server/issues/8767 (After the update the nextcloud server is not longer working).
@mathiasconradt I sadly can't reproduce, but will retry. Could you open the web developer console (Ctrl + F12) in your browser and then reload the page. If it doesn't work it maybe show something in the "Console" tab. That would be useful.
@juliushaertl @skjnldsv @blizzz for the JS part of tags
@MorrisJobke Enabled dev console, even "disable cache" is activated. Still able to reproduce the error. I can show it to you via NC Talk Screenshare if you or others want, just ping me.
Tested with FF and Chrome latest versions, on Ubuntu/Gnome.
@mathiasconradt cannot reproduce it either. What does the POST request to https://cloud.nextcloud.com/remote.php/dav/systemtags/ result in?
There is no POST request in the devl tools, only a PROPFIND
The response of the first PROPFIND returns proper values:
PROPFIND https://cloud.nextcloud.com/remote.php/dav/systemtags/
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"><d:response><d:href>/remote.php/dav/systemtags/</d:href><d:propstat><d:prop><oc:id/><oc:display-name/><oc:user-visible/><oc:user-assignable/><oc:can-assign/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/6</d:href><d:propstat><d:prop><oc:id>6</oc:id><oc:display-name>Invoice</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/9</d:href><d:propstat><d:prop><oc:id>9</oc:id><oc:display-name>Marketing</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/7</d:href><d:propstat><d:prop><oc:id>7</oc:id><oc:display-name>RESTRICTED</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/8</d:href><d:propstat><d:prop><oc:id>8</oc:id><oc:display-name>fujitsu</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/3</d:href><d:propstat><d:prop><oc:id>3</oc:id><oc:display-name>pi</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/5</d:href><d:propstat><d:prop><oc:id>5</oc:id><oc:display-name>review</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/1</d:href><d:propstat><d:prop><oc:id>1</oc:id><oc:display-name>snap</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/10</d:href><d:propstat><d:prop><oc:id>10</oc:id><oc:display-name>test</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/11</d:href><d:propstat><d:prop><oc:id>11</oc:id><oc:display-name>test2</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/2</d:href><d:propstat><d:prop><oc:id>2</oc:id><oc:display-name>ubuntu core</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/systemtags/4</d:href><d:propstat><d:prop><oc:id>4</oc:id><oc:display-name>work in progress</oc:display-name><oc:user-visible>true</oc:user-visible><oc:user-assignable>true</oc:user-assignable><oc:can-assign>true</oc:can-assign></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>
PROPFINDs on the documents itself:
PROPFIND https://cloud.nextcloud.com/remote.php/dav/systemtags-relations/files/755194
Reponse:
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"><d:response><d:href>/remote.php/dav/systemtags-relations/files/755194/</d:href><d:propstat><d:prop><oc:id/><oc:display-name/><oc:user-visible/><oc:user-assignable/><oc:can-assign/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>
I get the 404 in both cases: where the tag on a document works and where it doesn't.
A POST should be fired when a tag was set, that's what happening for me.
Do you own that file or is it a shared one?
I'm not setting a tag (yet), I just click on "tag" word in order to open the tag input field. And that already does not always work, even before I submit any tag.
I can do a screenshare to show you.
OK, tried it again, clicking on Tags to get into the text input works for the first file (more precise: for the first file of which I open the sidebar) after a page load, but not any other, and also not when returning to the first file. Seems the click action is assigned once, but not any further.
It's a backbone view and it seems that the click-event-binding get's lost.
Reload the browser page with Nextcloud file explorer in a folder that contains multiple files.
Open document details of one file, click on "Tags": the tag input box appears.
Now open the document details of another file (without reloading the browser!), click on "Tags": the tag input box does not appear.
@mathiasconradt Is it this behavior: https://cloud.morrisjobke.de/s/B5CJKcNHbWKAyQa ?
@MorrisJobke nope, the tag list does not even open for him on the second file
fix in #10782
Hi, any updates on solution to this problem?
I just installed NC14, few times, cause I could not understand what is happening, but it does not work.
Tag "link/button" works only once on page reload, after being used on one file, it does not open until page reload.
@SNAKE83 #10782 is not merged yet, thus there isn't any backport to 14. → 14.0.2 is the next candidate.
@SNAKE83 #10782 is not merged yet, thus there isn't any backport to 14. → 14.0.2 is the next candidate.
:+1: Thank You, so there is hope :)
Fix was reverted as it broke the sharing entries -> reopen
I can confirm the problem still exists in 14.0.2
Confirming this still existing in 14.0.3
We encounter the same problem, appearing on two different NC instances (both NC 14.0.3, one updated since NC 12.x, the other started with NC 14), we tested with
Any idea how to fix it?
Only way is to get back to older version?
Bug present on 14.0.3 production too.
How could it be released with a bug of something that was working earlier?
This is a very weird policy, makes You think what else is not working as supposed to be, maybe security?
How could it be released with a bug of something that was working earlier?
@SNAKE83 Evolve code without have any bug is a difficult art. (especially with framework/library, engines and hardware who evolve too)
Most likely fixed by #12577. The backport will come to 14.0.5.
Working in 15.0.0
Please Re-Open for 18.0.4 (just updated from 18.0.3).
In 18.0.3 it happened "sometimes" but often could be solved by refresh, sometimes by re-login.
But now I'm not able to Tag new files anymore.
Thank you for soon solutions in advance - yours, Peter alias TueTchen, Germany
This is one and a half-year old. Please open a new issue with full details.
Most helpful comment
Most likely fixed by #12577. The backport will come to 14.0.5.