• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[bub]URL rewrite

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A bug about URL ReWrite.
like follow url

http://www.jforum.net/forums/show/5.page?someArg=str

there will response 404.


[originally posted on jforum.net by pinke]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
fix myself:

WebRequestContext.java line:104
if (isGet && isQueryStringEmpty && requestUri.endsWith(servletExtension)) {
change to :
if (isGet && ((isQueryStringEmpty && requestUri.endsWith(servletExtension))|| !requestUri.equals("/jforum"+servletExtension))) {

[originally posted on jforum.net by pinke]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HHmm.. this was not made to work this way. If you want to pass custom arguments, you should use the regular url form, like

http://www.jforum.net/jforum.page?module=forums&action=show&forum_id=5&someArg=str

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this way for SSO forward solution .
eg.

In CAS's SSO authentication the default current URL(return url)is like " http://www.jforum.net/forms/list.page?ticket=......."
not is:
http://www.jforum.net/jforum.page?module=forums&action=show&forum_id=5&someArg=str

[originally posted on jforum.net by pinke]
reply
    Bookmark Topic Watch Topic
  • New Topic