Skip to content

ExtendedAttributeFilter serialization seems to be incompatible with the API #52

@zmoore-usgs

Description

@zmoore-usgs

Hello,

I'm attempting to add an ExtendedAttributeFilter into a TimeSeriesUniqueIdListServiceRequest but seeing an error from Aquarius when I execute it. It seems like the API does not like the way that the ExtendedAttributeFilter gets serialized by GSON. When I examine the request URL being created by the SDK I see:

.../AQUARIUS/Publish/v2/GetTimeSeriesUniqueIdList?extendedFilters=[{"FilterName":"PRIMARY_FLAG","FilterValue":"Primary"}]&locationIdentifier=... (URL Encoded)

The response back from Aquarius is:

Invalid extended attribute column name specified:

If I manually remove the quotes from the serialized extendedFilters the request works as expected:

.../AQUARIUS/Publish/v2/GetTimeSeriesUniqueIdList?extendedFilters=[{FilterName:PRIMARY_FLAG,FilterValue:Primary}]&locationIdentifier=...

and I get a list of Time Series UIDs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions