First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 6849
Product:
Component:
Status: NEW
Resolution:
Assigned To: yanel-mailinglist <yanel-development@wyona.com>
Hardware:
OS:
Version:
Priority:
Severity:
Target Milestone:
Reporter: Guillaume Déflache <guillaume.deflache@wyona.com>
Add CC:
CC:
QA Contact:
URL:
Summary:
Status Whiteboard:
Keywords:
Flags:
 

Attachment Type Creator Created Size Flags Actions
proposed function to decode URIs in URL patch Guillaume Déflache 2008-12-08 16:22 3.70 KB none Details
Yanel servlet patch that uses the previous one to fix the bug patch Guillaume Déflache 2008-12-10 10:58 7.62 KB none Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 6849 depends on: Show dependency tree
Show dependency graph
Bug 6849 blocks:

Additional Comments:









View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-12-08 16:09
URL-encoding them is not always sufficient because some proxies do not keep
things encoded as they should, and we cannot fix all proxies out there...

------- Comment #1 From Guillaume Déflache 2008-12-08 16:22:42 -------
Created an attachment (id=1065) [details]
proposed function to decode URIs in URL

org.wyona.yanel.core.util.HttpServletRequestHelper seemed to me like a good
home for this.

To solve the bug, this still needs to be called from Yanel servlet.
I intend to make a separate patch later, with HTMLUnit tests as well... but for
these I would need the patches in
http://lists.wyona.org/pipermail/yanel-development/2008-December/002517.html
which would give them a home! ;)

------- Comment #2 From Guillaume Déflache 2008-12-10 10:58:20 -------
Created an attachment (id=1068) [details]
Yanel servlet patch that uses the previous one to fix the bug

Thanks for commiting the function! Now that this and the other referenced
patches are available, here is the announced patch that finally fixes the bug.
Changes in YanelServlet (in source reverse order):
 - we now use the decoding function result (when necessary)
 - fixed minor things I forgot in the previous refactoring
 - also removed unused imports
Added more tests for this as well.

------- Comment #3 From Simon Litwan 2008-12-11 15:59:58 -------
commited patch
http://bugzilla.wyona.com/cgi-bin/bugzilla/attachment.cgi?id=1068&action=view
in r40436

------- Comment #4 From Simon Litwan 2008-12-11 17:20:38 -------
now there is a problem with the global data when deploying yanel in the ROOT
context.

------- Comment #5 From Michael Wechner 2008-12-11 23:10:43 -------
Can you explain a bit?

Also we need to add a Hudson test which is testing Yanel within the ROOT and
also within some other prefix, e.g. /yaneltest/

Cheers

Michi

------- Comment #6 From Guillaume Déflache 2008-12-12 15:19:03 -------
OK, so AFAIU Simon is now adding some other custom configurations ATM.

I tested locally and it seems to work. Simon tested again and it also worked
for him: the icons on the main page used not to be there the 1st time.

So we are all waiting for the final answer from Hudson, but anyone feel free to
test it yourself locally and report your findings here!


BTW for the prefix, maybe we should better one that does not start with or end
with or even contain "yanel" like "other-yanl-prefix".

------- Comment #7 From Simon Litwan 2008-12-12 16:15:20 -------
it works on hudson. now we have in hudson a yanel deployed in 'ROOT' context
and in a prefix called 'webapp-prefix'. both is working. son't know yet why it
didn't work for me.

------- Comment #8 From Guillaume Déflache 2009-08-24 15:13:02 -------
The "PathUtil.getResourcesHtdocsPathURLencoded" method still does not work, and
we have no real setup with an Apache front-end to regression-test this bug!

------- Comment #9 From Guillaume Déflache 2009-08-24 15:16:51 -------
...proof being revision 44352!

------- Comment #10 From Guillaume Déflache 2009-09-04 10:33:27 -------
(From update of attachment 1065 [details])
Committed by Simon (see comment #3).

------- Comment #11 From Guillaume Déflache 2009-09-04 10:33:51 -------
(From update of attachment 1068 [details])
Committed by Simon (see comment 3).

------- Comment #12 From Michael Wechner 2009-11-30 23:46:24 -------
I think in order to use this one needs to set

http://httpd.apache.org/docs/2.0/mod/core.html#allowencodedslashes

e.g.

<VirtualHost 195.226.6.73:80>
    ServerAdmin michael.wechner@wyona.com
    ServerName www.wyonapictures.com
    ServerAlias wyonapictures.com wyona-pictures.com
    ErrorLog logs/www.wyonapictures.com-error_log
    CustomLog logs/www.wyonapictures.com-access_log common

    AllowEncodedSlashes On
    ProxyPassReverseCookiePath /ulysses /

    <Proxy balancer://mycluster>
      BalancerMember http://127.0.0.1:8190
      BalancerMember http://127.0.0.1:8290
    </Proxy>
    ProxyPass           /  balancer://mycluster/yanel/wyona-pictures/
    ProxyPassReverse    /  balancer://mycluster/yanel/wyona-pictures/
</VirtualHost>

------- Comment #13 From Guillaume Déflache 2009-12-04 23:03:07 -------
(In reply to comment #8)
> The "PathUtil.getResourcesHtdocsPathURLencoded" method still does not work, and
> we have no real setup with an Apache front-end to regression-test this bug!

Testing Wyona's website using Wyona's Linux Hudson offers such a setup, and we
already tested the decode functionality using it, so probably we can find
another usecase exercising the encoding.


(In reply to comment #12)
> I think in order to use this one needs to set
> 
> http://httpd.apache.org/docs/2.0/mod/core.html#allowencodedslashes
> 
> e.g. [...]

http://lists.wyona.org/pipermail/yanel-development/2009-December/004193.html
discusses this further.

First Last Prev Next    No search results available      Search page      Enter new bug