← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16283: minor bugfix for linkService, dont add additional slash, already included in API_ENDPOINT descriptor

 

------------------------------------------------------------
revno: 16283
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-07-30 16:09:41 +0700
message:
  minor bugfix for linkService, dont add additional slash, already included in API_ENDPOINT descriptor
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/service/DefaultLinkService.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/service/DefaultLinkService.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/service/DefaultLinkService.java	2014-06-28 04:21:56 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/service/DefaultLinkService.java	2014-07-30 09:09:41 +0000
@@ -72,7 +72,7 @@
             return;
         }
 
-        String endpoint = contextService.getServletPath() + "/" + schema.getApiEndpoint();
+        String endpoint = contextService.getServletPath() + schema.getApiEndpoint();
 
         if ( pager.getPage() < pager.getPageCount() )
         {