Skip to content

Commit

Permalink
Merged master into SHIBUI-1863
Browse files Browse the repository at this point in the history
  • Loading branch information
chasegawa committed May 7, 2021
2 parents 05d6582 + f1b4274 commit c926041
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@

import javax.servlet.http.HttpServletRequest;

import org.opensaml.core.criterion.EntityIdCriterion;
import org.opensaml.core.xml.io.MarshallingException;
import org.opensaml.saml.metadata.resolver.MetadataResolver;
import org.opensaml.saml.saml2.metadata.EntityDescriptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -23,7 +20,6 @@
import edu.internet2.tier.shibboleth.admin.ui.repository.EntityDescriptorRepository;
import edu.internet2.tier.shibboleth.admin.ui.service.EntityDescriptorService;
import lombok.extern.slf4j.Slf4j;
import net.shibboleth.utilities.java.support.resolver.CriteriaSet;
import net.shibboleth.utilities.java.support.resolver.ResolverException;

@Controller
Expand All @@ -49,8 +45,7 @@ public ResponseEntity<?> getOne(final @PathVariable String entityId, HttpServlet
return ResponseEntity.notFound().build();
}
EntityDescriptorRepresentation entityDescriptorRepresentation = entityDescriptorService.createRepresentationFromDescriptor(entityDescriptor);
ResponseEntity result = ResponseEntity.ok(entityDescriptorRepresentation);
return result;
return ResponseEntity.ok(entityDescriptorRepresentation);
}

@RequestMapping(value = "/{entityId:.*}", produces = "application/xml")
Expand Down

0 comments on commit c926041

Please sign in to comment.