ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Policy plugin : Execution failed for task ':export-bundle'.

book

Article ID: 240051

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

I can't export from our gateway using policy plugin .

gradlew clean export -P env=src  -D com.ca.apim.export.migratePortalIntegrationAssertions=false
> Task :export-bundle FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':export-bundle'.
> API Call (GET) to gateway returned status 404 for uri: https://xxxxxxxxxxxxx:443/restman//1.0/bundle?all=true&encryptSecrets=true&includeDependencies=true&encassAsPolicyDependency=true
  Response:

  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <l7:Error xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
      <l7:Type>NotFound</l7:Type>
      <l7:TimeStamp>2022-03-10T12:03:27.261+01:00</l7:TimeStamp>
      <l7:Link rel="self" uri="https://xxxxxxxxxxxx:443/restman//1.0/bundle?all=true&amp;encryptSecrets=true&amp;includeDependencies=true&amp;encassAsPolicyDependency=true"/>
      <l7:Detail>HTTP 404 Not Found</l7:Detail>
  </l7:Error>

Environment

Release : 10.1

Component : API GATEWAY

Resolution

The client is using the connection url for the export as 

url = 'https://xxxxxxxxxxxxx:443/restman'

This is also how it is documented and which works before plugin version 1.0.7.

Now this results in a API Call (GET) to gateway returned status 404 for uri: https://xxxxxxxxxx:443/restman//1.0/bundle?
changing the url to url = 'https://gatewayname'   without the  :443/restman  works .