- S3: when ACL is set it makes also a getLDEV-4735Resolved issue: LDEV-4735Michael Offner
- len() function is incompatibility with ACFLDEV-4734Resolved issue: LDEV-4734Pothys - MitrahSoft
- Redis Coder.isGzip fails with empty byte arrayLDEV-4733Resolved issue: LDEV-4733Michael Offner
- add attribute "throwonError" to cfflushLDEV-4732Resolved issue: LDEV-4732Michael Offner
- Can't cast String [2023-10-21 04:35:13 Etc/GMT] to a value of type [datetime]LDEV-4731Resolved issue: LDEV-4731Michael Offner
- Constant warning logs: "Free Perm Gen Space is less than 5% free: shrinking all template classloaders : consider increasing allocated Perm Gen Space"LDEV-4730
- S3GeneratePresignedURL() function doesn't support the SSE AlgorithmLDEV-4729Michael Offner
- try to recover from classloading issueLDEV-4728Resolved issue: LDEV-4728Michael Offner
- admin crashes on secure connection detection codeLDEV-4727Resolved issue: LDEV-4727Zac Spitzer
- isNull() on struct gives error 'Expecting a stackmap frame at branch target'LDEV-4726Resolved issue: LDEV-4726Pothys - MitrahSoft
- ACF returns a text sorted StructKeyList() / cfloop collection for unordered structsLDEV-4725Michael Offner
- Admin Lucee 5.4 shows wrong update notificationLDEV-4724Michael Offner
- ESAPI - OSGi - cannot load "com.google.common.base"LDEV-4723Resolved issue: LDEV-4723Michael Offner
- consider fury for faster java serialization/deserialisationLDEV-4722
- improve S3 "existing" cacheLDEV-4721Resolved issue: LDEV-4721Michael Offner
- Clear separation between ConfigWebImpl and Single/MultiContextConfig with different interfacesLDEV-4720Michael Offner
- S3 - do not use different caches for one endpointLDEV-4719Resolved issue: LDEV-4719Michael Offner
- filter out S3 secretsLDEV-4718Resolved issue: LDEV-4718Pothys - MitrahSoft
- Administrator.cfc getApplicationListener() is missing APPLICATIONPATHTIMEOUTLDEV-4717Resolved issue: LDEV-4717Michael Offner
- Administrator.cfc .getBundle() is missing descriptionLDEV-4716Resolved issue: LDEV-4716Michael Offner
- Administrator.cfc / createSecurityManager() fails to enable hasOwnSecContextLDEV-4715Zac Spitzer
- Administrator.cfc checking getExtensionInfo() throws no longer supportedLDEV-4714Resolved issue: LDEV-4714Michael Offner
- re-enable administrator.cfc tests and update with changes for 6LDEV-4713Resolved issue: LDEV-4713Zac Spitzer
- UDF cachedwithin ignore default valuesLDEV-4712Resolved issue: LDEV-4712Michael Offner
- Add support for Cloudflare R2LDEV-4711
- NPE with XMLConfigAdmin.removeTagsLDEV-4710Resolved issue: LDEV-4710Pothys - MitrahSoft
- isClosure Returns `false` on Arrow FunctionsLDEV-4709
- S3 breaks application mappingsLDEV-4708Resolved issue: LDEV-4708Michael Offner
- S3GeneratePresignedURL differs from cfaws implementationLDEV-4707Resolved issue: LDEV-4707Pothys - MitrahSoft
- PDF extension throws a 'Could not create bundle object' errorLDEV-4706Resolved issue: LDEV-4706
- comparing a zero string or numeric in version 5 is different than other versionsLDEV-4705Resolved issue: LDEV-4705
- add dbinfo filter type validationLDEV-4704Resolved issue: LDEV-4704Pothys - MitrahSoft
- regression: mappings tests with resources failing (s3, ram)LDEV-4703Resolved issue: LDEV-4703Michael Offner
- Consider switching from Apache commons pool2 to HikariCPLDEV-4702
- NullPointerException / race conditions in DataSourceSupport and JavaSettingsImplLDEV-4701Resolved issue: LDEV-4701Michael Offner
- testZipAsMapping test fails on windowsLDEV-4700Resolved issue: LDEV-4700
- update commons-compress to 1.24.0 due to tar related CVE-2023-42503LDEV-4699Resolved issue: LDEV-4699Pothys - MitrahSoft
- QoQ SQL parser doesn't understand cast with lengthsLDEV-4698
- JDBC connections can cause threading issuesLDEV-4697
- Lucee Request Timeouts can lead to ThreadDeath which cause issues in TomcatLDEV-4696Michael Offner
- 5.4.3.2 QoQ incompatible data type with subquery IN operatorLDEV-4695Resolved issue: LDEV-4695Zac Spitzer
- Unexpected behavior occurs when an invalid password is defined in the cfpdf action='removepassword'LDEV-4694
- Integer BigDecimal values are converted to strings with trailing 0sLDEV-4693Resolved issue: LDEV-4693Michael Offner
- cfpdf action="removepassword" attribute throws Invalid errorLDEV-4692Resolved issue: LDEV-4692Pothys - MitrahSoft
- 5.4.3.2 QofQ rounds decimal column type to integer when joiningLDEV-4691Resolved issue: LDEV-4691Pothys - MitrahSoft
- admin: login prompt for every requestLDEV-4690Resolved issue: LDEV-4690Pothys - MitrahSoft
- internalRequest REST supportLDEV-4689
- RESTError to http status mapping and subresource locator supportLDEV-4688Resolved issue: LDEV-4688Pothys - MitrahSoft
- ESAPI functions Canonicalize and DecodeFromURL report wrong bundleLDEV-4687Resolved issue: LDEV-4687Pothys - MitrahSoft
- TimeFormat has duplicate fld and currencyFormat has a fld for a non existent functionLDEV-4686Resolved issue: LDEV-4686Zac Spitzer
- cfloop condition throws error when in tag islandLDEV-4685
- Since upgrading to Lucee 5.4.3.2 we can not get sFTP to connect successfully to a serverLDEV-4684
- Session struct values not correctly syncronized to datasourceLDEV-4683Michael Offner
- Rewrite the PagePool to work with Apache Pool2LDEV-4682
- QoQ doesn't support "column=value" rather than "value as alias"LDEV-4681Resolved issue: LDEV-4681Brad Wood
- QoQ issue when using "group by" with column aliasLDEV-4680Brad Wood
- regression: rest header args ignore argument nameLDEV-4679Resolved issue: LDEV-4679Pothys - MitrahSoft
- 5.4.3 regressionsLDEV-4678Resolved issue: LDEV-4678
- Admin - Lucee 6 upgrade notification from overview page is not redirected to update pageLDEV-4677Resolved issue: LDEV-4677Pothys - MitrahSoft
- SerializeJSON() produces invalid JSON when serializing some CFC instancesLDEV-4676Resolved issue: LDEV-4676Michael Offner
- admin Error: requested action doesn't existLDEV-4675Resolved issue: LDEV-4675Zac Spitzer
- Redis Extension v2.9.0.10 does not work with Lucee 5.4.xLDEV-4674Resolved issue: LDEV-4674Pothys - MitrahSoft
- backblaze s3 tests can't delete bucket after testsLDEV-4673Michael Offner
- cfadmin-surveillance NPELDEV-4672Resolved issue: LDEV-4672Pothys - MitrahSoft
- Admin should show update me notifications when there is an update in the stable release for extensions pageLDEV-4671Resolved issue: LDEV-4671Zac Spitzer
- Database Session storage "lost" after some minutesLDEV-4670Zac Spitzer
- loglevel is ignored in application log directivesLDEV-4669Resolved issue: LDEV-4669Zac Spitzer
- Integer division rounds integers unexpectedlyLDEV-4668
- dbinfo tables is really slow with oracleLDEV-4667Michael Offner
- update mysql jdbc to 8.1.0LDEV-4666Resolved issue: LDEV-4666Zac Spitzer
- Query filter/map functions alter datatypesLDEV-4665
- update to jsch 0.2.11 - better support for private keys with windows line endingsLDEV-4664Resolved issue: LDEV-4664Zac Spitzer
- script-runner, allow specifying a version type -DluceeQueryVersion="0/rc/zero"LDEV-4663Resolved issue: LDEV-4663Pothys - MitrahSoft
- s3 connection pool shutdownLDEV-4662Resolved issue: LDEV-4662Michael Offner
- add update provider endpoint /latest/{version}/{type}/{distribution}/{format}LDEV-4661Resolved issue: LDEV-4661Pothys - MitrahSoft
- Java 21 supportLDEV-4660Resolved issue: LDEV-4660Michael Offner
- SecurityManager. ThreadDeath, AccessController, finalize(), Thread stop, resume and suspend are deprecatedLDEV-4659Resolved issue: LDEV-4659Zac Spitzer
- Java 19+ predefined date formatting changes - unicodeLDEV-4658Resolved issue: LDEV-4658Michael Offner
- Checkpoint IPS reports "Acrobat Reader Violation" threat while downloading windows installerLDEV-4657
- Problem in argument scope variable when nullsupport=trueLDEV-4656Michael Offner
- further remove deprecated cftree, cfgrid, cfgraph tags and unimplemented tag defintionsLDEV-4655Resolved issue: LDEV-4655Pothys - MitrahSoft
- Secure XML by defaultLDEV-4654
- The key [OTHERVERSIONS] does not existLDEV-4653Resolved issue: LDEV-4653Zac Spitzer
- Directory [zip:///home/wwwroot/WEB-INF/lucee/context/lucee-admin.lar!/resources//language/] doesn't existLDEV-4652Pothys - MitrahSoft
- xmlParse() fails on doctyped XML after running isXML()LDEV-4651Michael Born @ Ortus
- publishing stable builds from github action failsLDEV-4650Michael Offner
- StorageScopeCache tokens map allowed to grow unbounded, creating memory leakLDEV-4649Resolved issue: LDEV-4649Michael Offner
- non utf-8 form data gets decoded incorrectlyLDEV-4648Resolved issue: LDEV-4648Pothys - MitrahSoft
- Scheduled tasks suddenly stop working, Connection pool shut downLDEV-4647Resolved issue: LDEV-4647
- reduce duplication of extensions on the file systemLDEV-4646
- CHAR type in cfprocparam passes empty string as NULLLDEV-4645Resolved issue: LDEV-4645Pothys - MitrahSoft
- only show admin updates notifications for the same major versionLDEV-4644Resolved issue: LDEV-4644Pothys - MitrahSoft
- Image extension 1.0.0: does not work with Lucee 5.4LDEV-4643Resolved issue: LDEV-4643Zac Spitzer
- old cached component used after compile fail with inspect onceLDEV-4642Resolved issue: LDEV-4642Zac Spitzer
- QoQ sum with different cased group by has different column case resultLDEV-4641Resolved issue: LDEV-4641
- Lucee server config: errors in logs when server xml missing "update" elementLDEV-4640Resolved issue: LDEV-4640Pothys - MitrahSoft
- directory copy cant rename between s3 buckets in different regionsLDEV-4639Resolved issue: LDEV-4639Michael Offner
- fileExists() doesn't like s3 locationsLDEV-4638Michael Offner
- this.s3.defaultLocation doesn't seem to workLDEV-4637Michael Offner
- S3 regions supportLDEV-4636
fileExists() doesn't like s3 locations
Description
Environment
Attachments
Details
Details
Assignee
Reporter
Priority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Activity
Tom Chiverton 5 October 2023 at 10:14(edited)
Still broken with the latest S3 extension the output from fileExists() is false for a file that does exist
S3 extension 2.0.1.15, Lucee 5.4.3.2
Java OpenJDK 64-Bit Server VM Corretto-17.0.8.7.1 (build 17.0.8+7-LTS, mixed mode, sharing)
Still logs Unable to execute HTTP request: (my bucket name).s3.eu...
I added <cfset this.s3.host = 'http://s3.eu-west-1.amazonaws.com '/> to Application.cfc (this is where the bucket is) and it now logs"ERROR","http-nio-8888-exec-10","10/05/2023","10:10:40","s3","The authorization header is malformed; the region 'us-
east-1' is wrong; expecting 'eu-west-1' (Service: Amazon S3; Status Code: 400; Error Code: AuthorizationHeaderMalfor
med; Request ID: FKNWQ4VAFVGH1XXK; S3 Extended Request ID: 8FJmOldu0sOk6KMyDB7D7gzk3BgOSaBZgKu7cKeCWJkJlFR7LyobKKmUK
PVsDaajqQHACNSLasVKgOiukpYwtQ==; Proxy: null);com.amazonaws.services.s3.model.AmazonS3Exception: The authorization h
eader is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-1' (Service: Amazon S3; Status Code: 400; Er
ror Code: AuthorizationHeaderMalformed; Request ID: FKNWQ4VAFVGH1XXK; S3 Extended Request ID: 8FJmOldu0sOk6KMyDB7D7g
zk3BgOSaBZgKu7cKeCWJkJlFR7LyobKKmUKPVsDaajqQHACNSLasVKgOiukpYwtQ==; Proxy: null), S3 Extended Request ID: 8FJmOldu0s
Ok6KMyDB7D7gzk3BgOSaBZgKu7cKeCWJkJlFR7LyobKKmUKPVsDaajqQHACNSLasVKgOiukpYwtQ==
… at org.lucee.extension.resource.s3.AmazonS3Client.listObjects(AmazonS3Client.java:1484)
at org.lucee.extension.resource.s3.S3.get(S3.java:1079)
at org.lucee.extension.resource.s3.S3.is(S3.java:1031)
at org.lucee.extension.resource.s3.S3.exists(S3.java:1026)
at org.lucee.extension.resource.s3.S3Resource.exists(S3Resource.java:328)
Pothys - MitrahSoft 12 September 2023 at 06:31
yes @Michael Offner , From my perspective, I believe it's not a bug but rather expected behavior.
Michael Offner 11 September 2023 at 14:37
i think the underlaying issue itself is solved, this is simply expected behaviour, would you agree @Pothys - MitrahSoft ?
Michael Offner 11 September 2023 at 14:37
yeah, in my opinion that is not a bug, if the region is wrong the provider will complain, best is always not to define any region at all with the host name.
Pothys - MitrahSoft 8 September 2023 at 14:25(edited)
@Michael Offner My bucket is located in the us-east-1 region. When I set the access and secret keys in Application.cfc and used the us-east-1 region, it worked fine.
Application.cfc
component {
this.name = "test";
this.s3.accessKeyId = "accessKeyId";
this.s3.awsSecretKey = "awsSecretKey";
this.s3.host = 's3.us-east-1.amazonaws.com';
}
test.cfm
<cfscript>
echo( fileExists( "s3://bucket-name/filename.txt" ) ); // Returns true
</cfscript>
But when I used an unsupported region 'eu-east-1', I got the same "lucee.runtime.exp.NativeException: Unable to execute HTTP request: bucketname.s3.eu-east-1.amazonaws.com" issue and This issue only occurs in this specific scenario.
Application.cfc
component {
this.name = "test";
this.s3.accessKeyId = "accessKeyId";
this.s3.awsSecretKey = "awsSecretKey";
this.s3.host = 's3.eu-east-1.amazonaws.com';
}
test.cfm
<cfscript>
echo( fileExists( "s3://bucket-name/filename.txt" ) ); // Returns false and got error on
application log ("lucee.runtime.exp. NativeException: Unable to execute HTTP request: bucketname.s3.eu-east-1.amazonaws.com" i)
</cfscript>
Stack Trace:
lucee.runtime.exp.NativeException: Unable to execute HTTP request: bucket-name.s3.eu-east-1.amazonaws.com
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1219)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1165)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:814)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:781)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:755)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:715)
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:697)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:561)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:541)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:5470)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:5417)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:5411)
at com.amazonaws.services.s3.AmazonS3Client.getBucketLocation(AmazonS3Client.java:1048)
at com.amazonaws.services.s3.AmazonS3Client.getBucketLocation(AmazonS3Client.java:1054)
at org.lucee.extension.resource.s3.AmazonS3Client.getBucketLocation(AmazonS3Client.java:861)
at org.lucee.extension.resource.s3.S3.getBucketRegion(S3.java:2064)
at org.lucee.extension.resource.s3.S3.toRegion(S3.java:2090)
at org.lucee.extension.resource.s3.S3.getAmazonS3(S3.java:2047)
at org.lucee.extension.resource.s3.S3.get(S3.java:928)
at org.lucee.extension.resource.s3.S3.is(S3.java:891)
at org.lucee.extension.resource.s3.S3.exists(S3.java:886)
at org.lucee.extension.resource.s3.S3Resource.exists(S3Resource.java:326)
at lucee.commons.io.res.util.ResourceUtil.toResourceNotExisting(ResourceUtil.java:331)
at lucee.runtime.op.Caster.toResource(Caster.java:4641)
at lucee.runtime.functions.file.FileExists.call(FileExists.java:35)
at lucee.runtime.functions.file.FileExists.call(FileExists.java:29)
at test.test_cfm$cf.call(/test/test.cfm:3)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:219)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2493)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2478)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2449)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1216)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1162)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at org.cfmlprojects.regexpathinfofilter.RegexPathInfoFilter.doFilter(RegexPathInfoFilter.java:47)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at runwar.Server$1.handleRequest(Server.java:510)
at io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:280)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:79)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:134)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:131)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:260)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:79)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:100)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:852)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.amazonaws.SdkClientException: Unable to execute HTTP request: bucket-name.s3.eu-east-1.amazonaws.com
... 79 more
Caused by: java.net.UnknownHostException: bucket-name.s3.eu-east-1.amazonaws.com
at java.base/java.net.InetAddress$CachedAddresses.get(Unknown Source)
at java.base/java.net.InetAddress.getAllByName0(Unknown Source)
at java.base/java.net.InetAddress.getAllByName(Unknown Source)
at java.base/java.net.InetAddress.getAllByName(Unknown Source)
at com.amazonaws.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:27)
at com.amazonaws.http.DelegatingDnsResolver.resolve(DelegatingDnsResolver.java:38)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at jdk.internal.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:76)
at com.amazonaws.http.conn.$Proxy7.connect(Unknown Source)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.amazonaws.http.apache.client.impl.SdkHttpClient.execute(SdkHttpClient.java:72)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1346)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1157)
... 77 more
var s3Path='s3://'&variables.s3Root&'/'&arrayToList(arguments.path,'/')&'/'&arguments.name;
if( not FileExists( s3Path) ){
The message is
Message: could not find a matching region for [EU], valid region names are [us-gov-west-1,us-gov-east-1,us-east-1,us-east-2,us-west-1,us-west-2,eu-west-1,eu-west-2,eu-west-3,eu-central-1,eu-central-2,eu-north-1,eu-south-1,eu-south-2,ap-east-1,ap-south-1,ap-south-2,ap-southeast-1,ap-southeast-2,ap-southeast-3,ap-southeast-4,ap-northeast-1,ap-northeast-2,ap-northeast-3,sa-east-1,cn-north-1,cn-northwest-1,ca-central-1,me-central-1,me-south-1,af-south-1,us-iso-east-1,us-isob-east-1,us-iso-west-1]
I’ve tried adding
export AWS_REGION=eu-west-1
to /etc/init.d/lucce_ctl but no change.This is the stack:
lucee.runtime.exp.NativeException: could not find a matching region for [EU], valid region names are [us-gov-west-1,us-gov-east-1,us-east-1,us-east-2,us-west-1,us-west-2,eu-west-1,eu-west-2,eu-west-3,eu-central-1,eu-central-2,eu-north-1,eu-south-1,eu-south-2,ap-east-1,ap-south-1,ap-south-2,ap-southeast-1,ap-southeast-2,ap-southeast-3,ap-southeast-4,ap-northeast-1,ap-northeast-2,ap-northeast-3,sa-east-1,cn-north-1,cn-northwest-1,ca-central-1,me-central-1,me-south-1,af-south-1,us-iso-east-1,us-isob-east-1,us-iso-west-1] at org.lucee.extension.resource.s3.S3.toRegions(S3.java:1991) at org.lucee.extension.resource.s3.S3.getBucketRegion(S3.java:1929) at org.lucee.extension.resource.s3.S3.toRegions(S3.java:1955) at org.lucee.extension.resource.s3.S3.getAmazonS3(S3.java:1914) at org.lucee.extension.resource.s3.S3.get(S3.java:869) at org.lucee.extension.resource.s3.S3.is(S3.java:834) at org.lucee.extension.resource.s3.S3.exists(S3.java:829) at org.lucee.extension.resource.s3.S3Resource.exists(S3Resource.java:326) at lucee.commons.io.res.util.ResourceUtil.toResourceNotExisting(ResourceUtil.java:331) at lucee.runtime.op.Caster.toResource(Caster.java:4641) at lucee.runtime.functions.file.FileExists.call(FileExists.java:35) at lucee.runtime.functions.file.FileExists.call(FileExists.java:29) at com.ev.business.s3_cfc$cf.udfCall(/com/ev/business/S3.cfc:57) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775) at com.ev.business.s3_cfc$cf.udfCall(/com/ev/business/S3.cfc:35) at