Cannot fetch a number of returned objects through existing handlers

Open
#23 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api, backend

Research direction

Start with the methods in odfuzz/fuzzer.py at lines 674-723 and reproduce the issue against the linked OData V3 metadata service. Compare the response format and the data_responses.csv examples to determine how returned object counts are extracted; done means the fuzzer can fetch the number of returned objects through these handlers for that service.

Written by the indexing model from the issue text.

Description

enhancement odata-V3

The following methods are relying on the response format received only from SAP services: https://github.com/SAP/odfuzz/blob/184660b47b2e17838b39922cc17e40aa2304a985/odfuzz/fuzzer.py#L674-L723

While running the fuzzer against the OData service https://services.odata.org/V3/OData/OData.svc/$metadata, it was not possible to fetch a number of returned objects (NUM).

/odfuzz/logs # head -5 2019-08-24T22-25-52_5dfeca62-c6ad-11e9-b0aa-0242ac110002/data_responses.csv
Time;Data;EntitySet;URL;Brief
0.294027;96;Products;"https://services.odata.org/V3/OData/OData.svc/Products?$filter=Price%20ge%201.1614181677387581e%2B40d&sap-client=500&$format=json";Products $filter (0)
0.877796;96;Products;"https://services.odata.org/V3/OData/OData.svc/Products?$filter=Price%20eq%201.0353108116349732e%2B39d&sap-client=500&$format=json";Products $filter (0)
0.895396;1966;Products;"https://services.odata.org/V3/OData/OData.svc/Products?$filter=Price%20lt%206.389471766338065e%2B39d&sap-client=500&$format=json";Products $filter (0)
0.902383;1966;Products;"https://services.odata.org/V3/OData/OData.svc/Products?$filter=Price%20le%206.655581923050293e%2B39d&sap-client=500&$format=json";Products $filter (0)

This issue may be related to #22.

Dominant language
Python
Stars
23
Forks
12
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAP/odfuzz

All issues in SAP/odfuzz

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.