Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
maarchRM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Redmine
Redmine
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maarch Labs
maarchRM
Commits
13b2dd68
Commit
13b2dd68
authored
Dec 29, 2020
by
Arnaud Pauget
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/2.6.11' into 'Support/2.6.X'
Release/2.6.11 See merge request
!619
parents
b1a33805
d800e17e
Pipeline
#10601
failed with stages
in 49 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
17 deletions
+22
-17
CHANGELOG.md
CHANGELOG.md
+4
-0
VERSION.md
VERSION.md
+1
-1
Repository.php
dependency/repository/Adapter/fileSystem/Repository.php
+14
-14
serviceAccount.php
src/presentation/maarchRM/Presenter/auth/serviceAccount.php
+3
-2
No files found.
CHANGELOG.md
View file @
13b2dd68
# CHANGELOG
## Version 2.6.11
-
`Fixed`
Test d'ecriture dans les répertoires de stockage à l'ouverture de ceux-ci.
-
`Fixed`
Correction de l'édition d'un comtpe de service si celui-ci ne possède pas de ownerOrgId dans la base.
## Version 2.6.10
-
`Fixed`
Affichage du compte de service défini en base lors de l'édition d'une tâche planifiée.
-
`Changed`
Conservation des tâches en statut "planifié" même si une erreur est survenue lors de l'exécution de celle-ci.
...
...
VERSION.md
View file @
13b2dd68
2.
6.1
0
2.
6.1
1
dependency/repository/Adapter/fileSystem/Repository.php
View file @
13b2dd68
...
...
@@ -46,8 +46,8 @@ class Repository implements \dependency\repository\RepositoryInterface
{
$root
=
str_replace
(
"/"
,
DIRECTORY_SEPARATOR
,
$name
);
if
(
!
is_dir
(
$root
))
{
throw
new
\Exception
(
"Repository
$name
doesn't exist"
);
if
(
!
is_dir
(
$root
)
||
!
is_writable
(
$root
)
)
{
throw
new
\Exception
(
"Repository
$name
doesn't exist
or is not writable
"
);
}
$this
->
name
=
$name
;
...
...
@@ -94,7 +94,7 @@ class Repository implements \dependency\repository\RepositoryInterface
* @return bool
*/
public
function
updateContainer
(
$name
,
$metadata
)
{
{
}
/**
...
...
@@ -104,7 +104,7 @@ class Repository implements \dependency\repository\RepositoryInterface
* @return mixed The object or array of metadata if available
*/
public
function
readContainer
(
$name
)
{
{
}
/**
...
...
@@ -182,7 +182,7 @@ class Repository implements \dependency\repository\RepositoryInterface
if
(
!
is_null
(
$data
))
{
$this
->
updateFile
(
$path
,
$data
);
}
if
(
!
is_null
(
$metadata
))
{
if
(
$this
->
checkFile
(
$path
.
".metadata"
))
{
$this
->
updateFile
(
$path
.
'.metadata'
,
json_encode
(
$metadata
,
\JSON_PRETTY_PRINT
));
...
...
@@ -203,11 +203,11 @@ class Repository implements \dependency\repository\RepositoryInterface
public
function
deleteObject
(
$path
)
{
$this
->
deleteFile
(
$path
);
if
(
$this
->
checkFile
(
$path
.
".metadata"
))
{
$this
->
deleteFile
(
$path
.
".metadata"
);
}
return
true
;
}
...
...
@@ -231,7 +231,7 @@ class Repository implements \dependency\repository\RepositoryInterface
$dir
.=
DIRECTORY_SEPARATOR
.
$step
;
}
if
(
!
is_dir
(
$this
->
root
.
DIRECTORY_SEPARATOR
.
$dir
))
{
mkdir
(
$this
->
root
.
DIRECTORY_SEPARATOR
.
$dir
,
0775
,
true
);
}
...
...
@@ -318,7 +318,7 @@ class Repository implements \dependency\repository\RepositoryInterface
// Sanitize name
$name
=
basename
(
$path
);
$name
=
$this
->
getName
(
$name
,
$dir
);
$filename
=
$this
->
root
.
DIRECTORY_SEPARATOR
.
$dir
.
DIRECTORY_SEPARATOR
.
$name
;
if
(
!
$fp
=
fopen
(
$filename
,
'x'
))
{
...
...
@@ -351,7 +351,7 @@ class Repository implements \dependency\repository\RepositoryInterface
}
fclose
(
$fp
);
return
$dir
.
DIRECTORY_SEPARATOR
.
$name
;
}
...
...
@@ -414,7 +414,7 @@ class Repository implements \dependency\repository\RepositoryInterface
if
(
!
unlink
(
$filename
))
{
throw
new
\Exception
(
"Error in writing the file
$path
and it's impossible to delete but a backup "
.
$path
.
".save"
.
" is available"
);
}
rename
(
$backup
,
$filename
);
throw
new
\Exception
(
"Error in writing the file. The file doesn't have a modification"
);
}
...
...
@@ -467,7 +467,7 @@ class Repository implements \dependency\repository\RepositoryInterface
$compContents
=
str_repeat
(
chr
(
$compNum
),
$fileSize
);
fseek
(
$fp
,
0
);
fwrite
(
$fp
,
$compContents
);
// Third pass with a new random num
$lastContents
=
str_repeat
(
chr
(
$lastNum
),
$fileSize
);
...
...
@@ -479,7 +479,7 @@ class Repository implements \dependency\repository\RepositoryInterface
fclose
(
$fp
);
}
if
(
!
unlink
(
$filename
))
{
throw
new
\Exception
(
"Can not delete at path
$path
"
);
...
...
@@ -553,7 +553,7 @@ class Repository implements \dependency\repository\RepositoryInterface
}
$jsonMetadata
=
$path
.
'='
.
json_encode
(
$metadata
,
\JSON_PRETTY_PRINT
)
.
"
\n
"
;
$mdh
=
fopen
(
$mdf
,
"r+"
);
$mdl
=
false
;
...
...
src/presentation/maarchRM/Presenter/auth/serviceAccount.php
View file @
13b2dd68
...
...
@@ -126,8 +126,9 @@ class serviceAccount
public
function
edit
(
$serviceAccount
)
{
if
(
isset
(
$serviceAccount
->
orgId
))
{
$serviceAccount
->
orgName
=
\laabs
::
callService
(
'organization/organization/read_orgId_'
,
(
string
)
$serviceAccount
->
orgId
)
->
displayName
;
$serviceAccount
->
ownerOrgName
=
\laabs
::
callService
(
'organization/organization/read_orgId_'
,
(
string
)
$serviceAccount
->
ownerOrgId
)
->
displayName
;
$serviceOrg
=
\laabs
::
callService
(
'organization/organization/read_orgId_'
,
(
string
)
$serviceAccount
->
orgId
);
$serviceAccount
->
orgName
=
$serviceOrg
->
displayName
;
$serviceAccount
->
ownerOrgName
=
\laabs
::
callService
(
'organization/organization/read_orgId_'
,
(
string
)
$serviceOrg
->
ownerOrgId
)
->
displayName
;
}
if
(
$serviceAccount
->
servicePrivilege
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment