← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20283: minor

 

------------------------------------------------------------
revno: 20283
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-09-22 12:16:12 +0200
message:
  minor
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java	2015-09-21 10:09:44 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java	2015-09-22 10:16:12 +0000
@@ -589,7 +589,7 @@
 
         if ( fileResource.getDomain() != FileResourceDomain.DATA_VALUE )
         {
-            throw  new WebMessageException( WebMessageUtils.conflict( "File resource domain must be of type DATA_VALUE" ) );
+            throw  new WebMessageException( WebMessageUtils.conflict( "File resource domain must be DATA_VALUE" ) );
         }
 
         ByteSource content = fileResourceService.getFileResourceContent( fileResource );
@@ -612,7 +612,7 @@
         try
         {
             inputStream = content.openStream();
-            IOUtils.copyLarge( inputStream, response.getOutputStream() );
+            IOUtils.copy( inputStream, response.getOutputStream() );
         }
         catch ( IOException e )
         {