Skip to content

Person.rsd encodes the {BASE} URL string on concatenation #1

@jeromechoo

Description

@jeromechoo

Wasn't able to figure out what syntax we need to remove the double encoding issue with {BASE} when concatenated in this way:

<api:setc attr="BASE" value="https://kg.diffbot.com/kg/v3/dql?token={auth}&query=type%3APerson" />
<api:check attr="_input.city_name">
  <api:setc attr="URI" value="{BASE}%20location.city.name%3A%22{city_name}%22" />
</api:check>

Error in DataGrip looks like this.

[HY000] DATA_SOURCE https%3A%2F%2Fkg.diffbot.com%2Fkg%2Fv3%2Fdql%3Ftoken%3D%7Bauth%7D%26query%3Dtype%253APerson%20location.city.name%3A%22Atlanta%22 (No such file or directory) DATA_SOURCE https%3A%2F%2Fkg.diffbot.com%2Fkg%2Fv3%2Fdql%3Ftoken%3D%7Bauth%7D%26query%3Dtype%253APerson%20location.city.name%3A%22Atlanta%22 (No such file or directory)

You can see how the {BASE} string is getting encoded but we don't want it to. I'm not sure if the encoding is happening when it is initially set or when it is concatenated. There doesn't seem to be a difference between using api:setc or api:set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions