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
fb4a9066
Commit
fb4a9066
authored
2 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
13253 : Bugfix upload chunks instead of empty chunks
parent
1cae32ae
No related branches found
No related tags found
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis_api/source/java/ch/ethz/sis/openbis/generic/OpenBISAPI.java
+2
-1
2 additions, 1 deletion
...i/source/java/ch/ethz/sis/openbis/generic/OpenBISAPI.java
with
2 additions
and
1 deletion
openbis_api/source/java/ch/ethz/sis/openbis/generic/OpenBISAPI.java
+
2
−
1
View file @
fb4a9066
...
...
@@ -173,12 +173,13 @@ public class OpenBISAPI {
httpRequest
.
param
(
"startByte"
,
Long
.
toString
(
start
));
httpRequest
.
param
(
"endByte"
,
Long
.
toString
(
end
));
httpRequest
.
param
(
"size"
,
Long
.
toString
(
file
.
length
()));
httpRequest
.
content
(
new
BytesContentProvider
(
chunk
));
final
ContentResponse
response
=
httpRequest
.
send
();
final
int
status
=
response
.
getStatus
();
if
(
status
!=
200
)
{
throw
new
IOException
(
response
.
getContentAsString
());
}
start
+=
CHUNK_SIZE
;
}
}
catch
(
final
IOException
|
TimeoutException
|
InterruptedException
|
ExecutionException
e
)
{
throw
new
RuntimeException
(
e
);
...
...
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