wadl
  1. wadl
  2. WADL-50

WADL tools doesn't check to see if resources base is a relative path

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: current
    • Component/s: None
    • Labels:
      None

      Description

      If you have a WADL where the base URI is relative to the WADL location, this isn't explicitly disallowed in the spec, then the client tools doesn't correctly generate valid URI's

      There also needs to be a way to override the original location for the cases where the WADL is copied locally.

        Activity

        Hide
        gdavison added a comment -

        Check in revision 329, which contains fixes to correctly process relative paths in the base property of resources. This allows WADLs to use relative paths on servers.

        In order to make use of this I have update the mojo to take a new target element to reference the remote URI:

        <configuration>
        <targetDirectory>$

        {basedir}/target/test-harness/open-patent-example/generated-sources/wadl</targetDirectory>
        <packageName>test</packageName>
        <targets>
        <param>wadl://example/open-patent-services/wadl/ops-hacked.wadl</param>
        </targets>
        <customizations>
        <customization>${basedir}

        /src/test/resources/open-patent-services/customization-hacked.xjb</customization>
        </customizations>

        <autoPackaging>true</autoPackaging>
        <failOnError>false</failOnError>
        </configuration>

        Show
        gdavison added a comment - Check in revision 329, which contains fixes to correctly process relative paths in the base property of resources. This allows WADLs to use relative paths on servers. In order to make use of this I have update the mojo to take a new target element to reference the remote URI: <configuration> <targetDirectory>$ {basedir}/target/test-harness/open-patent-example/generated-sources/wadl</targetDirectory> <packageName>test</packageName> <targets> <param>wadl://example/open-patent-services/wadl/ops-hacked.wadl</param> </targets> <customizations> <customization>${basedir} /src/test/resources/open-patent-services/customization-hacked.xjb</customization> </customizations> <autoPackaging>true</autoPackaging> <failOnError>false</failOnError> </configuration>

          People

          • Assignee:
            gdavison
            Reporter:
            gdavison
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: