History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: BPM-259
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Wouter Zoons
Reporter: Tim Dysinger
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
Bpm4Struts Cartridge

URLs need to be hostname:port-free so that the application can be fronted (proxied) by another web server

Created: 26/Oct/05 09:05 PM   Updated: 03/Dec/05 10:00 PM
Component/s: None
Affects Version/s: 3.0 RC1, 3.0 M3, 3.0 RC2, 3.0 Final, 3.0.1, 3.1M1, 3.1-RC1, 3.1
Fix Version/s: 3.1

File Attachments: 1. Text File patch.txt (4 kb)

Environment: All


 Description   
Because of the <html:base/> tag and the display tag library, the hostname and port show up in links and forms on the pages produced by BPM4Struts. This makes it impossible to proxy the internal server (Tomcat) via an external server (Apache). The solution is to make all URLs relative. The temporary solution is to make all URLs hostname:port-free. Attached is a patch for the temporary solution.

 All   Comments   Change History      Sort Order:
Comment by Tim Dysinger [26/Oct/05 09:07 PM]
Changed the <html:base/> to <base href="${pageContext.request.contextPath}">

Changed the <display:table> tag to include the attribute requestURIcontext="false"

Comment by Wouter Zoons [26/Oct/05 09:14 PM]
thanks for filing the issue Tim, I've committed this fix a few hours ago but strangely enough I haven't received any CruiseControl notification of a succesful build .. process could be hanging .. I'll check it out

I didn't try out your patch but looking at what you did I'm assuming it's not breaking anything, looks like you took care of everything (also the crud stuff) .. thanks again!

Comment by Tim Dysinger [02/Nov/05 10:07 PM]
My appologies Wouter. This isn't fixed completely yet.

/andromda/cartridges/andromda-bpm4struts/src/templates/bpm4struts/pages/page-table.jspf.vsl

has a display:table attribute

requestURI="${pageContext.request.requestURL}"

when it should be

requestURI="${pageContext.request.requestURI}"

-AND-

/andromda/cartridges/andromda-bpm4struts/src/templates/bpm4struts/pages/login-form.jsp.vsl

has a form attribute that is

action="j_security_check"

where it should be

action="<html:rewrite page="/j_security_check"/>"

-Sorry about the half-ass patch of mine ;|

Comment by Wouter Zoons [03/Dec/05 10:00 PM]
I've removed all <base> tags and updated the <html:link> in error-page.jsp, seems it wasn't working for our other users