jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jawad Bokhari <jawad.bokh...@gmail.com>
Subject Re: Custom Node Type Not working for viewing on web-page
Date Mon, 16 Aug 2010 07:44:25 GMT

I tried to use some formatting that didn't make my point clear. Let me

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

Is there any way to change this default implementation or any suggestions to
make this work properly with custom node types.


On Fri, Aug 6, 2010 at 4:24 PM, Jawad Bokhari <jawad.bokhari@gmail.com>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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message