Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2EA01060C for ; Thu, 24 Oct 2013 15:03:21 +0000 (UTC) Received: (qmail 77372 invoked by uid 500); 24 Oct 2013 15:03:21 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 77249 invoked by uid 500); 24 Oct 2013 15:03:19 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 77241 invoked by uid 99); 24 Oct 2013 15:03:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2013 15:03:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of santiago.gala@gmail.com designates 209.85.214.174 as permitted sender) Received: from [209.85.214.174] (HELO mail-ob0-f174.google.com) (209.85.214.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2013 15:03:12 +0000 Received: by mail-ob0-f174.google.com with SMTP id vb8so2448740obc.33 for ; Thu, 24 Oct 2013 08:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ukWbixSnoiLYhbmmvPomMhch2499KjdHRWN2s028+bg=; b=TEsl9n6W9kIBfzrEvYNITLjC4JpefHUGyxFwDDoJKSdf+FXHyrtKou4gUe//RELQbr LHa9XTzj55k7Yawm4LaW3CvjXIh7nuafyex7QrTMNO0AE8/Uer8KYluBy8FZgm8xtS9E RiA9mRGNj4uxRIDlfKWBgrlYbxjwzn6zCvjbpasUjqQhOquZCM10H5z9+AEZGA1oFko4 JXvLUaZP1QPwk3tqL4rI8LgcMo0fhZOPXpn952rdbuR4klf31IyXgwcSPGJvkdXfk7iG LaUqlaMtg8+L9jQqibS++n6eNyNz90EasN7F2LGWJV/bSgFesBHX9vZea9+DVigBiAzf qStw== MIME-Version: 1.0 X-Received: by 10.182.129.42 with SMTP id nt10mr2484569obb.19.1382626971220; Thu, 24 Oct 2013 08:02:51 -0700 (PDT) Received: by 10.76.23.167 with HTTP; Thu, 24 Oct 2013 08:02:51 -0700 (PDT) In-Reply-To: <4F753214-CE0B-4A79-9AC1-19E86901638E@adobe.com> References: <9C0FC4C8E9C29945B01766FC7F9D389818A7A2BE5E@eurmbx01.eur.adobe.com> <9C0FC4C8E9C29945B01766FC7F9D389818A7A2C012@eurmbx01.eur.adobe.com> <525D1491.7030206@gmx.de> <7869D6FC-1BDD-4B52-813F-088B07D7CBF2@adobe.com> <4F753214-CE0B-4A79-9AC1-19E86901638E@adobe.com> Date: Thu, 24 Oct 2013 17:02:51 +0200 Message-ID: Subject: Re: Evaluating jackrabbit use for media content From: Santiago Gala To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1fbfe7a029c04e97dedc1 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1fbfe7a029c04e97dedc1 Content-Type: text/plain; charset=UTF-8 On Thu, Oct 24, 2013 at 12:24 AM, Alexander Klimetschek wrote: > On 23.10.2013, at 08:00, Santiago Gala wrote: > > With this caveat, multi byterange support does not look like it is > working. > > My second test: > > > > $ curl -v -u admin:admin -H "Range: bytes=0-20,21-63" > > http://localhost:8080/index.html > > .... > > As curl points, the response has no chunk transfer encoding, no > > Content-Length, no "Connection: close". This is violation of HTTP, one of > > the three things is required or the client gets confused, as you see here > > (I had to use Ctrl-C to make the test end). > > Ok, you might want to report the issue with multi-byte requests on > https://issues.apache.org/jira/browse/SLING, thanks! AFAIK, the code was > taken from Apache Tomcat, and was considered stable, but you never know. > The issue is not with sling, but with curl. A multipart/* entity is properly delimited, the --delimiter-- token marks end of it, as RFC2616 clearly says: "Unlike in RFC 2046, the epilogue of any multipart message MUST be empty; HTTP applications MUST NOT transmit the epilogue (even if the original multipart contains an epilogue). These restrictions exist in order to preserve the self-delimiting nature of a multipart message- body, wherein the "end" of the message-body is indicated by the ending multipart boundary." I'm looking for the place to report it to curl so that it correctly interprets the end boundary as ending a multipart HTTP response... > > The common single-range support should work fine though, we use that here. > One important use case was html5 video, where browsers use http ranges for > progressive streaming, and that works well. > This is the main case we need to support, nice to know that it has already been tested to work. :) > > > I stilll need to find out if handling of binaries is done > > efficiently, without copying to java.io.tmpdir or reading into memory, > and > > a number of other tests. > > It does not create a temp file, it uses InputStream.skip() (see > StreamRendererServlet#copyRange) to get the ranges, which in case of a > FileDataStore in Jackrabbit boils down to a random access on the underlying > file. Pretty efficient. > > Cool. We will quite possibly use JCR for the metainformation, and a separate PUT request to fill the video in, or GET to read it, so I'm no longer much concerned about the copying of binaries between client and server done by jackrabbit remoting in java code... > > Also, sling has way too many dependencies that are > > completely out of scope for our requirements, and getting it trimmed down > > to something about the size of jackrabbit would be needed... > > I understand - if that's the only reason you'd need Sling for, this is > probably overkill. You might be able to take the code as an example for a > custom servlet. OTOH, if you are doing web app stuff on top of JCR, Sling > is really a good option - only Jackrabbit itself, even if it comes with > WebDAV and other things, is usually pretty limiting if you want to expose > JCR over the web. And RMI is definitely something to avoid over the network. > > We are taking a look to sling, and I guess that a OSGI trimmed down sling can work as a foundation for our media repository... > Cheers, > Alex Regards, I'll keep you informed of our results Santiago --e89a8fb1fbfe7a029c04e97dedc1--