You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stuart Roebuck <st...@adolos.co.uk> on 2001/04/01 18:00:54 UTC

[C2] ServletRequest.getRealPath() broken in recent CVS

dims,

I've just been using the latest CVS of Cocoon and notice that some of my 
XSP code is broken related to some of the recent additions to 
cocoon.environment.

The new environment.Request does not provide a getRealPath(String path) 
method.  Is this intentional?

Stuart.

-------------------------------------------------------------------------
Stuart Roebuck                                  stuart.roebuck@adolos.com
Lead Developer                               Java, XML, MacOS X, XP, etc.
ADOLOS                                             http://www.adolos.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [C2] ServletRequest.getRealPath() broken in recent CVS

Posted by Giacomo Pati <gi...@apache.org>.
Stuart Roebuck wrote:
> 
> dims,
> 
> I've just been using the latest CVS of Cocoon and notice that some of my
> XSP code is broken related to some of the recent additions to
> cocoon.environment.
> 
> The new environment.Request does not provide a getRealPath(String path)
> method.  Is this intentional?

Can you explain why you really need this method? It is a dangerous
method because you shouldn't deal with absolut path names because of the
possibility of mounting sub sitemap at a different context. If you
really need such a functionality the environment should take care of
this as it will do with the getRequestUri method.

Giacomo

> 
> Stuart.
> 
> -------------------------------------------------------------------------
> Stuart Roebuck                                  stuart.roebuck@adolos.com
> Lead Developer                               Java, XML, MacOS X, XP, etc.
> ADOLOS                                             http://www.adolos.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [C2] ServletRequest.getRealPath() broken in recent CVS

Posted by Stuart Roebuck <st...@adolos.co.uk>.
dims,

Sorry, can't do anything today.  As with most issues I end up hitting them 
when I'm in a rush!  I've patched round it in my code for the timebeing 
and I'll happily have a look later on Monday though.

Are we just talking about adding in a method declaration to the Interface?

Stuart.

On Sunday, April 1, 2001, at 05:57  pm, Davanum Srinivas wrote:

> Stuart,
>
> No. This is not intentional. I had fixed all the stuff which is already 
> in CVS. But wanted to add
> the rest of the API based on whether people are using it.
>
> Can you please submit a patch? (The main files are Request.java, 
> XSPRequesthelper.java) Or i can
> patch it up on monday.
>
> Thanks,
> dims
>
> --- Stuart Roebuck <st...@adolos.co.uk> wrote:
>> dims,
>>
>> I've just been using the latest CVS of Cocoon and notice that some of my
>> XSP code is broken related to some of the recent additions to
>> cocoon.environment.
>>
>> The new environment.Request does not provide a getRealPath(String path)
>> method.  Is this intentional?
>>
>> Stuart.
>>
>> -------------------------------------------------------------------------
>> Stuart Roebuck                                  stuart.roebuck@adolos.com
>> Lead Developer                               Java, XML, MacOS X, XP, etc.
>> ADOLOS                                             http://www.adolos.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>> For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>
>
> =====
> Davanum Srinivas, JNI-FAQ Manager
> http://www.jGuru.com/faq/JNI
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/?.refer=text
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


-------------------------------------------------------------------------
Stuart Roebuck                                  stuart.roebuck@adolos.com
Lead Developer                               Java, XML, MacOS X, XP, etc.
ADOLOS                                             http://www.adolos.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [C2] ServletRequest.getRealPath() broken in recent CVS

Posted by Davanum Srinivas <di...@yahoo.com>.
Stuart,

No. This is not intentional. I had fixed all the stuff which is already in CVS. But wanted to add
the rest of the API based on whether people are using it. 

Can you please submit a patch? (The main files are Request.java, XSPRequesthelper.java) Or i can
patch it up on monday.

Thanks,
dims

--- Stuart Roebuck <st...@adolos.co.uk> wrote:
> dims,
> 
> I've just been using the latest CVS of Cocoon and notice that some of my 
> XSP code is broken related to some of the recent additions to 
> cocoon.environment.
> 
> The new environment.Request does not provide a getRealPath(String path) 
> method.  Is this intentional?
> 
> Stuart.
> 
> -------------------------------------------------------------------------
> Stuart Roebuck                                  stuart.roebuck@adolos.com
> Lead Developer                               Java, XML, MacOS X, XP, etc.
> ADOLOS                                             http://www.adolos.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org