S3 Resource Extension 0.9.4.156 Upload Error

I was receiving s3 Access Denied errors when uploading image files to S3 using version 0.9.4.156. (see below)

Code:

<cfset ImageWrite(imgOb, variables.destination)>

Down-grading to S3 Resource Extension 0.9.4.154 resolved the issue, without any code changes.

Version 0.9.4.156 was bundled with the 5.3.10.97 Windows installer on clean install.

Should this be reported as a bug?

OS: Windows Server 2019 (10.0) 64bit
Java Version: 11.0.17 (Eclipse Adoptium) 64bit
Tomcat Version:Apache Tomcat/9.0.68
Lucee Version: Lucee 5.3.10.97


β€œERROR”,β€œajp-nio-127.0.0.1-8009-exec-7”,β€œ01/01/2023”,β€œ00:02:02”,"","Access Denied;error-codeAccessDenied;lucee.runtime.exp.NativeException: Access Denied;error-codeAccessDenied
at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRequest(RestStorageService.java:409)
at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRequest(RestStorageService.java:279)
at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRestGet(RestStorageService.java:1104)
at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRestGet(RestStorageService.java:1076)
at org.jets3t.service.impl.rest.httpclient.RestStorageService.getAccountOwnerImpl(RestStorageService.java:1503)
at org.jets3t.service.StorageService.getAccountOwner(StorageService.java:608)
at org.lucee.extension.resource.s3.S3.getOwner(S3.java:1640)
at org.lucee.extension.resource.s3.S3Resource.getOutputStream(S3Resource.java:258)
at org.lucee.extension.resource.ResourceSupport.getOutputStream(ResourceSupport.java:65)
at lucee.commons.io.IOUtil.copy(IOUtil.java:171)
at lucee.runtime.op.IOImpl.copy(IOImpl.java:145)
at org.lucee.extension.image.Image.writeOut(Image.java:1074)
at org.lucee.extension.image.Image.writeOut(Image.java:1003)
at org.lucee.extension.image.functions.ImageWrite.call(ImageWrite.java:62)
at org.lucee.extension.image.functions.ImageWrite.invoke(ImageWrite.java:75)
at lucee.runtime.functions.FunctionHandlerPool.invoke(FunctionHandlerPool.java:40)
at inc._homepage_tiles_image_upload_cfm$cf.call(/inc/_homepage_tiles_image_upload.cfm:69)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:929)
at views._homepage_tile_edit_cfm$cf.call(/views/_homepage_tile_edit.cfm:17)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:929)
at index_cfm$cf.call(/siteform/index.cfm:21)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:929)
at application_cfc$cf.udfCall(/siteform/application.cfc:73)
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.ComponentImpl._call(ComponentImpl.java:696)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:584)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1931)
at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:444)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:218)
at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:107)
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:779)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:433)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.lucee.extension.resource.s3.S3Exception: Access Denied;error-codeAccessDenied
… 68 more
Caused by: org.jets3t.service.ServiceException: Service Error Message. – ResponseCode: 403, ResponseStatus: Forbidden, XML Error Message: <?xml version=""1.0"" encoding=""UTF-8""?>AccessDeniedAccess DeniedR4C4GD913NSTKP74YpEpwontTlUq9UDZriBklS4RagSRSmXsPqnEddweQes0pwEiBvm/sqGtnHma592I3vix7ybXjWU=
… 68 more

@Alexander_Archaro I think it’s a regression. so can you please file a bug in JIRA: https://luceeserver.atlassian.net/

Bug reported. Thanks!

1 Like