eclipse-ee4j / eclipse-ee4j/metro-wsit

Metadata/MetadataSection/Location element not properly handled

Open
#340 0 comments 0 reactions 0 assignees View on GitHub
Component: mex ERR: Assignee metro2_2-waived metro2_3-exclude Priority: Major Type: Bug
Dominant language
Java
Stars
6
Forks
21
Avg merge
10h 2m
Merged PRs (30d)
1

Description

From WS-MetdataExchange Version 1.1:

/mex:Metadata/mex:MetadataSection/mex:Location
This contains a URL to metadata, and the metadata MUST be retrievable from that URL using the primary access mechanism for the scheme of the URL. For example, for an HTTP URL, the metadata MUST be retrievable by sending an HTTP GET request to the URL. When this element is present, it MUST have no element siblings.

Metro does a WS-Transfer Get operation instead of an HTTP GET.

In the case of a .NET WIF STS with staticly hosted WSDL, the mex call returns:

[http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse](http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse)
uuid:778b135f-3fdf-44b2-b53e-ebaab7441e40

[https://thirdparty.authentication.business.gov.au/R3.0/vanguard/S007v1.1/Service.svc?wsdl](https://thirdparty.authentication.business.gov.au/R3.0/vanguard/S007v1.1/Service.svc?wsdl)

In com.sun.xml.ws.mex.client.MetadataClient.java, getServiceInformation uses retrieveMetadata to retrieve the metadata at the Location which fails as it is performing WS-Transfer Get operation instead of an HTTP GET.
#### Affected Versions
[2.1]

Source: [https://github.com/javaee/metro-wsit/issues/1540](https://github.com/javaee/metro-wsit/issues/1540)
Author: glassfishrobot

Contributor guide

Open the contributing guide

Research direction

Start in com.sun.xml.ws.mex.client.MetadataClient.java, especially getServiceInformation and retrieveMetadata. Trace how a mex:Location URL is retrieved and compare it with the issue's WS-MetadataExchange requirement for the URL's primary access mechanism. Done means an HTTP Location is fetched with HTTP GET rather than a WS-Transfer Get operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.