Project

General

Profile

Actions

Feature #1370

closed

API: Refactoring

Added by Bernhard Koschiček-Krombholz over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2020-09-29
Estimated time:

Description

API Refactoring
  • Removed the misleading [] in /query/ path
  • Moved some api.py functions to path.py
  • Refactored api.py for better modularity
  • Class checking if they exist with g.classes object to eliminate if len = 0. g.classes
  • Refactor error messages and added new error messages
  • SQL filter method secured against SQL injections
  • Multiple clauses with filter
  • Changed filter request from e.g. and(like,name,XXX) to and|name|like|XXX
  • Secure filter option
Actions #1

Updated by Bernhard Koschiček-Krombholz over 3 years ago

  • Status changed from Acknowledged to Closed

Statement are secured. Right now, only one filter will work (Work in Progress, Ticket is opened)

Actions #2

Updated by Alexander Watzinger over 3 years ago

  • Subject changed from API: Secure the sql statements to API: Secure SQL statements
Actions #3

Updated by Alexander Watzinger over 3 years ago

  • Subject changed from API: Secure SQL statements to API: Refactoring
  • Description updated (diff)

Collecting API refactoring for 5.6.0 in this issue.

Actions #4

Updated by Alexander Watzinger over 3 years ago

  • Description updated (diff)
Actions #5

Updated by Bernhard Koschiček-Krombholz over 3 years ago

  • Description updated (diff)
Actions #6

Updated by Bernhard Koschiček-Krombholz over 3 years ago

  • Description updated (diff)
Actions #7

Updated by Alexander Watzinger over 3 years ago

  • Target version changed from 6.0.0 to 5.6.0
Actions

Also available in: Atom PDF