Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
01a2333a
Commit
01a2333a
authored
8 years ago
by
anttil
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-3863: Custom Import (Async/Background) fails
SVN: 36824
parent
ef7a1ab2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/CommonClientService.java
+6
-2
6 additions, 2 deletions
...penbis/generic/client/web/server/CommonClientService.java
with
6 additions
and
2 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/CommonClientService.java
+
6
−
2
View file @
01a2333a
...
@@ -32,6 +32,8 @@ import javax.annotation.Resource;
...
@@ -32,6 +32,8 @@ import javax.annotation.Resource;
import
javax.servlet.http.HttpSession
;
import
javax.servlet.http.HttpSession
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.springframework.web.context.request.RequestAttributes
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
ch.systemsx.cisd.common.exceptions.ExceptionUtils
;
import
ch.systemsx.cisd.common.exceptions.ExceptionUtils
;
import
ch.systemsx.cisd.common.exceptions.UserFailureException
;
import
ch.systemsx.cisd.common.exceptions.UserFailureException
;
...
@@ -2738,7 +2740,8 @@ public final class CommonClientService extends AbstractClientService implements
...
@@ -2738,7 +2740,8 @@ public final class CommonClientService extends AbstractClientService implements
HttpSession
httpSession
=
getHttpSession
();
HttpSession
httpSession
=
getHttpSession
();
UploadedFilesBean
uploadedFiles
=
null
;
UploadedFilesBean
uploadedFiles
=
null
;
ConsumerTask
asyncCustomImportTask
=
null
;
ConsumerTask
asyncCustomImportTask
=
null
;
final
RequestAttributes
requestAttributes
=
RequestContextHolder
.
getRequestAttributes
();
final
String
sessionId
=
getSessionToken
();
try
try
{
{
uploadedFiles
=
(
UploadedFilesBean
)
httpSession
.
getAttribute
(
sessionKey
);
uploadedFiles
=
(
UploadedFilesBean
)
httpSession
.
getAttribute
(
sessionKey
);
...
@@ -2765,10 +2768,11 @@ public final class CommonClientService extends AbstractClientService implements
...
@@ -2765,10 +2768,11 @@ public final class CommonClientService extends AbstractClientService implements
@Override
@Override
public
void
doActionOrThrowException
(
Writer
writer
)
public
void
doActionOrThrowException
(
Writer
writer
)
{
{
RequestContextHolder
.
setRequestAttributes
(
requestAttributes
);
// Some stuff is repeated on the async executor, this is expected
// Some stuff is repeated on the async executor, this is expected
CustomImportFile
customImportFileAsync
=
getCustomImportFile
(
this
.
getFilesForTask
());
CustomImportFile
customImportFileAsync
=
getCustomImportFile
(
this
.
getFilesForTask
());
// Execute task
// Execute task
commonServer
.
performCustomImport
(
getS
ession
Token
()
,
customImportCode
,
customImportFileAsync
);
commonServer
.
performCustomImport
(
s
ession
Id
,
customImportCode
,
customImportFileAsync
);
}
}
};
};
...
...
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