aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtgui/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srtgui/urls.py')
-rw-r--r--lib/srtgui/urls.py107
1 files changed, 63 insertions, 44 deletions
diff --git a/lib/srtgui/urls.py b/lib/srtgui/urls.py
index e86acbbc..e13939c9 100644
--- a/lib/srtgui/urls.py
+++ b/lib/srtgui/urls.py
@@ -1,7 +1,7 @@
#
-# BitBake Toaster Implementation
+# Security Response Tool Implementation
#
-# Copyright (C) 2013-2017 Intel Corporation
+# Copyright (C) 2017-2018 Wind River Systems
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -30,81 +30,100 @@ urlpatterns = [
# landing page
url(r'^landing/$', views.landing, name='landing'),
- url(r'^manage/$', views.management, name='manage'),
- url(r'^manage_cpes/$',
- tables.ManageCpeTable.as_view(template_name="manage-cpes-toastertable.html"),
- name='manage_cpes'),
- url(r'^triage_cves/$', views.triage_cves, name='triage_cves'),
- url(r'^create_vulnerability/$', views.create_vulnerability, name='create_vulnerability'),
- url(r'^publish/$', views.publish, name='publish'),
- url(r'^manage_report/$', views.manage_report, name='manage_report'),
-
url(r'^login/$', views.login, name='login'),
- url(r'^users/$', views.users, name='users'),
-
- # TEST CODE
url(r'^login_guest/$', views.login_guest, name='login_guest'),
- url(r'^login_admin/$', views.login_admin, name='login_admin'),
-
+ url(r'^cve/(?P<cve_pk>\d+)$', views.cve, name="cve"),
+ url(r'^cve/(?P<cve_pk>[^\d].+)$', views.cve),
+ url(r'^cve/(?P<cve_pk>\d+)/active_tab/(?P<active_tab>\d{1})$', views.cve, name="cve"),
url(r'^cves/$',
- tables.AllCveTable.as_view(template_name="cves-toastertable.html"),
- name='all-cves'),
-
- url(r'^start-select-cves/$', views.start_select_cves, name='start-select-cves'),
+ tables.CvesTable.as_view(template_name="cves-toastertable.html"),
+ name='cves'),
url(r'^select-cves/$',
tables.SelectCveTable.as_view(template_name="cves-select-toastertable.html"),
name='select-cves'),
- url(r'^cve/(?P<cve_pk>\d+)/active_tab/(?P<active_tab>\d{1})$', views.cve, name="cve"),
- url(r'^cve/(?P<cve_pk>\d+)$', views.cve, name="cve"),
-
+ url(r'^defect/(?P<defect_pk>\d+)$', views.defect, name="defect"),
+ url(r'^defect/(?P<defect_pk>[^\d].+)$', views.defect),
url(r'^defects/$',
- tables.AllDefectTable.as_view(template_name="defects-toastertable.html"),
- name='all-defects'),
+ tables.DefectsTable.as_view(template_name="defects-toastertable.html"),
+ name='defects'),
url(r'^cpes/$',
- tables.AllCpeTable.as_view(template_name="cpes-toastertable.html"),
- name='all-cpes'),
+ tables.CpesTable.as_view(template_name="cpes-toastertable.html"),
+ name='cpes'),
url(r'^cwes/$',
- tables.AllCweTable.as_view(template_name="cwes-toastertable.html"),
- name='all-cwes'),
+ tables.CwesTable.as_view(template_name="cwes-toastertable.html"),
+ name='cwes'),
+ url(r'^product/(?P<product_pk>\d+)$', views.product, name="product"),
url(r'^products/$',
tables.ProductsTable.as_view(template_name="products-toastertable.html"),
name='products'),
+ url(r'^vulnerability/(?P<vulnerability_pk>\d+)$', views.vulnerability, name="vulnerability"),
+ url(r'^vulnerability/(?P<vulnerability_pk>[^\d].+)$', views.vulnerability),
url(r'^vulnerabilities/$',
- tables.AllVulnerabilitiesTable.as_view(template_name="vulnerabilities-toastertable.html"),
+ tables.VulnerabilitiesTable.as_view(template_name="vulnerabilities-toastertable.html"),
name='vulnerabilities'),
- url(r'^vulnerability/(?P<vulnerability_pk>\d+)$', views.vulnerability, name="vulnerability"),
-
+ url(r'^investigation/(?P<investigation_pk>\d+)$', views.investigation, name="investigation"),
+ url(r'^investigation/(?P<investigation_pk>[^\d].+)$', views.investigation),
url(r'^investigations/$',
- tables.AllInvestigationsTable.as_view(template_name="investigations-toastertable.html"),
+ tables.InvestigationsTable.as_view(template_name="investigations-toastertable.html"),
name='investigations'),
- url(r'^investigation/(?P<investigation_pk>\d+)$', views.investigation, name="investigation"),
-
- url(r'^all-keywords/$',
- tables.KeywordsTable.as_view(template_name="keywords-toastertable.html"),
- name='all-keywords'),
-
url(r'^keywords/$', views.keywords, name='keywords'),
+ url(r'^keywords_table/$',
+ tables.KeywordsTable.as_view(template_name="keywords-toastertable.html"),
+ name='keywords_table'),
- url(r'^sources/$', views.sources, name='sources'),
+ url(r'^select-publish/$',
+ tables.SelectPublishTable.as_view(template_name="publish-select-toastertable.html"),
+ name='select-publish'),
- url(r'^export/(?P<page_name>\D+)$', views.export, name='export'),
-# url(r'^export/$', views.export_null, name='export'),
+ url(r'^update-published/$',
+ tables.UpdatePublishedTable.as_view(template_name="published-select-toastertable.html"),
+ name='update-published'),
- url(r'^guided_tour/$', views.guided_tour, name='guided_tour'),
+ url(r'^report/(?P<page_name>\D+)$', views.report, name='report'),
- url(r'^quicklink/$', views.quicklink, name='quicklink'),
url(r'^xhr_triage_commit/$', views.xhr_triage_commit,
name='xhr_triage_commit'),
+ url(r'^xhr_cve_commit/$', views.xhr_cve_commit,
+ name='xhr_cve_commit'),
+
+ url(r'^xhr_vulnerability_commit/$', views.xhr_vulnerability_commit,
+ name='xhr_vulnerability_commit'),
+
+ url(r'^xhr_investigation_commit/$', views.xhr_investigation_commit,
+ name='xhr_investigation_commit'),
+
+ url(r'^xhr_cve_publish_commit/$', views.xhr_cve_publish_commit,
+ name='xhr_cve_publish_commit'),
+
+
+ url(r'^manage/$', views.management, name='manage'),
+ url(r'^manage_cpes/$',
+ tables.ManageCpeTable.as_view(template_name="manage-cpes-toastertable.html"),
+ name='manage_cpes'),
+ url(r'^triage_cves/$', views.triage_cves, name='triage_cves'),
+ url(r'^create_vulnerability/$', views.create_vulnerability, name='create_vulnerability'),
+ url(r'^publish/$', views.publish, name='publish'),
+ url(r'^manage_report/$', views.manage_report, name='manage_report'),
+ url(r'^sources/$',
+ tables.SourcesTable.as_view(template_name="sources-toastertable.html"),
+ name='sources'),
+ url(r'^users/$', views.users, name='users'),
+
+
+ url(r'^guided_tour/$', views.guided_tour, name='guided_tour'),
+
+ url(r'^quicklink/$', views.quicklink, name='quicklink'),
+
url(r'^tbd/$', views.tbd, name='tbd'),
# default redirection