> A strange phenomenon has been observed.
>
> I created a new ContentInterceptor sub-class.
>
> If I access the document content ( using RevisionContent ) in the
> preStoreContent method of the ContentInterceptor class,
> I can then see non-zero length content in the postStoreContent method of
> the ContentInterceptor class.
>
> If I do not access the document content ( i.e. do not call any of the
> methods of the RevisionContent object ) in the preStoreContent method of
> the ContentInterceptor class, then the RevisionContent object in the
> postStoreContent method is empty ( has 0 length content ).
>
> Is this is a misuse or is this a bug?

Looks strange.
In my implementation, I'm just using revisionDescriptor and not
revisionContent but it is always documented : with request headers in
preStoreContent() and with content properties in postRemoveContent().

Sorry, can't anwer you.

> On an aside:
>
> Although the revisionContent object gets passed to the postRemoveContent
> method of the ContentInterceptor ( Note: this is post JP's UserQuota
> changes ),
> any attempt at accessing content ( thru RevisionContent methods ) in the
> postRemoveContent method leads to exceptions and a transaction rollback
> ( on the remove).

No, there is no revisionContent object passed to postRemoveContent() 
method :

protected void postRemoveContent(SlideToken token, 
NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor,
Content contentHelper,
NamespaceConfig namespaceConfig)

Effectively, this method is called just after content removing so I
think the content is not anymore there :-)

Why are you wanting to access node's content ?
RevisionDescriptors and revisionDescriptor objects are not carrying
informations you need for your processing ?

JP

>
> Akil


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to