Dean
01/11/2024, 9:26 PMwritedump(getFileFromPath("<s3://testbucket/APDF.pdf>"))
Result
java.lang.RuntimeException
{SECRET_ACCESS_KEY}: Could not found accessKeyId / secretAccessKey. You can define the credentials as part of the path itself in various ways s3://{accessKeyId}:{SECRET_ACCESS_K.....Dean
01/11/2024, 9:48 PMPatrick
01/12/2024, 12:41 AMDean
01/12/2024, 12:41 AMgetFileFromPath() call to go anywhere near the actual S3 bucketsPatrick
01/12/2024, 12:42 AMDean
01/12/2024, 12:42 AMgetFileFromPath("/etc/passwd") to access /etc/passwdDean
01/12/2024, 12:42 AMPatrick
01/12/2024, 12:43 AMDean
01/12/2024, 12:44 AMPatrick
01/12/2024, 12:45 AMDean
01/12/2024, 12:45 AMDean
01/12/2024, 12:45 AMPatrick
01/12/2024, 12:46 AMPatrick
01/12/2024, 12:46 AMDean
01/12/2024, 12:47 AMfile.txtDean
01/12/2024, 12:47 AMDean
01/12/2024, 12:47 AMPatrick
01/12/2024, 12:54 AMPatrick
01/12/2024, 12:54 AMPatrick
01/12/2024, 12:55 AMDean
01/12/2024, 12:55 AMPatrick
01/12/2024, 12:57 AMDean
01/12/2024, 1:00 AMc:/windows/system32/test.dll and /etc/passwd and that the Lucee instance that TryCF is running on has access to those files.Patrick
01/12/2024, 1:01 AMPatrick
01/12/2024, 1:02 AMPatrick
01/12/2024, 1:03 AMgetFileFromPath is operating as expected but when s3: is picked up then additional functionality comes into play as seen thereDean
01/12/2024, 1:04 AMPatrick
01/12/2024, 1:36 AMs:// should be consideredDean
01/12/2024, 2:08 AMgetFileFromPath("<mysql://var/mysql.sock>")
should try to open a MySQL connectionPatrick
01/12/2024, 2:10 AMDean
01/12/2024, 2:15 AMgetFileFromPath("<s3://customer-bucket/path/file.txt>") , but you can do getFileFromPath("<https://mysite.com/path/file.txt>")Dean
01/12/2024, 2:16 AMPatrick
01/12/2024, 2:18 AM