`oj dl -d` breaks the URL guessing
See original GitHub issueversion: online-judge-tools 0.1.55
oj submit fails URL guessing and always requires the passkey confirmation after downloading sample cases by using oj dl -d.
Steps to reproduce
oj dl https://atcoder.jp/contests/abc111/tasks/abc111_a -d test
oj s https://atcoder.jp/contests/abc111/tasks/abc111_a main.cpp
Expected behavior
Are you sure? [y/N]
Actual behavior
Are you sure? Please type "abca"
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Changelog - curl
url : rename function due to name-clash in Watt-32 · url: use IDN decoded names for HSTS checks · urlapi: detect scheme better...
Read more >Report - Investigation of the Challenger Accident - GovInfo
D. CREW SURVIVAL. Issue. Was the accident of STS 51-L on January 28, 1986, survivable? Finding. In the case of the tragic loss...
Read more >Lehninger Principles of Biochemistry, 4th Edition
Fifteen to twenty billion years ago, the universe arose as a cataclysmic eruption of hot, energy-rich sub- atomic particles. Within seconds, the simplest ......
Read more >TIP 57 Trauma-Informed Care in Behavioral Health Services
Kopstein, Ph.D., M.P.H., Karl D. White, Ed.D., and Christina Currier ... understand the link between the trauma and her relapse, regained support from...
Read more >Cause of Death and the Death Certificate
111110'1 WIP;TIQ,ll lh)wng t""' ~ClilY 00 NOT A88RE\IIATE ere tr ,c:nllJ ,tnt WUN en• I"" AO, .Oj~ inM I. _,. IMMl:OIA.TE CAUSE (F_.....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

-d testのときに限って特別扱いすればreproの例だけは回避できるけど、例外を増やしてまで対応することとは思えないのでしません。-yオプションを使ってください。 まあ-yを付けたくないから Issue が立ってるのに申し訳ないけどどうにもできません。いま online-judge-tools の内部をきちんとライブラリとして整備しようとしているので、これを待ってライブラリとして直接叩いて貰うのがあるべき形の解決策かなと思います。This tool doesn’t use
oj dl -d DIRto guess the problem to submit, as the expected behavior.Those who use
-doption probably use some unknown directory structure. The typical structure makes one directory for one contest.oj dl -d abc111_a URLfollowed byoj s URL abc111_b.pycan happen, so we must ignore thedownloadwith-doption.Also, I note that this is the feature to check mis-operations. This was important bug if it was false-negative, but this causes only flase-positive and is not important.