Skip to content

Idea for preventing duplicate issues #2220

@stormwin

Description

@stormwin

Doing some searches on GitHub issues on sqlmap, i found out that ~31% (261 out of 826) of reported issues from @sqlmapreporter are/were duplicates

I saw an app (can't remember the name) that uses Github API to check whether issue was already opened on GitHub. Something similar can be implemented in sqlmap

Why to implement this?

  1. To prevent user spamming with same unhandled exception
  2. To help developers to concentrate on real issues, not duplicates
  3. Users with rss feed and watch on this repository are also spammed with lot of duplicate issues

How to implement?

Using GitHub Search API

Scenario
When exception appear in sqlmap, a question pop on the screen asking user whether want to report this exception as an issue or not. If user enter Y, then sqlmap should check for already open issue with same title (ex. Unhandled Exception (#abcdefgh)), then, if there is an open issue, show that to user with link, (ex: Issue was already reported. Check here: (link to issue)). Optionally, if issue is closed and there is a fix, show message to user that Issue was fixed, and user should update to latest commit

Example Link for issue check:
https://api.github.com/search/issues?q=repo:sqlmapproject/sqlmap%20Unhandled%20Exception+in:title

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions