Skip to content

Commit

Permalink
Fix linux specific file separator used for harvester transform option…
Browse files Browse the repository at this point in the history
… list
  • Loading branch information
CMath04 authored and fxprunayre committed Jan 10, 2024
1 parent 6dacf28 commit 4b6b30c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/src/main/java/org/fao/geonet/api/site/SiteApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand Down Expand Up @@ -876,7 +877,7 @@ public List<String> getXslTransformations(
)) {
for (Path sheet : sheets) {
String id = sheet.toString();
if (id != null && id.contains("convert/from") && id.endsWith(".xsl")) {
if (id != null && id.contains("convert" + File.separator + "from") && id.endsWith(".xsl")) {
String name = com.google.common.io.Files.getNameWithoutExtension(
sheet.getFileName().toString());
list.add(IMPORT_STYLESHEETS_SCHEMA_PREFIX + schema + ":convert/" + name);
Expand Down

0 comments on commit 4b6b30c

Please sign in to comment.