bugdavfs2 - Bugs: bug #54943, Redirection not working

 
 

bug #54943: Redirection not working

Submitter:  None
Submitted:  Sat 03 Nov 2018 09:41:04 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Nov 2018 06:33:30 PM UTC, comment #5: 

Fixed in CVS.

- <_71007>
Mon 05 Nov 2018 04:15:58 PM UTC, comment #4: 

Thanks for the feedback. I will include this patch in the next release.

Werner

- <_71007>
Mon 05 Nov 2018 08:59:17 AM UTC, comment #3: 

I applied the patch and it worked.

Francesc <ftorradeflot>
Sat 03 Nov 2018 09:44:14 AM UTC, comment #2: 

It is a bug in davfs2.

I created a patch for the davfs-1.5.4 sources (redirect-patch). Could you apply this patch and then test again? (I can't test redirection myself.)

Werner


(file #45353)

- <_71007>
Sat 03 Nov 2018 09:41:04 AM UTC, comment #1: 

This item has been reassigned from the project davfs2 support tracker to your tracker.

The original report is still available at support #109573

Following are the information included in the original report:

[field #0]                  Item ID: 109573

[field #1]                 Group ID: 10199

[field #2]              Open/Closed: Open

[field #3]                 Severity: 3 - Normal

[field #4]                  Privacy: Public

[field #7]                         : Unknown support Field Display Type

[field #8]                         : Unknown support Field Display Type

[field #9]                 Category: None

[field #10]             Submitted by: None

[field #11]              Assigned to: None

[field #12]             Submitted on: Thu 25 Oct 2018 09:32:28 AM UTC

[field #13]                  Summary: Redirection not working

[field #14]      Original Submission: I have mounted a WebDAV server using davfs2 and I can "ls" the
mount point, but I can't read any file. This is the error I get in the shell:

$ cp /mnt/sim/2358.csv /tmp
cp: cannot open '/mnt/sim/2358.csv' for reading: Invalid argument

Mounted with:
sudo mount -t davfs https://shared.euclid.pic.es /mnt/sim

Config file davfs2.conf attached. Credentials stored in secrets file.

When retrieving a file from our WebDAV, the server redirects the request to a pool, in order to speed up the operation and balance the load. The original HTTPS GET request is answered with a redirection to an HTTP GET request with an uuid added to the query string.

I changed the configuration to allow redirects and set the debug parameter to most and httpbody, and I can see that the davfs2 driver receives the redirect and issues the redirected GET request, but fails to add the uuid in the query string. Then the WebDAV server responds with a 400 - Bad Request.

Am I missing something in the configuration? Or may it be that this version of the driver does not work with our WebDAV configuration?

Find a log file attached: davfs.log . The error occurred at "Oct 25 11:08:43"

On a Ubuntu-16.04 machine. Tried with versions 1.5.2 (from apt) and 1.5.4 (from source).


[field #16]               Item Group: None

[field #17]                   Status: None

[field #18]        Component Version: None

[field #19]         Operating System: GNU/Linux

[field #20]          Reproducibility: None

[field #21]               Size (loc): None

[field #22]            Fixed Release: None

[field #23]          Planned Release: None

[field #24]                   Effort: 0.00

[field #28]                 Priority: 5 - Normal

[field #31]         Percent Complete: 0%

[field #33]                  Release: None

[field #36]         Originator Email: torradeflot@pic.es

[field #58]     Custom Select Box #1: None

[field #59]     Custom Select Box #2: None

[field #60]     Custom Select Box #3: None

[field #61]     Custom Select Box #4: None

[field #62]     Custom Select Box #5: None

[field #63]     Custom Select Box #6: None

[field #64]     Custom Select Box #7: None

[field #65]     Custom Select Box #8: None

[field #66]     Custom Select Box #9: None

[field #67]    Custom Select Box #10: None


- <_71007>
Sat 03 Nov 2018 09:41:04 AM UTC, original submission:  

I have mounted a WebDAV server using davfs2 and I can "ls" the
mount point, but I can't read any file. This is the error I get in the shell:

$ cp /mnt/sim/2358.csv /tmp
cp: cannot open '/mnt/sim/2358.csv' for reading: Invalid argument

Mounted with:
sudo mount -t davfs https://shared.euclid.pic.es /mnt/sim

Config file davfs2.conf attached. Credentials stored in secrets file.

When retrieving a file from our WebDAV, the server redirects the request to a pool, in order to speed up the operation and balance the load. The original HTTPS GET request is answered with a redirection to an HTTP GET request with an uuid added to the query string.

I changed the configuration to allow redirects and set the debug parameter to most and httpbody, and I can see that the davfs2 driver receives the redirect and issues the redirected GET request, but fails to add the uuid in the query string. Then the WebDAV server responds with a 400 - Bad Request.

Am I missing something in the configuration? Or may it be that this version of the driver does not work with our WebDAV configuration?

Find a log file attached: davfs.log . The error occurred at "Oct 25 11:08:43"

On a Ubuntu-16.04 machine. Tried with versions 1.5.2 (from apt) and 1.5.4 (from source).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #45353:  redirect-patch added by _71007 (927B - application/octet-stream)
file #45286:  davfs2.conf added by None (2KiB - application/octet-stream)
file #45287:  davfs.log added by None (224KiB - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ftorradeflot (Posted a comment)
  • -email is unavailable- added by _71007 (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-25 _71007 Open/ClosedOpen Closed
    2018-11-05 _71007 StatusIn Progress Fixed
    2018-11-05 _71007 StatusReady For Test In Progress
    2018-11-03 _71007 Attached File- Added redirect-patch, #45353
        StatusNone Ready For Test
        Assigned toNone _71007
    2018-11-03 _71007 Reassign itemdavfs2, sr #109573 davfs2, bug #54943

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code