Skip to content

Commit

Permalink
MAT-6547 xss fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adongare committed Feb 23, 2024
1 parent 0be2e47 commit fe098c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/gov/cms/madie/resources/PackageController.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import jakarta.xml.bind.JAXBException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
Expand Down Expand Up @@ -64,13 +63,12 @@ public String getMeasureSimpleXml(
value = "/hqmf",
produces = {
MediaType.APPLICATION_XML_VALUE,
},
consumes = {MediaType.APPLICATION_JSON_VALUE})
})
public ResponseEntity<String> generateHqmf(
@RequestBody @Validated(Measure.ValidationSequence.class) Measure measure) throws Exception {
// generate HQMF if the model type is QDM
if (measure != null && measure.getModel() != null && measure.getModel().contains("QDM")) {
return ResponseEntity.status(HttpStatus.OK)
return ResponseEntity.ok()
.contentType(MediaType.APPLICATION_XML)
.body(hqmfService.generateHqmf((QdmMeasure) measure));
}
Expand Down

0 comments on commit fe098c9

Please sign in to comment.