Regarding Linter Report - Extract Variables PO003 Error

extract-variable.jpg

Hi

We are getting error code PO003 when running linter static analysis code on our api.

Extract Variable executes fine in runtime without error and proper extraction of values is happening.

This error is coming for all the extract variable policy used when ran the analyser.

Unable to understand what the error message means. Error description in git hub: https://github.com/apigeecs/bundle-linter

Kindly help us

Screenshot of our extract variable policy attached.

0 5 880
5 REPLIES 5

Hi @Jyothi Shree

The linter is prescribing to include a Condition in the code for the Extract Variable policy to execute.

Add the following lines in your proxy or target configuration (depending on where this policy is)

<Step>
  <Name>EV-ExtractResponse-IntrospectStatus</Name>
  <Condition>(IntrospectStatus.content!= null)</Condition>
</Step>

This is good so that this policy does not execute if the above variable is null

Hope this helps !

Hi

Thanks for your reply.

By adding the condition IntrospectResponse.content the error doesnt go

only by adding condition request.content its going off.

But this wont stand true for us as the EV will be happening based on IntrospectResponse.content not request.content.

Any idea why is it mandating to post the verb as request/response .contents

Thanks

HI @Jyothi Shree - can you please create an issue here

A patch has been applied and new version of apigeelint published.

@Jyothi Shree: Please update your apigeelint to the latest version (currently 0.2.4).