cern-fts / fts-rest-flask Goto Github PK
View Code? Open in Web Editor NEWThe FTS3 REST API Server and Clients
License: Apache License 2.0
The FTS3 REST API Server and Clients
License: Apache License 2.0
If I create a transfer where the destination URLs include a username/password (e.g. ftp://username:[email protected]/path/file.zip
) then the credentials are exposed in the FTS dashboard, as the full URL is shown there. The dashboard must strip the credentials from the URLs. This is a very serious security vulnerability.
The documentation for endpoints https://fts3-docs.web.cern.ch/fts3-docs/fts-rest/docs/api.html#post-dmmkdir , https://fts3-docs.web.cern.ch/fts3-docs/fts-rest/docs/api.html#post-dmrmdir and https://fts3-docs.web.cern.ch/fts3-docs/fts-rest/docs/api.html#post-dmunlink incorrectly states that the surl
parameter is a query parameter. In fact, these requests need the parameter to be passed in the body, in the form
{
"surl": "https:///..."
}
The documentation for mkdir also says it creates a remote file, which is incorrect.
The documentation for endpoint https://fts3-docs.web.cern.ch/fts3-docs/fts-rest/docs/api.html#post-dmrename incorrectly states that this operation will stat a file. In fact it will rename a file. It also says the old
and new
parameters are query parameters. In fact, these parameters are to be passed in the body, in the form
{
"old": "https:///...",
"new": "https:///..."
}
The documentation is also incomplete, as it says this only works for files, although it works for both files and folders.
The docuementation for API endpoint https://fts3-docs.web.cern.ch/fts3-docs/fts-rest/docs/api.html#get-dmstat says that it will return stats for a file. But it works equally as good for folders too. So maybe say that in the documentation.
I am trying to register (then configure) an S3 host in FTS. I am using the FTS instance fts3-public.cern.ch:8446
. I am trying this from Postman, before doing it from code. I configured a client certificate in Postman for the above hostname:port.
As a side note, if I call to configure an already registered S3 host, the call succeeds (validates that my client certificate is OK).
Help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.