Skip to content

Commit 4e6c4f0

Browse files
committed
Merge remote-tracking branch 'origin/release-30.0.0-branch' into main
2 parents 377826e + 5c5fdde commit 4e6c4f0

File tree

14 files changed

+157
-10
lines changed

14 files changed

+157
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ Pipfile
102102
.ve
103103
*.bak
104104
/.cache/
105+
/tmp/

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ Release notes
44
Version v30.0.0
55
----------------
66

7+
This is a major version that is not backward compatible.
8+
79
- We refactored the core processing with Importers that import data and Improvers that
810
transform imported data and convert that in Vulnerabilities and Packages. Improvers can
911
also improve and refine imported and existing data as well as enrich data using external
1012
data sources. The migration to this new architecture is under way and not all importers
1113
are available.
14+
1215
Because of these extensive changes, it is not possible to migrate existing imported
1316
data to the new schema. You will need instead to restart imports from an empty database
1417
or access the new public.vulnerablecode.io live instance. We also provide a database dump.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ MarkupSafe==2.1.1
5353
matplotlib-inline==0.1.3
5454
multidict==6.0.2
5555
mypy-extensions==0.4.3
56-
packageurl-python==0.9.9
56+
packageurl-python==0.10.3
5757
packaging==21.3
5858
paramiko==2.10.3
5959
parso==0.8.3

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = vulnerablecode
3-
version = 30.0.0rc6
3+
version = 30.0.0
44
license = Apache-2.0 AND CC-BY-SA-4.0
55

66
# description must be on ONE line https://github.com/pypa/setuptools/issues/1390

vulnerabilities/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def for_package_url_object(self, purl):
193193
return self.filter(**lookups)
194194

195195
elif isinstance(purl, str):
196-
return self.for_package_url(purl)
196+
return self.for_package_url(purl, encode=False)
197197

198198
else:
199199
return self.none()

vulnerabilities/templates/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<footer class="footer">
2424
<div class="content has-text-centered">
2525
<p>
26-
<strong>VulnerableCode</strong> is free software by <a href="https://github.com/nexB/vulnerablecode"> nexB Inc. and others</a>.
27-
The source code is licensed under <a href="https://github.com/nexB/vulnerablecode/blob/main/apache-2.0.LICENSE">Apache-2.0</a>.
28-
The data is licensed under <a href="https://github.com/nexB/vulnerablecode/blob/main/cc-by-sa-4.0.LICENSE">CC-BY-SA-4.0</a>.
26+
<strong>VulnerableCode</strong> is free software by <a href="https://github.com/nexB/vulnerablecode"> nexB Inc. and others</a> |
27+
Source code license: <a href="https://github.com/nexB/vulnerablecode/blob/main/apache-2.0.LICENSE">Apache-2.0</a> |
28+
Data license: <a href="https://github.com/nexB/vulnerablecode/blob/main/cc-by-sa-4.0.LICENSE">CC-BY-SA-4.0</a> | <a href="{% static 'html/tos.html' %}">Terms of Service</a>
2929
</p>
3030
</div>
3131
</footer>

vulnerabilities/templates/navbar.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
Docs at <a href=https://vulnerablecode.readthedocs.org/>
4343
https://vulnerablecode.readthedocs.org/</a>
4444
</li>
45+
<li>
46+
Source code and issues at <a href="https://github.com/nexB/vulnerablecode">https://github.com/nexB/vulnerablecode</a>
47+
</li>
4548
</ul>
49+
If you want to try the JSON REST API, please send a note to <a href="mailto:[email protected]">[email protected]</a> to request an API key for testing.
4650
</div>
4751
</div>
4852
</div>

vulnerabilities/templates/vulnerability_details.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@
190190
{% for ref in vulnerability.references.all %}
191191
<tr>
192192
{% if ref.reference_id %}
193-
<td>{{ ref.reference_id }}</td>
193+
<td class="wrap-strings">{{ ref.reference_id }}</td>
194194
{% else %}
195195
<td></td>
196196
{% endif %}
197-
<td><a href="{{ ref.url }}" target="_blank">{{ ref.url }}<i class="fa fa-external-link fa_link_custom"></i></a></td>
197+
<td class="wrap-strings"><a href="{{ ref.url }}" target="_blank">{{ ref.url }}<i class="fa fa-external-link fa_link_custom"></i></a></td>
198198
</tr>
199199
{% empty %}
200200
<tr>

vulnerabilities/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def get_object(self, queryset=None):
170170

171171
purl = self.kwargs.get(self.slug_url_kwarg)
172172
if purl:
173-
queryset = queryset.for_package_url(purl_str=purl)
173+
queryset = queryset.for_package_url(purl_str=purl, encode=False)
174174
else:
175175
cls = self.__class__.__name__
176176
raise AttributeError(

vulnerablecode-api-doc.png

-107 KB
Binary file not shown.

0 commit comments

Comments
 (0)