Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/fli-iam/shanoir-ng into …
Browse files Browse the repository at this point in the history
…shup-fixes-with-instances-null
  • Loading branch information
michaelkain committed Feb 4, 2025
2 parents 50982cf + 547c93f commit f7f837b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ public ResponseEntity findFrameOfStudyOfSerieOfInstance(String studyInstanceUID,
if (entity != null) {
ByteArrayResource byteArrayResource = new ByteArrayResource(EntityUtils.toByteArray(entity));
HttpHeaders responseHeaders = new HttpHeaders();
responseHeaders.setContentLength(entity.getContentLength());
if (!entity.isChunked() && entity.getContentLength() >= 0) {
responseHeaders.setContentLength(entity.getContentLength());
}
return new ResponseEntity(byteArrayResource, responseHeaders, HttpStatus.OK);
} else {
LOG.error("DICOMWeb: findFrameOfStudyOfSerieOfInstance: empty response entity.");
Expand Down
2 changes: 1 addition & 1 deletion shanoir-ng-front/src/app/studies/study/tree.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class TreeService {
return this.selectUser(selection.id);
} else if (selection?.type == 'coil') {
return this.selectCoil(selection.entity as Coil);
}
} else return Promise.resolve(null);
}

private selectDataset(dataset: number | Dataset): Promise<DatasetNode> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@


import org.shanoir.ng.shared.configuration.RabbitMQConfiguration;

import io.swagger.v3.oas.annotations.Parameter;

import org.shanoir.ng.shared.core.model.IdName;
import org.shanoir.ng.shared.error.FieldErrorMap;
import org.shanoir.ng.shared.event.ShanoirEvent;
Expand Down Expand Up @@ -48,6 +50,8 @@
import java.util.Comparator;
import java.util.List;

import jakarta.transaction.Transactional;

@Controller
public class SubjectApiController implements SubjectApi {

Expand Down Expand Up @@ -95,6 +99,7 @@ public ResponseEntity<SubjectDTO> findSubjectById(
}

@Override
@Transactional
public ResponseEntity<List<SubjectDTO>> findSubjects(boolean preclinical, boolean clinical) {
List<Subject> subjects = new ArrayList<>();
if(preclinical && clinical){
Expand Down

0 comments on commit f7f837b

Please sign in to comment.