Commit 05dcfd63 authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Implemented suggestions from meeting

parent 29e892ef
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -247,7 +247,6 @@ public class FileDAO {

    public void setBranchLocationId(String rootVosPath, String jobId, int locationId) {
        
        // TODO: validate rootVosPath as a vos_path
        String cte = "SELECT n.node_id AS id\n"
                + "FROM node n\n"
                + "JOIN node p ON p.path @> n.path\n"
+4 −2
Original line number Diff line number Diff line
@@ -126,12 +126,14 @@ public class PutFileService {
                LOG.warn("Destination file {} size mismatch with source", destinationFile.toPath().toString());
            }

            if (!sourceFileInfo.getContentType().equals(destinationFileInfo.getContentType())) {
            if (sourceFileInfo.getContentType() != null && 
                    !sourceFileInfo.getContentType().equals(destinationFileInfo.getContentType())) {
                LOG.warn("Destination file {} content type mismatch with source {} {}", destinationFile.toPath().toString(),
                        destinationFileInfo.getContentType(), sourceFileInfo.getContentType());
            }

            if (!sourceFileInfo.getContentMd5().equals(md5Checksum)) {
            if (sourceFileInfo.getContentMd5() != null && 
                    !sourceFileInfo.getContentMd5().equals(md5Checksum)) {
                LOG.warn("Destination file {} md5 mismatch with source {} {}", destinationFile.toPath().toString(),
                        destinationFileInfo.getContentMd5(), sourceFileInfo.getContentMd5() );
            }