You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This most likely indicates some sort of a problem (for example,
781
+
// This most likely indicates some sort of a problem (for example,
782
782
// the ingest job was not put on the JMS queue because of the size
783
783
// of the file). But we are still returning the OK status - because
784
-
// from the point of view of the API, it's a success - we have
785
-
// successfully gone through the process of trying to schedule the
784
+
// from the point of view of the API, it's a success - we have
785
+
// successfully gone through the process of trying to schedule the
786
786
// ingest job...
787
-
787
+
788
788
returnok(status);
789
789
}
790
790
returnok("Datafile " + id + " queued for ingest");
@@ -854,28 +854,28 @@ private void exportDatasetMetadata(SettingsServiceBean settingsServiceBean, Data
854
854
logger.log(Level.WARNING, "Dataset publication finalization: exception while exporting:{0}", ex.getMessage());
855
855
}
856
856
}
857
-
857
+
858
858
/**
859
859
* API endpoint to retrieve a URL for a file-level external tool.
860
-
*
860
+
*
861
861
* This endpoint allows clients to get a URL for accessing an external tool
862
862
* that operates at the file level. The URL includes necessary authentication tokens and
863
863
* parameters based on the user's permissions and the tool's configuration.
864
-
*
864
+
*
865
865
* The endpoint accepts JSON input with optional parameters:
866
866
* - preview: boolean flag to indicate if the tool should run in preview mode (suppressing header metadata like name/PID that would already be on the file page)
867
867
* - locale: string specifying the locale for internationalization
868
-
*
868
+
*
869
869
* The response includes:
870
870
* - toolUrl: the URL to access the external tool
871
871
* - toolName: the display name of the external tool
872
872
* - fileId: the ID of the file
873
873
* - preview: whether the URL is for preview mode
874
-
*
874
+
*
875
875
* Authentication is required, and appropriate permissions are checked before generating the URL.
876
876
* For restricted files (including files in draft/deaccessioned datasets, embargoed files, or
877
877
* files with expired retention periods), the user must have DownloadFile permission.
878
-
*
878
+
*
879
879
* @param crc The container request context for authentication
880
880
* @param fileId The ID of the file
881
881
* @param externalToolId The ID of the external tool
@@ -908,7 +908,7 @@ public Response getExternalToolUrl(@Context ContainerRequestContext crc, @PathPa
908
908
returnerror(Response.Status.BAD_REQUEST, "Invalid JSON format in request body.");
909
909
}
910
910
}
911
-
911
+
912
912
try {
913
913
// Find the file
914
914
DataFiledataFile;
@@ -932,13 +932,13 @@ public Response getExternalToolUrl(@Context ContainerRequestContext crc, @PathPa
932
932
// Check if the tool's content type matches the file's content type
0 commit comments