Print

Print


URL:
  <http://savannah.cern.ch/bugs/?98106>

                 Summary: filename occasionally mangled
                 Project: XROOTD
            Submitted by: dhsmith
            Submitted on: 2012-10-11 11:27
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
      Fixed by commit(s): 

    _______________________________________________________

Details:

While sending a lot of similar requests to a test server (running 3.2.1) I
occasionally saw the server attempt to open a filename that was not in the
requests, i.e.:

121011 11:16:45 16912 dhsmith.13143:[log in to unmask] ofs_open: 0-600
fn=/dteam/myfile10^Cssl

(the expected file was "/dteam/myfile10"). I think the problem is also on
trunk and a fix could be:

--- XrdXrootdProtocol.cc	2012-10-11 11:18:04.000000000 +0200
+++ XrdXrootdProtocol.cc+	2012-10-11 11:18:53.000000000 +0200
@@ -367,9 +367,9 @@
               }
            hcNow = hcPrev; halfBSize = argp->bsize >> 1;
           }
+       argp->buff[Request.header.dlen] = '\0';
        if ((rc = getData("arg", argp->buff, Request.header.dlen)))
           {Resume = &XrdXrootdProtocol::Process2; return rc;}
-       argp->buff[Request.header.dlen] = '\0';
       }
 
 // Continue with request processing at the resume point





    _______________________________________________________

Reply to this item at:

  <http://savannah.cern.ch/bugs/?98106>

_______________________________________________
  Message sent via/by LCG Savannah
  http://savannah.cern.ch/

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1