[java-identity-provider] branch main updated: IDP-2135: IdP metadata endpoint incorrect http content-type

Brent Putman putmanb at georgetown.edu
Sat Aug 26 06:33:33 UTC 2023


This is an automated email from the git hooks/post-receive script.

putmanb pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=431d170f591d0a025bd094c066eefe2ced3ce245

The following commit(s) were added to refs/heads/main by this push:
     new 431d170f5 IDP-2135: IdP metadata endpoint incorrect http content-type
431d170f5 is described below

commit 431d170f591d0a025bd094c066eefe2ced3ce245
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Sat Aug 26 02:33:14 2023 -0400

    IDP-2135: IdP metadata endpoint incorrect http content-type
    
    Update previous commit for mdquery.vm using a different variant,
    to put the status before the content. It also looks cleaner.
---
 .../src/main/resources/net/shibboleth/idp/views/admin/mdquery.vm     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/views/admin/mdquery.vm b/idp-conf-impl/src/main/resources/net/shibboleth/idp/views/admin/mdquery.vm
index 8cff60138..bc04cdef8 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/views/admin/mdquery.vm
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/views/admin/mdquery.vm
@@ -22,8 +22,9 @@ $response.setStatus(500)
 #if ($peerCtx)
 #set ($mdCtx = $peerCtx.getSubcontext("org.opensaml.saml.common.messaging.context.SAMLMetadataContext"))
 #if ($mdCtx && $mdCtx.getEntityDescriptor())
-$response.setContentType("text/xml")$SerializeSupport.prettyPrintXML($XMLObjectSupport.marshall($mdCtx.getEntityDescriptor()))
-$response.setStatus(200)
+#set ($void = $response.setStatus(200))
+#set ($void = $response.setContentType("text/xml"))
+$SerializeSupport.prettyPrintXML($XMLObjectSupport.marshall($mdCtx.getEntityDescriptor()))
 #stop
 #end
 #end

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list