hidekuno / jvn Goto Github PK
View Code? Open in Web Editor NEWJVN infomation web application program
JVN infomation web application program
製品情報の制約を除外する
製品情報に登録されていない
ベンダー製品検索画面にて製品名のみで検索できるようにする
グラフ表示を改良するため
ベンダ、製品、脆弱性情報がモノリシックな実装になっているので、データメンテナンス
が容易にできない
2019-10-01 11:31:37,368 INFO merge_master() start.
2019-10-01 11:33:13,778 INFO merge_master() end.
問題のSQL
WITH upsert AS
(UPDATE jvn_product
SET pname = jvn_product_work.pname FROM jvn_product_work
WHERE jvn_product.cpe = jvn_product_work.cpe RETURNING jvn_product_work.cpe)
INSERT INTO jvn_product(pid,pname,cpe,vid,fs_manage,edit)
SELECT pid,pname,cpe,vid,'undefine',0
FROM jvn_product_work
WHERE cpe NOT IN (SELECT cpe FROM upsert);
MD5からBcryptへ変更するように検討する
ID単位でソートする
jvn_db=# \timing
タイミングは on です。
jvn_db=# EXPLAIN ANALYZE select * from jvn_vulnerability where title like 'WordPress%';
QUERY PLAN
-----------------------------------------------------------------------------------------------------------------------
Seq Scan on jvn_vulnerability (cost=0.00..8454.96 rows=3146 width=445) (actual time=0.097..41.324 rows=2318 loops=1)
Filter: (title ~~ 'WordPress%'::text)
Rows Removed by Filter: 107293
Total runtime: 41.541 ms
(4 行)
時間: 42.128 ms
jvn_db=#
エラーメッセージを、jvn_footer.j2に集約
2020/1でサポート切れになるので
古いデータの登録日を更新する
画面に条件を追加する
テーブル追加及びバッチ処理
製品メンテナンス後の件数とページングが乖離している
テンプレートファイルの拡張子を変更した際に(tpl->j2)、集計変更画面用のテンプレートファイルが
修正されていなかっった。
ソースのコメントアウトを標準スタイルに修正する
(#ー>”””)
is not bound to a Session; attribute refresh operation cannot proceed
DetachedInstanceError:
SQLAlchemyに書き換え
CWE 要因情報を追加する
2020-01-06 10:12:29,948 DEBUG URL = https://jvndb.jvn.jp/myjvn?feed=hnd&method=getVulnOverviewList&rangeDatePublic=n&rangeDatePublished=w&rangeDateFirstPublished=n&startItem=1&maxCountItem=50
Traceback (most recent call last):
File "/var/local/jvn_db_register.py", line 449, in <module>
api.download()
File "/var/local/jvn_db_register.py", line 33, in _
f(*arg)
File "/var/local/jvn_db_register.py", line 89, in download
self.jvn.do_logic(root)
File "/var/local/jvn_db_register.py", line 164, in do_logic
identifier = item.find(self.mod_sec_path('identifier')).text
AttributeError: 'NoneType' object has no attribute 'text'
クローズエラー
File "/var/local/jvn_plt_server.py", line 132, in makeLineChart
plt.close(fig)
NameError: name 'fig' is not defined
発見日と公表日のデータを表示する
依頼チェック、アカウント管理
⇩
メンテナンス
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.