• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

[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]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic