History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FC-1224
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Matthew Bryant
Reporter: Matthew Bryant
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FarCry Core

Blue Dragon Compatibility: J2EE deployment

Created: 09/Apr/08 09:40 AM   Updated: 09/Apr/08 09:42 AM
Component/s: None
Affects Version/s: None
Fix Version/s: FarCry 5.0

Time Tracking:
Not Specified


 Description  « Hide
There's a minor fix to the change I gave you previously to support J2EE deployment. The image path wasn't being calculated correctly due to the application.path.webroot being wrong. Here's the change to farcry/core/Application.cfc:

      <cfif len(cgi.context_path)>
          <!--- remove the context path before expanding the path --->
          <cfset application.path.webroot = expandPath("#right(application.url.webroot, len(application.url.webroot)-len(cgi.context_path))#")>
      <cfelseif len(application.url.webroot)>
          <cfset application.path.webroot = expandPath("#application.url.webroot#")>
      <cfelse>
          <cfset application.path.webroot = expandPath("/")><!--- Doesnt work if empty string. Have to set to "/" otherwise it returns cf root --->
      </cfif>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Matthew Bryant - 09/Apr/08 09:42 AM
now checking for cgi.context_path