Changeset 1668


Ignore:
Timestamp:
2010-08-16 09:58:39 (3 years ago)
Author:
freya
Message:

to prevent concurrency issues, you should always make sure you fully read (cfr getText()) OR exhaust() the response representation (release is not enough for some unclear reason), see http://restlet.tigris.org/issues/show_bug.cgi?id=1053 and http://comments.gmane.org/gmane.comp.java.restlet/12273

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-routing/kauri-routing-impl/src/test/java/org/kauriproject/routing/test/Routing2Test.java

    r1667 r1668  
    8787            response = get("/.startswithdot.html"); 
    8888            assertEquals(200, response.getStatus().getCode()); 
     89            response.getEntity().exhaust(); 
    8990 
    9091            response = get("/differentextension.html"); 
    9192            assertEquals(200, response.getStatus().getCode()); 
     93            response.getEntity().exhaust(); 
    9294 
    9395            response = get("/differentextension.html.xml"); 
     
    9799            response = get("/noextension"); 
    98100            assertEquals(200, response.getStatus().getCode()); 
     101            response.getEntity().exhaust(); 
    99102 
    100103            response = get("/noextension."); 
Note: See TracChangeset for help on using the changeset viewer.