cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karuturi <>
Subject [GitHub] cloudstack pull request: [MERGE] Browser based template or volume ...
Date Tue, 28 Apr 2015 09:02:16 GMT
Github user karuturi commented on a diff in the pull request:
    --- Diff: services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/
    @@ -0,0 +1,295 @@
    +// Licensed to the Apache Software Foundation (ASF) under one
    +// or more contributor license agreements.  See the NOTICE file
    +// distributed with this work for additional information
    +// regarding copyright ownership.  The ASF licenses this file
    +// to you under the Apache License, Version 2.0 (the
    +// "License"); you may not use this file except in compliance
    +// with the License.  You may obtain a copy of the License at
    +// Unless required by applicable law or agreed to in writing,
    +// software distributed under the License is distributed on an
    +// KIND, either express or implied.  See the License for the
    +// specific language governing permissions and limitations
    +// under the License.
    +import static io.netty.buffer.Unpooled.copiedBuffer;
    +import static io.netty.handler.codec.http.HttpHeaders.Names.CONNECTION;
    +import static io.netty.handler.codec.http.HttpHeaders.Names.CONTENT_LENGTH;
    +import static io.netty.handler.codec.http.HttpHeaders.Names.CONTENT_TYPE;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.Map.Entry;
    +import org.apache.cloudstack.utils.imagestore.ImageStoreUtil;
    +import org.apache.commons.lang.StringUtils;
    +import org.apache.log4j.Logger;
    +import io.netty.buffer.ByteBuf;
    +import io.netty.handler.codec.http.DefaultFullHttpResponse;
    +import io.netty.handler.codec.http.FullHttpResponse;
    +import io.netty.handler.codec.http.HttpContent;
    +import io.netty.handler.codec.http.HttpHeaders;
    +import io.netty.handler.codec.http.HttpMethod;
    +import io.netty.handler.codec.http.HttpObject;
    +import io.netty.handler.codec.http.HttpRequest;
    +import io.netty.handler.codec.http.HttpResponseStatus;
    +import io.netty.handler.codec.http.HttpVersion;
    +import io.netty.handler.codec.http.LastHttpContent;
    +import io.netty.handler.codec.http.QueryStringDecoder;
    +import io.netty.handler.codec.http.multipart.DefaultHttpDataFactory;
    +import io.netty.handler.codec.http.multipart.DiskFileUpload;
    +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;
    +public class HttpUploadServerHandler extends SimpleChannelInboundHandler<HttpObject>
    +    private static final Logger logger = Logger.getLogger(HttpUploadServerHandler.class.getName());
    +    private static final HttpDataFactory factory = new DefaultHttpDataFactory(true);
    +    private final StringBuilder responseContent = new StringBuilder();
    +    private HttpRequest request;
    +    private HttpPostRequestDecoder decoder;
    +    private NfsSecondaryStorageResource storageResource;
    +    private String uuid;
    +    private boolean requestProcessed = false;
    +    private static final String HEADER_SIGNATURE = "X-signature";
    --- End diff --
    which strings are you referring to? X-signature is very specific to this feature

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message