Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: commenting a file in the activity tab throws an error #42260

Closed
4 of 8 tasks
maximelehericy opened this issue Dec 14, 2023 · 4 comments
Closed
4 of 8 tasks

[Bug]: commenting a file in the activity tab throws an error #42260

maximelehericy opened this issue Dec 14, 2023 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug feature: comments feature: files

Comments

@maximelehericy
Copy link

maximelehericy commented Dec 14, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

First case:
I create a new file, paste some content including an image, rename rename the file. I open the activity tab, write stg and mention @smb. When pressing enter, loading icon shows, and the error below is thrown (see below the error msg from the console)

image

On page refresh, the comment appears as many times as I've try to send it.

Second case:
I create a new file, I don't rename it, and go directly to activity tab, write stg and mention @smb. When pressing enter, loading icon shows, and the same error is thrown. The console error message (see below) is different from the first case.

On page refresh, the comment does not appear.

Steps to reproduce

Expected behavior

Comment should be posted withut error.

Installation method

None

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

Error msg from console - case 1

Object { stack: "r@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3204511\nr@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3209682\nw@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3193474\n", message: "Request failed with status code 500", name: "AxiosError", code: "ERR_BAD_RESPONSE", config: {…}, request: XMLHttpRequest, response: {…} }
sentry.js:2:63997
    Nt NextJS
    onNewComment CommentMixin.js:116

Error msgs from console - case 2

XHRPOST
https://cloud.nextcloud.com/remote.php/dav/comments/files/8133962
[HTTP/2 500  15417ms]

Object { stack: "r@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3204511\nr@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3209682\nw@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3193474\nEventHandlerNonNull*6005/A</<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3193643\n6005/A<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3192526\np@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3196854\nrequest@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3200530\n51120/</t/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3200998\n36524/a/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:3213161\nc@https://cloud.nextcloud.com/dist/7255-7255.js?v=ee3155ac7765bb364ab8:2:2492\nonNewComment@https://cloud.nextcloud.com/dist/7255-7255.js?v=ee3155ac7765bb364ab8:2:1433\nonSubmit@https://cloud.nextcloud.com/dist/7255-7255.js?v=ee3155ac7765bb364ab8:2:5242\nTn@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1869943\nn@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1862384\nTn@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1869943\n20144/e.prototype.$emit@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1891084\nonEnter@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:2459073\n98212/O/<.on.keydown<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:2460235\nTn@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1869943\nn@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1862463\n20144/ii/i._wrapper@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1902742\nr@https://cloud.nextcloud.com/apps/sentry/js/sentry.js?v=30874e5d-1764:2:87291\nEventListener.handleEvent*Me/</<@https://cloud.nextcloud.com/apps/sentry/js/sentry.js?v=30874e5d-1764:2:97126\nNt/</</<@https://cloud.nextcloud.com/apps/sentry/js/sentry.js?v=30874e5d-1764:2:64642\nii@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1902768\nBt@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1862671\nsi@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1903149\n_@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1912004\nh@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1911313\n20144/Ji@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1915303\n20144/e.prototype._update@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1891236\na@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1922781\n20144/e.prototype.get@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1873533\ne@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1873446\n20144/sr.prototype.$mount/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1922805\n20144/sr.prototype.$mount@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1923023\ninit@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1878312\n20144/h/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1910908\nh@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1911184\n20144/w/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1914031\nw@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1914215\n20144/w/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1913740\nw@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1914215\n20144/w/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1913740\nw@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1914215\n20144/w/<@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1913740\nw@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1914215\n20144/Ji@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1915351\n20144/e.prototype._update@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1891219\na@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1922781\n20144/e.prototype.get@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1873533\n20144/e.prototype.run@https://cloud.nextcloud.com/dist/core-common.js?v=30874e5d-1764:2:1874266\n", message: "Request failed with status code 500", name: "AxiosError", code: "ERR_BAD_RESPONSE", config: {…}, request: XMLHttpRequest, response: {…} }
sentry.js:2:63997
@maximelehericy maximelehericy added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback labels Dec 14, 2023
@joshtrichards
Copy link
Member

Based both provided console logs, there should be associated server side stack traces. You have those by chance?

@MrRinkana
Copy link

MrRinkana commented Feb 23, 2024

I cannot reproduce this on 28.0.2.

Is it important what is written? As in bug only occurs with "@ smb" for example? I tested with user on my instance but it saves. Otherwise I followed the steps as described.

Behind the message it says the file is 0 B (mine doesn't), maybe related to that?

EDIT (to not spam notifications):
For clarification: I can reproduce the below mentioned issue nextcloud/activity#1772, but I don't get an error like in this issue, nor can I trigger it by following the steps described here.

@joshtrichards
Copy link
Member

Possibly related (at least to the second situation): nextcloud/activity#1772

@edward-ly
Copy link
Contributor

I cannot reproduce this issue either, even on 28.0.0.

@maximelehericy If you have any more info you are able to share, you can reopen this issue, but for now, I am closing this.

@edward-ly edward-ly closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug feature: comments feature: files
Projects
Status: ☑️ Done
Development

No branches or pull requests

10 participants