Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug When using rax:anyMatch on XSD headers #383

Closed
RackerWilliams opened this issue Feb 6, 2018 · 1 comment
Closed

Bug When using rax:anyMatch on XSD headers #383

RackerWilliams opened this issue Feb 6, 2018 · 1 comment

Comments

@RackerWilliams
Copy link
Contributor

The following results in a error where there are multiple occurances of header steps with the same ID. It describes a tenant header that can simultaneously be an integer and a boolean value. Removing rax:anyMatch resolves the issue, but performance an all match.

    <application xmlns="http://wadl.dev.java.net/2009/02"
             xmlns:rax="http://docs.rackspace.com/api"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <resources base="https://test.api.openstack.com">
        <resource path="/v1/resource"
                  rax:roles="a:admin/{X-TENANT}">
            <param name="X-TENANT" style="header" required="true" type="xsd:int"
                   repeating="true" rax:anyMatch="true"/>
            <param name="X-TENANT" style="header" required="true" type="xsd:boolean"
                   repeating="true" rax:anyMatch="true"/>
            <param name="X-OTHER" style="header" required="true" type="xsd:string"
                   repeating="false"/>
            <method name="POST" rax:roles="a:creator/{X-TENANT}"/>
            <method name="GET"  rax:roles="a:observer/{X-TENANT}"/>
            <method name="PUT" rax:roles="a:updater/{X-TENANT}"/>
            <method name="DELETE"/>
            <resource path="other">
                <method name="POST" rax:roles="a:creator/{X-TENANT}"/>
                <method name="GET"  rax:roles="#all"/>
                <method name="PUT"  rax:roles="a:updater/{X-TENANT}"/>
                <method name="DELETE"/>
            </resource>
        </resource>
    </resources>
      </application>
@RackerWilliams RackerWilliams added this to the 2.5.2 milestone Feb 6, 2018
@RackerWilliams
Copy link
Contributor Author

Damn it. This is a regression due to recent tenant changes. Will be addressed with multiTenant support for rax:roles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant