mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Upgrade netty version (#6059)
This commit is contained in:
		
							parent
							
								
									7631dede8a
								
							
						
					
					
						commit
						3b7166ea99
					
				| @ -60,7 +60,7 @@ | ||||
|         <dependency> | ||||
|             <groupId>io.netty</groupId> | ||||
|             <artifactId>netty-all</artifactId> | ||||
|             <version>4.0.56.Final</version> | ||||
|             <version>4.1.42.Final</version> | ||||
|             <scope>compile</scope> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
|  | ||||
| @ -27,6 +27,7 @@ import java.util.List; | ||||
| import java.util.Map; | ||||
| import java.util.Map.Entry; | ||||
| 
 | ||||
| import io.netty.handler.codec.DecoderException; | ||||
| import org.apache.cloudstack.storage.template.UploadEntity; | ||||
| import org.apache.cloudstack.utils.imagestore.ImageStoreUtil; | ||||
| import org.apache.commons.lang3.StringUtils; | ||||
| @ -57,7 +58,6 @@ import io.netty.handler.codec.http.multipart.FileUpload; | ||||
| import io.netty.handler.codec.http.multipart.HttpDataFactory; | ||||
| import io.netty.handler.codec.http.multipart.HttpPostRequestDecoder; | ||||
| import io.netty.handler.codec.http.multipart.HttpPostRequestDecoder.ErrorDataDecoderException; | ||||
| import io.netty.handler.codec.http.multipart.HttpPostRequestDecoder.IncompatibleDataDecoderException; | ||||
| import io.netty.handler.codec.http.multipart.InterfaceHttpData; | ||||
| import io.netty.handler.codec.http.multipart.InterfaceHttpData.HttpDataType; | ||||
| import io.netty.util.CharsetUtil; | ||||
| @ -184,7 +184,7 @@ public class HttpUploadServerHandler extends SimpleChannelInboundHandler<HttpObj | ||||
|                 try { | ||||
|                     //initialize the decoder | ||||
|                     decoder = new HttpPostRequestDecoder(factory, request); | ||||
|                 } catch (ErrorDataDecoderException | IncompatibleDataDecoderException e) { | ||||
|                 } catch (DecoderException e) { | ||||
|                     logger.error("exception while initialising the decoder", e); | ||||
|                     responseContent.append(e.getMessage()); | ||||
|                     writeResponse(ctx.channel(), HttpResponseStatus.INTERNAL_SERVER_ERROR); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user