Skip to content

[Question][Java] Yaml summaryModel question #15932

@chmodxxx

Description

@chmodxxx

Hello

I have the following two passthroughs that I want to model using yaml summaryModel :

  1. AuthHeader.of(authHeader) : I want to pass the flow from the arg to the Qualifier
  2. token.getBearerToken() : I want to pass the flow from the qualifier token to the result

This is my current yaml model :

extensions:
  - addsTo:
      pack: org/repo
      extensible: summaryModel
    data:
      - ["com.foo.bar", "AuthHeader", True, "getBearerToken", "()", "", "Argument[this]", "ReturnValue", "taint", "manual"]
      - ["com.foo.bar", "AuthHeader", True, "of", "", "", "Argument[0]", "Argument[this]", "taint", "manual"]
      

For some reason this is not propagating in expressions like AuthHeader ah = AuthHeader.of(AuthHeader.of(AuthHeader.of(token).getBearerToken()).getBearerToken());

Is there something I missed ?

I also tried with having of() propagating from Argument[0] to ReturnValue but also didn't work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions