Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
865fa24b
Commit
865fa24b
authored
Jul 16, 2019
by
nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S40358962 # Client - Incoming Issues (raised by Client) #Delay/problem with email ingest
parent
62e62fc4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+2
-2
PerformaEmailFetcher.java
cmsWebApp/src/performa/utils/PerformaEmailFetcher.java
+3
-3
No files found.
cmsWebApp/src/performa/orm/JobApplication.java
View file @
865fa24b
...
...
@@ -109,13 +109,13 @@ public class JobApplication extends BaseJobApplication
if
(
getCV
()
!=
null
)
{
String
contentType
=
getCV
().
getContentType
();
context
.
check
(
Utils
.
isValidContentType
(
contentType
),
this
,
FIELD_CV
,
"invalid"
);
context
.
check
(
contentType
!=
null
&&
Utils
.
isValidContentType
(
contentType
.
toLowerCase
()
),
this
,
FIELD_CV
,
"invalid"
);
}
if
(
getCoverLetter
()
!=
null
)
{
String
contentType
=
getCoverLetter
().
getContentType
();
context
.
check
(
Utils
.
isValidContentType
(
contentType
)
,
this
,
FIELD_CoverLetter
,
"invalid"
);
context
.
check
(
contentType
!=
null
&&
Utils
.
isValidContentType
(
contentType
.
toLowerCase
()
)
,
this
,
FIELD_CoverLetter
,
"invalid"
);
}
}
catch
(
RuntimeException
ex
)
...
...
cmsWebApp/src/performa/utils/PerformaEmailFetcher.java
View file @
865fa24b
...
...
@@ -390,7 +390,7 @@ public class PerformaEmailFetcher implements Runnable, InitialisationParticipant
{
FileBinaryContent
cv
=
contents
.
get
(
0
);
if
(
Utils
.
isValidContentType
(
cv
.
getContentTyp
e
()))
if
(
cv
.
getContentType
()
!=
null
&&
Utils
.
isValidContentType
(
cv
.
getContentType
().
toLowerCas
e
()))
{
jobApplication
.
setCV
(
cv
);
}
...
...
@@ -400,7 +400,7 @@ public class PerformaEmailFetcher implements Runnable, InitialisationParticipant
{
FileBinaryContent
coverLetter
=
contents
.
get
(
0
);
if
(
Utils
.
isValidContentType
(
coverLetter
.
getContentTyp
e
()))
if
(
coverLetter
.
getContentType
()
!=
null
&&
Utils
.
isValidContentType
(
coverLetter
.
getContentType
().
toLowerCas
e
()))
{
jobApplication
.
setCoverLetter
(
contents
.
get
(
1
));
}
...
...
@@ -452,7 +452,7 @@ public class PerformaEmailFetcher implements Runnable, InitialisationParticipant
{
FileBinaryContent
cv
=
contents
.
get
(
0
);
if
(
Utils
.
isValidContentType
(
cv
.
getContentTyp
e
()))
if
(
cv
.
getContentType
()
!=
null
&&
Utils
.
isValidContentType
(
cv
.
getContentType
().
toLowerCas
e
()))
{
jobApplication
.
setCV
(
cv
);
}
...
...
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