Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 14912 invoked from network); 16 Aug 2010 07:44:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 07:44:56 -0000 Received: (qmail 41244 invoked by uid 500); 16 Aug 2010 07:44:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 41031 invoked by uid 500); 16 Aug 2010 07:44:54 -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 41021 invoked by uid 99); 16 Aug 2010 07:44:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 07:44:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jawad.bokhari@gmail.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qw0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 07:44:47 +0000 Received: by qwb8 with SMTP id 8so5842730qwb.1 for ; Mon, 16 Aug 2010 00:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=wDpvwlB0+QKfygdvZ1K0nEserVN20HmZzcdvxrn2X4w=; b=etg/VDT6IX0Pfv+BWfWjaMDLy+ict+0ASsgaecXwTG1O4ntktClyyzGyFdtkV5GCPq bnxeaIaVLWyfS/7seIZVkb6z5c9l+Yqjc6k9XYd329G7E0/8CpaQfQTyKDtlL+8AabRq DR23O6jQEYXiwXM1ryD9IDGT+jnsDt2ug4l9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=BUMMBtHcF/HX/qzanrX5hKXI72je4Cp8GSM6JPgPMysXREUeD+d7zRwRAbeGNMpjTE EkbE2JU7+smXPoFDky8ufo13G5KZg/obuE1rht/yhJrPTDnZXr50GboRA1E8XJWU0LYJ NIdmXCmKblhbqIGz+H7gRUMfGKUeVJvVv+Tds= MIME-Version: 1.0 Received: by 10.224.71.148 with SMTP id h20mr2990378qaj.361.1281944665726; Mon, 16 Aug 2010 00:44:25 -0700 (PDT) Received: by 10.229.251.7 with HTTP; Mon, 16 Aug 2010 00:44:25 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Aug 2010 12:44:25 +0500 Message-ID: Subject: Re: Custom Node Type Not working for viewing on web-page From: Jawad Bokhari To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=00c09f8a4e586c2246048dec00b4 --00c09f8a4e586c2246048dec00b4 Content-Type: text/plain; charset=ISO-8859-1 Hi, I tried to use some formatting that didn't make my point clear. Let me re-state: When I am using custom node-types like sp:doc (in place of nt:file) an sp:resource (in place of nt:resource), uploading document works, but I am unable to view or download a document from jackrabbit. I get an extra trailinig slash in the URL of the document. For example, if I uploaded a document named "NOTICE" (A plain text document), the jackrabbit URL looks like ** * http://localhost:8080/repository/default/NOTICE/*. However, if i use default node-types nt:file and nt:resource, I get the proper URL without extra trailing slash and the document is downloaded ** *http://localhost:8080/repository/default/NOTICE*. Is there any way to change this default implementation or any suggestions to make this work properly with custom node types. Thanks, Jawad On Fri, Aug 6, 2010 at 4:24 PM, Jawad Bokhari wrote: > Hi Experts, > > I have created a couple of custom node-types: sp:doc (same as nt:file) and > sp:resource(same as nt:resource), only the names are different and all the > rest are the same. > I intend to do this to add custom attributes to sp:resource in future. > However, even without adding any extra attributes, when i add new document > accorrding to my new types they are created successfully. But when I try to > view them on the default jackrabbit web-interface, I see the document as > path, but not as a document that i can view. > For example, if i created a document named "NOTICE", the URL should have > been something like *http://localhost:8080/repository/default/NOTICE* but > I am getting an extra slash at the end like * > http://localhost:8080/repository/default/NOTICE/. *It appears as if I have > to make my own web-dav implementation to make it working and the default > jackrabbit web-interface works only for nt:file and nt:resource for the > types to show on web-interface. > > Please suggest, if I can customize the default behavior somehow. Otherwise, > it seems as if a new custom web-dav implementation is must. > > > Jawad > --00c09f8a4e586c2246048dec00b4--