Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Access Check - Account manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Access Check - Account manager
Commits
d940a656
Commit
d940a656
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
use explicit variable names
parent
5e07634c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/IdPAccountManager/SAMLMetadata.pm
+8
-7
8 additions, 7 deletions
lib/IdPAccountManager/SAMLMetadata.pm
lib/IdPAccountManager/WebRequest.pm
+5
-4
5 additions, 4 deletions
lib/IdPAccountManager/WebRequest.pm
with
13 additions
and
11 deletions
lib/IdPAccountManager/SAMLMetadata.pm
+
8
−
7
View file @
d940a656
...
...
@@ -7,6 +7,7 @@ package IdPAccountManager::SAMLMetadata;
use
strict
;
use
warnings
;
use
English
qw(-no_match_vars)
;
use
IdPAccountManager::
Tools
;
use
IdPAccountManager::
Logger
;
...
...
@@ -45,7 +46,7 @@ sub load {
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to read
$in
{'federation_metadata_file_path'} : $
!
"
"
Failed to read
$in
{'federation_metadata_file_path'} :
$
ERRNO
"
);
return
undef
;
}
...
...
@@ -55,7 +56,7 @@ sub load {
{
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to parse file
$in
{'metadata_file'} : $
!
"
message
=>
"
Failed to parse file
$in
{'metadata_file'} :
$
ERRNO
"
);
return
undef
;
}
...
...
@@ -122,7 +123,7 @@ sub _get_xml_object {
unless
(
-
f
$metadata_file
)
{
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
File
$metadata_file
not found: $
!
"
message
=>
"
File
$metadata_file
not found:
$
ERRNO
"
);
return
undef
;
}
...
...
@@ -130,7 +131,7 @@ sub _get_xml_object {
unless
(
open
FH
,
$metadata_file
)
{
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to open file
$metadata_file
: $
!
"
message
=>
"
Failed to open file
$metadata_file
:
$
ERRNO
"
);
return
undef
;
}
...
...
@@ -149,10 +150,10 @@ sub _get_xml_object {
## Eval() prevents the parsing from killing the main process
eval
{
$doc
=
$parser
->
parse_fh
(
\
*FH
)
};
if
(
$
@
)
{
if
(
$
EVAL_ERROR
)
{
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to parse file
$metadata_file
: $
@
"
message
=>
"
Failed to parse file
$metadata_file
:
$
EVAL_ERROR
"
);
return
undef
;
}
...
...
@@ -160,7 +161,7 @@ sub _get_xml_object {
unless
(
$doc
)
{
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to parse file
$metadata_file
: $
!
"
message
=>
"
Failed to parse file
$metadata_file
:
$
ERRNO
"
);
return
undef
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/IdPAccountManager/WebRequest.pm
+
5
−
4
View file @
d940a656
...
...
@@ -3,6 +3,7 @@ package IdPAccountManager::WebRequest;
use
strict
;
use
warnings
;
use
English
qw(-no_match_vars)
;
use
IdPAccountManager::
Logger
;
use
Conf
;
...
...
@@ -221,7 +222,7 @@ sub req_account_wizard {
push
@
{
$self
->
{'
param_out
'}{'
errors
'}
},
"
internal
";
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to load federation metadata : $
!
"
message
=>
"
Failed to load federation metadata :
$
ERRNO
"
);
return
undef
;
}
...
...
@@ -230,7 +231,7 @@ sub req_account_wizard {
push
@
{
$self
->
{'
param_out
'}{'
errors
'}
},
"
internal
";
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to parse federation metadata : $
!
"
message
=>
"
Failed to parse federation metadata :
$
ERRNO
"
);
return
undef
;
}
...
...
@@ -268,7 +269,7 @@ sub req_select_sp {
push
@
{
$self
->
{'
param_out
'}{'
errors
'}
},
"
internal
";
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to load federation metadata : $
!
"
message
=>
"
Failed to load federation metadata :
$
ERRNO
"
);
return
undef
;
}
...
...
@@ -282,7 +283,7 @@ sub req_select_sp {
push
@
{
$self
->
{'
param_out
'}{'
errors
'}
},
"
internal
";
$self
->
{
logger
}
->
log
(
level
=>
LOG_ERROR
,
message
=>
"
Failed to parse federation metadata : $
!
"
message
=>
"
Failed to parse federation metadata :
$
ERRNO
"
);
return
undef
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment