Thu 26 May 2011 08:53:59 PM UTC, comment #2:
This item has been reassigned from the project davfs2 support tracker to your tracker.
The original report is still available at support #107699
Following are the information included in the original report:
[field #0] Item ID: 107699 [field #1] Group ID: 10199 [field #2] Open/Closed: Open [field #3] Severity: 1 - Wish [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: wbaumann [field #12] Submitted on: Thu 26 May 2011 01:48:32 PM GMT [field #13] Summary: too little space in additional header options [field #14] Original Submission: Hi.
We are using davfs2 to mount a share on an oracle server. The server needs a so called Single Sign On before the actual mount can be done.
The single sing on is done with a curl call to the server with some certificate and the result of this are some cookies, which need to be transmitted every time a request is made to the server.
The cookies are written into a davfs2.conf file as "add_header Cookie ..." lines, which is in turn then used by a call to mount.davfs2.
The problem here is, that davfs2 only accepts 253(?) bytes per line in a config file and the cookies are much longer. I patched it for me locally to accept more, but I'd like to know, if it would be possible to get longer lines in the upstream version, too. We now use 2048 byte in mount.davfs2.c ... but see this patch against 1.4.6 (from debian sid)
--- mount_davfs.c 2011-05-26 15:35:31.673037814 +0200
+++ mount_davfs.c_p 2011-05-26 15:35:18.740079775 +0200
@@ -1994,9 +1994,9 @@
int state = SPACE;
int parm_no = 0;
- char buf[254];
+ char buf[2048];
char *pos = buf;
- char *end = buf + 253;
+ char *end = buf + 2047;
char *p = line;
while ((state != END) && (state != ERROR)) {
I would be very thankful, if this would get upstream, as I don't think it will harm anyone and it would rid me of taking care of patching newer versions as they come out.
Thanks and Regards
Andre Naujoks
[field #16] Item Group: None [field #17] Status: Confirmed [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: nautsch2@googlemail.com [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
|