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

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://<gatewayHostName>: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://<gatewayHostName>: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:/<gatewayHostName>:443/restman//1.0/bundle?
changing the url to url = 'https://<gatewayHostName>'   without the  :443/restman  works .