question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`oj dl -d` breaks the URL guessing

See original GitHub issue

version: 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kmykcommented, Feb 26, 2019

-d test のときに限って特別扱いすればreproの例だけは回避できるけど、例外を増やしてまで対応することとは思えないのでしません。-y オプションを使ってください。 まあ -y を付けたくないから Issue が立ってるのに申し訳ないけどどうにもできません。いま online-judge-tools の内部をきちんとライブラリとして整備しようとしているので、これを待ってライブラリとして直接叩いて貰うのがあるべき形の解決策かなと思います。

1reaction
kmykcommented, Feb 26, 2019

This tool doesn’t use oj dl -d DIR to guess the problem to submit, as the expected behavior.

Those who use -d option probably use some unknown directory structure. The typical structure makes one directory for one contest. oj dl -d abc111_a URL followed by oj s URL abc111_b.py can happen, so we must ignore the download with -d option.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found