-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken handling of AWS S3 urls #2724
Comments
hindog
added a commit
to hindog/neo4j-apoc-procedures
that referenced
this issue
Apr 8, 2022
hindog
changed the title
AWS S3 urls broken if secretKey in url contains '/'
Broken handling of AWS S3 urls
Apr 8, 2022
hindog
added a commit
to hindog/neo4j-apoc-procedures
that referenced
this issue
Apr 12, 2022
ncordon
added a commit
that referenced
this issue
May 3, 2022
* Fixes #2724, AWS S3 url handling * Fixes #2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
vga91
added a commit
to vga91/neo4j-apoc-procedures
that referenced
this issue
May 17, 2022
…ib#2725) * Fixes neo4j-contrib#2724, AWS S3 url handling * Fixes neo4j-contrib#2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
vga91
added a commit
to vga91/neo4j-apoc-procedures
that referenced
this issue
May 17, 2022
…ib#2725) * Fixes neo4j-contrib#2724, AWS S3 url handling * Fixes neo4j-contrib#2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
conker84
pushed a commit
that referenced
this issue
May 18, 2022
* Fixes #2724, AWS S3 url handling * Fixes #2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
vga91
added a commit
to vga91/neo4j-apoc-procedures
that referenced
this issue
May 24, 2022
…ib#2725) * Fixes neo4j-contrib#2724, AWS S3 url handling * Fixes neo4j-contrib#2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
vga91
added a commit
to vga91/neo4j-apoc-procedures
that referenced
this issue
May 25, 2022
…ib#2725) * Fixes neo4j-contrib#2724, AWS S3 url handling * Fixes neo4j-contrib#2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
vga91
added a commit
to vga91/neo4j-apoc-procedures
that referenced
this issue
May 25, 2022
…ib#2725) * Fixes neo4j-contrib#2724, AWS S3 url handling * Fixes neo4j-contrib#2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
vga91
added a commit
that referenced
this issue
May 27, 2022
* Fixes #2724, AWS S3 url handling * Fixes #2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
vga91
added a commit
that referenced
this issue
May 27, 2022
* Fixes #2724, AWS S3 url handling * Fixes #2269: apoc.load procedures don't work anymore with urls containing % * Code formatting * Adds fix for the getHost problem Co-authored-by: Giuseppe Villani <[email protected]> Co-authored-by: Nacho Cordón <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Guidelines
Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.
Expected Behavior (Mandatory)
When using AWS S3 url with credentials embedded in the url (eg:
s3://accessKey:secretKey[:sessionToken]@endpoint:port/bucket/key
), procedures such asapoc.load.json
should be able to read the data if secret key contains url-escaped characters.Actual Behavior (Mandatory)
With a secret key contains a
/
(which they sometimes do), I tried two approaches:ABCDefGHikbWUyzkbsIKapTBr/fk4VkGsGWDOS/2XYZ
). This fails with:ABCDefGHikbWUyzkbsIKapTBr%2Ffk4VkGsGWDOS%2F2XYZ
). This fails with:So S3ParamsExtractor doesn't url-decode the secret key and apoc.util.FileUtils$SupportedProtocols.from expects the url to be encoded, so they are in conflict with each other.
How to Reproduce the Problem
/
in the secret key and call a procedure such asapoc.load.csv
.%2F
in the secret key and call a procedure such asapoc.load.csv
.Simple Dataset (where it's possible)
Steps (Mandatory)
/
in the valueScreenshots (where it's possibile)
Specifications (Mandatory)
Currently used versions
Versions
The text was updated successfully, but these errors were encountered: