Commit c2239cfe authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Fixed issue with list-of-files custom type

parent bc3ad7b9
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -71,6 +71,15 @@ public class FileDAO {

    private void fillOsPath(FileInfo fi, ResultSet rs) throws SQLException {

        if (fi.getProvideViews() != null) {
            for (String provideView : fi.getProvideViews()) {
                if ("urn:list-of-files".equals(provideView)) {
                    // Not a physical file
                    return;
                }
            }
        }

        String basePath = rs.getString("base_path");
        String osPath = rs.getString("os_path");
        if (osPath.startsWith("/")) {