Project

General

Profile

« Previous | Next » 

Revision 3217

Fix bug in advanced search that first surfaced in Java 1.5.0/Tomcat 5.5. Only set the sessid parameter if the sessionId string that is passed in is non-null.

View differences:

src/edu/ucsb/nceas/metacat/advancedsearch/Stylizer.java
14 14
 *
15 15
 * This program is distributed in the hope that it will be useful,
16 16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * mERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 18
 * GNU General Public License for more details.
19 19
 *
20 20
 * You should have received a copy of the GNU General Public License
......
76 76

  
77 77
    try {
78 78
      transformer = transformerFactory.newTransformer(xsltSource);
79
      transformer.setParameter("sessid", sessionId);
79

  
80
      if (sessionId != null) {
81
        transformer.setParameter("sessid", sessionId);
82
      }
83

  
80 84
      transformer.setParameter("metacatURL", metacatURL);
81 85
      
82 86
      if ((qformat != null) && (!qformat.equals(""))) {

Also available in: Unified diff