Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public class DHISConnectorServiceImpl extends BaseOpenmrsService implements DHIS

public static final String ZIP_FILE_SUFFIX = ".zip";

public static final String DHISCONNECTOR_ORGUNIT_RESOURCE = "/api/organisationUnits.json?paging=false&fields=:identifiable,displayName";
public static final String DHISCONNECTOR_ORGUNIT_RESOURCE = "/api/organisationUnits.json?paging=false&fields=identifiable,displayName";

public static final String DATAVALUESETS_PATH = "/api/dataValueSets";

Expand Down Expand Up @@ -266,6 +266,7 @@ private void saveToBackUp(String path, String jsonResponse) {

@Override
public String getDataFromDHISEndpoint(String endpoint) {
endpoint = endpoint.replaceAll("//+", "/"); //remove any double slash in endpoint link because DHIS2 rejects it since switching to https
String url = Context.getAdministrationService().getGlobalProperty("dhisconnector.url");
String user = Context.getAdministrationService().getGlobalProperty("dhisconnector.user");
String pass = Context.getAdministrationService().getGlobalProperty("dhisconnector.pass");
Expand Down