•  
      request #25321 WebDAV support broken at PROPFIND
    Infos
    #25321
    Guilhem Bonnefille (CS) (gbonnefille)
    2022-02-03 18:19
    2022-01-21 15:41
    26853
    Details
    WebDAV support broken at PROPFIND

    Some clients using the PROPFIND method in their WebDAV implementation are no more able to connect.

    Such clients are Windows native explorer or Enpass (https://enpass.io).

    This can be reproduced with a curl call and an empty PROPFIND payload.

    curl -v --http1.1 -X PROPFIND -u myuser https://tuleap.example.com/plugins/webdav

    Looking at code, this is due to the getQuotaInfo method of the Directory class of the SabreDav library. This method requests a realpath on a not set $path attribute. But since PHP 8.0 this is no more supported and triggers an exception. Such code is called when related properties are requested by the PROPFIND payload (empty payload means all properties).

    Webdav
    13.3
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Manuel Vacelet (vaceletm), Thomas Gerbet (tgerbet), Aurélien Tisné (atisne)
    Stage
    Manuel Vacelet (vaceletm)
    Closed
    2022-02-03
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    • Status changed from Waiting for information to Closed
    • Assigned to changed from None to Manuel Vacelet (vaceletm)
    • Close date set to 2022-02-03
    User avatar

    Bonjour,

    Merci du retour. Nous allons regarder ça dès que possible.


    • Status changed from New to Acknowledged
    User avatar

    One solution seems to be to implement the following method in ALL Tuleap's sublasses of DAV\FS\Directory

       public function getQuotaInfo() : array
       {
           return [
               0,
               0,
           ];
       }