Git Product home page Git Product logo

Comments (5)

andrearendina avatar andrearendina commented on May 24, 2024

Hi all,

could you kindly give us the reasons of the difference between the two workflows mentioned above?

Thanks,
Andrea

from gfal2.

andrearendina avatar andrearendina commented on May 24, 2024

Hi all,

do you have any feedback about this issue?

Thank you,
Andrea

from gfal2.

mpatrascoiu avatar mpatrascoiu commented on May 24, 2024

Hello Andrea,

I'd like to reproduce this issue.
Could I have a test location where I can try to upload a file?

Cheers,
Mihai

from gfal2.

mpatrascoiu avatar mpatrascoiu commented on May 24, 2024

Hello,

Trying on the endpoint you've sent me, I don't get the same behavior. Upload via both the davs:// and https:// schema works.

Can you reproduce the problem and send me your log files?
Before running the test:

  1. Make sure to have LOG_SENSITIVE=false in /etc/gfal2.d/http_plugin.conf
  2. Do you use macaroons? Default value is yes. Option is configured via RETRIEVE_BEARER_TOKEN=true in /etc/gfal2.d/http_plugin.conf

Example command:

$ gfal-copy -vvv --log-file=gfal2-issue16-davs.log check.sh davs://xs-606.cr.cnaf.infn.it:8443/muone-tape/test-andrea-2607
$ gfal-copy -vvv --log-file=gfal2-issue16-https.log check.sh https://xs-606.cr.cnaf.infn.it:8443/muone-tape/test-andrea-2608

Can you send me the log files from the above commands?

I see in your output that the PROPFIND command receives back an HTTP 404 (expected, as file doesn't exist), but the HEAD command receives an HTTP 403 Forbidden response. I wouldn't be surprised if Gfal2 stops the upload here. However, on the test endpoint you've sent, I can't reproduce this behavior.

As a side note, PROPFIND should only be exercised over davs:// protocol. Gfal2 exercises it as a courtesy also over https:// in case it gets a positive answer. If it doesn't, it fallbacks to the HEAD request, where it receives HTTP 403.

Cheers,
Mihai

from gfal2.

andrearendina avatar andrearendina commented on May 24, 2024

Hi Mihai,

thanks a lot for your clarifications.
To briefly summarise, I report here the reasons of the different workflows:

  • When trying to upload via "https://" schema, Gfal2 does a PROPFIND looking for a positive result
  • The server responds with 404 Not Found (expected behavior for a new file)
  • Gfal2 falls back to HEAD request (if the schema were "davs://" this fallback wouldn't happen. On "https://" schema, there's no certainty the request was understood by the server)
  • At this point, it should also receive 404 Not Found, but instead it receives HTTP 403
  • A "Permission refused" error is non-retryable. Gfal2 will stop the operation as the credentials are not accepted

Also StoRM WebDAV developers confirmed that the HEAD methos is forbidden for write-only storage elements.

I close the ticket,
Andrea

from gfal2.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.