Skip to content
Snippets Groups Projects
Commit c41ea763 authored by Jérôme POIRIER's avatar Jérôme POIRIER
Browse files

Merge branch 'develop' into release

parents f5f8e790 6aff0965
No related branches found
No related tags found
No related merge requests found
Pipeline #67661 passed
......@@ -24,9 +24,9 @@ RUN npm install \
ARG DEPENDENCY_PROXY=
FROM ${DEPENDENCY_PROXY}node:16.11.1-alpine
# Log4j folder have to be writable to openshift user
# RUN mkdir -p /home/node/log
# RUN chgrp -R 0 /home/node/log && chmod -R g=u /home/node/log
# Sets timezone
RUN apk add --no-cache tzdata
ENV TZ=Europe/Paris
USER node
......
......@@ -23,6 +23,7 @@ export class FileService {
return readFile(documentFilePath);
}
this.logger.debug(`No such file or directory '${filepath}'`);
throw new NotFoundException(`No such file or directory '${filepath}'`);
}
......@@ -58,12 +59,13 @@ export class FileService {
public remove(path: string): void {
const fullpath: string = join(this.configService.documentsDir, path);
this.logger.debug(`Removing path ${fullpath})`);
this.logger.debug(`Removing path ${fullpath}`);
if (existsSync(fullpath)) {
return removeSync(fullpath);
}
this.logger.debug(`No such file or directory ${path}`);
throw new NotFoundException(`No such file or directory '${path}'`);
}
......
......@@ -76,4 +76,7 @@ spec:
failureThreshold: 3
securityContext:
seLinuxOptions:
type: spc_t
fsGroup: FS_GROUP0000
fsGroupChangePolicy: OnRootMismatch
{
"name": "backend-files",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment