Message:

   The following issue has been re-assigned.

   Assignee: fabrizio giustina (mailto:[EMAIL PROTECTED])
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-105

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-105
    Summary: https hrefs in Table get generated as http
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Tag Library
   Fix Fors:
             1.0 RC2
   Versions:
             1.0 RC2

   Assignee: fabrizio giustina
   Reporter: Ted X. Toth

    Created: Thu, 11 Nov 2004 5:29 PM
    Updated: Sun, 14 Nov 2004 10:24 AM

Description:
If you are on a secure page generated links like sortable column headers aren't 
generated as https but rather http. This only occurs as far as I know on 
WebLogic on Windows. In TableTag.java in the initHref method I've added some 
code to fix this problem:
protected void initHref(RequestHelper requestHelper)
    {
        // get the href for this request
        Href normalHref = requestHelper.getHref();

        if (this.requestUri != null)
        {
            // if user has added a requestURI create a new href

            // call encodeURL to preserve session id when cookies are disabled
            String encodedURI = ((HttpServletResponse) 
this.pageContext.getResponse()).encodeURL(this.requestUri);
                        // Added as work around for WebLogic
                        StringBuffer encodedURIBuf = new 
StringBuffer(encodedURI);
                if (((HttpServletRequest) 
this.pageContext.getRequest()).getScheme() == "https" && 
!encodedURIBuf.toString().startsWith("https")) {
                        encodedURIBuf.replace(0, 4, "https");
                                encodedURI = encodedURIBuf.toString();
                }
            this.baseHref = new Href(encodedURI);

            // ... and copy parameters from the current request
            Map parameterMap = normalHref.getParameterMap();
            this.baseHref.addParameterMap(parameterMap);
        }
        else
        {
            // simply copy href
            this.baseHref = normalHref;
        }
    }

I don't care if you use this code as long as it gets fixed and I don't have to 
patch each release.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to