Changeset 6952


Ignore:
Timestamp:
Dec 9, 2022, 2:04:59 PM (2 months ago)
Author:
Nicklas Nordborg
Message:

Fixes #1430: Change default group permissions for archived JSON and FASTQ files

Location:
extensions/net.sf.basedb.reggie/branches/4.41-stable/src/net/sf/basedb/reggie
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/branches/4.41-stable/src/net/sf/basedb/reggie/grid/scripts/demux-utils.sh

    r6942 r6952  
    163163    # Copy from gatway to archive
    164164    mkdir -p "${ImportArchive}"
    165     # Temporary change umask to read-only for the current user
    166     (umask u=r,g=,o= && cp "${ImportGateway}/${SRC}" "${ImportArchive}/${SRC}")
     165    # Temporary change umask to read-only for the current user/group
     166    (umask u=r,g=r,o= && cp "${ImportGateway}/${SRC}" "${ImportArchive}/${SRC}")
    167167    if [ ! "${KeepFASTQOnGateway}" ]; then
    168168      rm -f "${ImportGateway}/${SRC}"
  • extensions/net.sf.basedb.reggie/branches/4.41-stable/src/net/sf/basedb/reggie/plugins/cmd/JsonFile.java

    r6948 r6952  
    515515    {
    516516      session.executeCmd("mkdir -p " + directory, 5).throwExceptionIfNonZeroExitStatus();
    517       session.uploadFile(upload, path, new FilePermission(FilePermission.READ, FilePermission.NONE, FilePermission.NONE));
     517      session.uploadFile(upload, path, new FilePermission(FilePermission.READ, FilePermission.READ, FilePermission.NONE));
    518518    }
    519519    catch (Exception ex)
Note: See TracChangeset for help on using the changeset viewer.