Skip to content

Illegal filter input #419

Closed
Closed

Description

@mfeurer

Apparently, something changed on OpenML.org. The unit tests show this:

Traceback (most recent call last):
  File "/home/travis/build/openml/openml-python/tests/test_setups/test_setup_functions.py", line 141, in test_list_setups_empty
    setups = openml.setups.list_setups(setup=[-1])
  File "/home/travis/build/openml/openml-python/openml/setups/functions.py", line 143, in list_setups
    return _list_setups(api_call)
  File "/home/travis/build/openml/openml-python/openml/setups/functions.py", line 150, in _list_setups
    xml_string = openml._api_calls._perform_api_call(api_call)
  File "/home/travis/build/openml/openml-python/openml/_api_calls.py", line 53, in _perform_api_call
    return _read_url(url, data)
  File "/home/travis/build/openml/openml-python/openml/_api_calls.py", line 120, in _read_url
    raise _parse_server_exception(response, url=url)
OpenMLServerException: Illegal filter input.

Activity

  1. janvanrijn commented on Mar 13, 2018

    @janvanrijn
    Member

    Last week I indeed added additional input checks that the required inputs are in fact an unsigned integer (0 or higher). This was important, because before people could inject also strings and other stuff in the system.

    Changing the value to 0 would fix the problem. Sorry for the inconvenience

  2. janvanrijn commented on Mar 13, 2018

    @janvanrijn
    Member

    I will fix this in PR #399

  3. janvanrijn commented on Mar 13, 2018

    @janvanrijn
    Member

    Oops, I was wrong. At the moment, a filter on setups with value 0 is not accepted by the server (due to a bug it ignores the filter). Pushed a fix in the OpenML repo. Will be fixed after.

  4. mfeurer commented on Jun 14, 2018

    @mfeurer
    CollaboratorAuthor

    Python unit tests work again. Closing this one now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions