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

Files property comments-count gets autoincremented even after deleting the file or the user. #27455

Closed
SergioBertolinSG opened this issue Mar 22, 2017 · 4 comments
Labels

Comments

@SergioBertolinSG
Copy link
Contributor

SergioBertolinSG commented Mar 22, 2017

Steps to reproduce:

    Given user "user0" exists
    And As an "user0"
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
    And user "user0" comments with content "My first comment" on file "/myFileToComment.txt"
    And user "user0" should have the following comments on file "/myFileToComment.txt"
            | user0 | My first comment |
    When as "user0" gets properties of folder "/myFileToComment.txt" with
          | {http://owncloud.org/ns}comments-href |
          | {http://owncloud.org/ns}comments-count |
          | {http://owncloud.org/ns}comments-unread |
    Then the single response should contain a property "{http://owncloud.org/ns}comments-count" with value "1"

Expected behaviour:

That property should have the number of comments.

Actual behaviour

That property gets incremented and never decremented. Removing the user doesn't make the number be reduced.

Server configuration

Operating system:
Ubuntu 16.04

Web server:
Apache

Database:
MySQL

PHP version:
7.0

ownCloud version: (see ownCloud admin page)
Current master
{"installed":"true","maintenance":"false","needsDbUpgrade":"false","version":"10.0.0.3","versionstring":"10.0.0 alpha","edition":"Community","productname":"ownCloud"}

Updated from an older ownCloud or fresh install:
Fresh

The content of config/config.php:


Are you using external storage, if yes which one: local/smb/sftp/...
No

Are you using encryption:
No

Logs



Client configuration

guzzle client.

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

@paurakhsharma
Copy link
Member

PR #31592 verifies this issue doesn't exist anymore so closing the issue

@lock
Copy link

lock bot commented Jul 30, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants