Skip to content

Python: Add support for bottle framework. - #872

Merged
taus-semmle merged 4 commits into
github:masterfrom
markshannon:python-bottle
Feb 18, 2019
Merged

Python: Add support for bottle framework.#872
taus-semmle merged 4 commits into
github:masterfrom
markshannon:python-bottle

Conversation

@markshannon

Copy link
Copy Markdown
Contributor

No description provided.

@markshannon markshannon added the WIP This is a work-in-progress, do not merge yet! label Feb 4, 2019
@markshannon markshannon changed the title Python: Add support for bottle framework; routing and requests. Python: Add support for bottle framework. Feb 6, 2019
@markshannon markshannon removed the WIP This is a work-in-progress, do not merge yet! label Feb 6, 2019

@taus-semmle taus-semmle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments/changes but otherwise LGTM. Regarding the test failures, there seems to be some confusion when qltest tries to create relative paths. I wonder if we have an ill-placed queries.xml file. (Also, I'm somewhat surprised that it doesn't complain about "locations outside the test directory".)

import semmle.python.web.Http
import semmle.python.types.Extensions

/** The flask module */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bottle, presumably.

result = ModuleObject::named("bottle")
}

/** The flask app class */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bottle again.

}

private Object theBottleResponseObject() {
result = theBottleModule().getAttribute("request")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should presumably be response.

import semmle.python.web.bottle.General


/** A django.http.response.Response object

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bottle

@taus-semmle
taus-semmle merged commit 1b25573 into github:master Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants