Skip to content

[Bug]: PROPFIND on dav returns null instead of 404 #32514

Closed
nextcloud/text
#2608

Description

@tobiasKaminsky

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

With NC23 this works:

  • create a file
  • do a propfind with comments-unread
  • see 207 multi-part response with oc:comments-unread/ in 404 status part

Now with master it is in 200 status part:
oc:comments-unread</oc:comments-unread>

As Android expects this to be an integer, it is translated to null, which fails.

Steps to reproduce

  • create a file
  • do a propfind with comments-unread

Expected behavior

Same as in NC23: oc:comments-unread/ in 404 status part.

Installation method

Manual installation

Operating system

No response

PHP engine version

No response

Web server

No response

Database engine version

No response

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

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

/

Nextcloud Signing status

/

Nextcloud Logs

/

Additional info

No response

Activity

  1. added
    0. Needs triage
    on May 20, 2022
  2. changed the title [-][Bug]: PROPFIND on dav returns null nistead of 404[/-] [+][Bug]: PROPFIND on dav returns null instead of 404[/+] on May 20, 2022
  3. PVince81 commented on May 20, 2022

    @PVince81
    Member

    without looking at the code, one change I'm aware of is that we touched a lot of code to make it ready for PHP 8.1
    so perhaps there might have been some added type safety somewhere that coerced the type in some way ? @come-nc

    we also touched a bit of DAV for metadata @CarlSchwan

  4. tobiasKaminsky commented on Jun 14, 2022

    @tobiasKaminsky
    MemberAuthor

    This also happens for rich-workspaces:
    In NC22 it was expected to have this behavior:
    // richWorkspace
    // == "": no info set -> show button
    // == null: disabled on server side -> hide button
    // != "": info set -> hide button

    Now on master/NC24 it seems that null is returned until user really creates a file / types something.
    @CarlSchwan maybe?

  5. added
    1. to develop
    and removed
    0. Needs triage
    on Jun 20, 2022
  6. PVince81 commented on Jun 20, 2022

    @PVince81
    Member

    @CarlSchwan please have a look

  7. CarlSchwan commented on Jun 21, 2022

    @CarlSchwan
    Member

    we forgot to backport #32548 😢

  8. tobiasKaminsky commented on Jun 21, 2022

    @tobiasKaminsky
    MemberAuthor

    $32548 does not fix this.
    I tested it with latest master and it still returns null, instead of "".

  9. CarlSchwan commented on Jun 21, 2022

    @CarlSchwan
    Member

    This is a regression from nextcloud/text@3e40b7b @max-nextcloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

1. to developbugregression

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions