Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[bub]URL rewrite

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic