From d78c86b3accc4076ff5a487482c6c4941c8f2566 Mon Sep 17 00:00:00 2001 From: Reguel Wermelinger Date: Tue, 19 Dec 2023 15:46:09 +0100 Subject: [PATCH] XIVY-12549 adapt: new IRequest api --- .../com/axonivy/connectivity/rest/client/file/FileUpload.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java b/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java index 41b0734ba..2197be266 100644 --- a/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java +++ b/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java @@ -22,6 +22,7 @@ import org.glassfish.jersey.media.multipart.file.FileDataBodyPart; import ch.ivyteam.ivy.environment.Ivy; +import ch.ivyteam.ivy.persistence.filesystem.EclipseProjectMapper; /** *

@@ -86,7 +87,7 @@ public static File toTempIoFile(IFile resource) throws IOException */ public static IFile getHdResource(String dialogId, String pathToFileInDialog) throws FileNotFoundException { - IProject eclipseProject = Ivy.request().getProject().getProject(); + IProject eclipseProject = EclipseProjectMapper.from(Ivy.request().project()); String dialogPath = dialogId.replace(".", "/"); IFolder dialogDir = eclipseProject.getFolder("src_hd").getFolder(dialogPath);