•  
      request #8754 Cannot add local_file to FRS with CLI
    Infos
    #8754
    Thomas Cottier (tcottier)
    2016-01-06 17:30
    2016-01-06 11:16
    8871
    Details
    Cannot add local_file to FRS with CLI
    When I try to upload a local_file to the FRS using the CLI:

    $ php tuleap.php -v frs addFile --host=c6.valid.enalean.com --project="tcvalid" --package_id=114 --release_id=132 --local_file="toto"

    I get the following error:

    CodendiSOAP::Connecting to the server http://c6.valid.enalean.com/soap/codendi.wsdl.php?wsdl...
    CodendiSOAP::Connected!
    CodendiSOAP::Executing command getGroupByName ...
    Calculating md5 checksum of the file ...
    Md5 checksum calculated.
    CodendiSOAP::Executing command addFileChunk ...
    Transfer rate: 31.18 B/s
    CodendiSOAP::Executing command addUploadedFile ...
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>3019</faultcode><faultstring>Invalid file name or file doesn't exist: toto</faultstring><faultactor>addUploadedFile</faultactor></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

    Fatal error: [3019] Invalid file name or file doesn't exist: toto


    I tried many forms of quotes for the local_file options and absolute and relative paths.
    CLI
    development
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Declined
    2016-01-06
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    Cannot reproduce neither with php 5.3 or php 5.6

    I suspect a weird conflict with server setup, I propose to close

    • Status changed from New to Declined
    • Close date set to 2016-01-06