Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/publish ProxyModule.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/publish ProxyModule.java

Author stack
Full name Michael Stack
Date 2001-02-27 12:47:22 PST
Message User: stack
  Date: 01/02/27 12:47:22

  Modified: java/org/joist/publish Tag: TIGRIS_0_9_2 ProxyModule.java
  Log:
  If no query string nor a page, GET '/' rather than throw a NPE
  
  Revision Changes Path
  No revision
  
  
  No revision
  
  
  1.10.6.1 +23 -16 joist/java/org/joist​/publish/ProxyModule​.java
  
  Index: ProxyModule.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/publish/ProxyM​odule.java,v
  retrieving revision 1.10
  retrieving revision 1.10.6.1
  diff -u -r1.10 -r1.10.6.1
  --- ProxyModule.java 2000/11/29 12:39:02 1.10
  +++ ProxyModule.java 2001/02/27 20:47:21 1.10.6.1
  @@ -176,30 +176,37 @@
           String page = null;
           String query = req.getQueryString();
           if( query == null )
  - {
               query = inSavedOffQuery;
  - if( query == null )
  - {
  - throw new NullPointerException(
  - "query [req.getQueryString( )] is null" );
  - }
  - }
   
  - if( debug )
  - log.debug( "QUERY: " + query );
  -
           try
           {
               page = req.getParameter(PAGE_VAR);
  - }
  - catch (Exception e)
  - {
  - page = getPageFromQueryStr( query );
           }
  - if (page == null)
  +
  + finally
           {
  - page = getPageFromQueryStr( query );
  + if( page == null )
  + {
  + if( query == null )
  + {
  + // Do lowest common denominator request
  + // when don't have a query string or page.
  + //
  + log.info( "No query. No page. GET'ing '/'" );
  + methodGet = true;
  + methodPost = false;
  + query = PAGE_VAR + "=/";
  + }
  + page = getPageFromQueryStr( query );
  + }
           }
  +
  + if( page == null )
  + throw new NullPointerException(
  + "page is null, no matter how hard I try." );
  +
  + if( debug )
  + log.info( "PAGE: " + page );
   
           page = noodleData.postProce​ssPageName(page);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/publish ProxyModule.java stack Michael Stack 2001-02-27 12:47:22 PST
Messages per page: