Skip to content

Fairly big filters don't work because GET instead of POST #42

@faibistes

Description

@faibistes

This GET asks for a dataset with a circle filter. It's more than 2048 chars, which is a typical limit of a GET query request. The server (maybe the API gateway, maybe the data service, maybe a proxy upstream, it does not matter) answers with 404.
This endpoint should be a POST. Maybe it's a breaking change, but I doesn't look like a big one.

https://example.com/qwcpruebas/api/v1/data/scan/ExampleData/?crs=EPSG:3857&filter_geom=%7B%22type%22:%22Polygon%22,%22coordinates%22:[[[-425883.3337478248,4902420.766583908],[-425883.8614626346,4902435.878358861],[-425885.44203609024,4902450.916510765],[-425888.0677677969,4902465.807775256],[-425891.72586545366,4902480.479603591],[-425896.3985071763,4902494.860516096],[-425902.06292832416,4902508.880450412],[-425908.6915324068,4902522.471102826],[-425916.2520255313,4902535.566261048],[-425924.7075737352,4902548.102126783],[-425934.0169824377,4902560.017626552],[-425944.1348971353,4902571.254709239],[-425955.0120243646,4902581.758628907],[-425966.5953718552,4902591.478211514],[-425978.8285067024,4902600.366104231],[-425991.6518303029,4902608.379006139],[-426005.00286871317,4902615.477879184],[-426018.8165770161,4902621.628138371],[-426033.0256562133,4902626.7998202555],[-426047.5608810993,4902630.967728922],[-426062.3514375196,4902634.11155874],[-426077.3252673699,4902636.215993286],[-426092.40941965644,4902637.270779966],[-426107.5304059055,4902637.270779966],[-426122.614558192,4902636.215993286],[-426137.58838804235,4902634.11155874],[-426152.37894446263,4902630.967728922],[-426166.91416934866,4902626.7998202555],[-426181.12324854586,4902621.628138371],[-426194.9369568488,4902615.477879184],[-426208.28799525904,4902608.379006139],[-426221.11131885956,4902600.366104231],[-426233.34445370676,4902591.478211514],[-426244.92780119734,4902581.758628907],[-426255.80492842663,4902571.254709239],[-426265.92284312425,4902560.017626552],[-426275.23225182673,4902548.102126783],[-426283.68780003063,4902535.566261048],[-426291.24829315516,4902522.471102826],[-426297.8768972378,4902508.880450412],[-426303.5413183856,4902494.860516096],[-426308.2139601083,4902480.479603591],[-426311.872057765,4902465.807775256],[-426314.4977894717,4902450.916510765],[-426316.07836292736,4902435.878358861],[-426316.6060777371,4902420.766583908],[-426316.07836292736,4902405.654808955],[-426314.4977894717,4902390.616657051],[-426311.872057765,4902375.7253925605],[-426308.2139601083,4902361.053564225],[-426303.5413183856,4902346.67265172],[-426297.8768972378,4902332.652717405],[-426291.24829315516,4902319.06206499],[-426283.68780003063,4902305.966906768],[-426275.23225182673,4902293.431041034],[-426265.92284312425,4902281.515541265],[-426255.80492842663,4902270.278458578],[-426244.92780119734,4902259.77453891],[-426233.34445370676,4902250.054956303],[-426221.11131885956,4902241.1670635855],[-426208.28799525904,4902233.154161678],[-426194.9369568488,4902226.055288632],[-426181.12324854586,4902219.905029446],[-426166.91416934866,4902214.733347561],[-426152.37894446263,4902210.565438895],[-426137.58838804235,4902207.421609077],[-426122.614558192,4902205.317174531],[-426107.5304059055,4902204.26238785],[-426092.40941965644,4902204.26238785],[-426077.3252673699,4902205.317174531],[-426062.3514375196,4902207.421609077],[-426047.5608810993,4902210.565438895],[-426033.0256562133,4902214.733347561],[-426018.8165770161,4902219.905029446],[-426005.00286871317,4902226.055288632],[-425991.6518303029,4902233.154161678],[-425978.8285067024,4902241.1670635855],[-425966.5953718552,4902250.054956303],[-425955.0120243646,4902259.77453891],[-425944.1348971353,4902270.278458578],[-425934.0169824377,4902281.515541265],[-425924.7075737352,4902293.431041034],[-425916.2520255313,4902305.966906768],[-425908.6915324068,4902319.06206499],[-425902.06292832416,4902332.652717405],[-425896.3985071763,4902346.67265172],[-425891.72586545366,4902361.053564225],[-425888.0677677969,4902375.7253925605],[-425885.44203609024,4902390.616657051],[-425883.8614626346,4902405.654808955],[-425883.3337478248,4902420.766583908]]],%22center%22:[-426099.969912781,4902420.766583908],%22radius%22:216.63616495614406,%22crs%22:%7B%22type%22:%22name%22,%22properties%22:%7B%22name%22:%22EPSG:3857%22%7D%7D%7D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions