hackerkid / hackerkid/codejam-commandline

Relative paths ("../" or "~/") don't work in data_directory config

未关闭
#30 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
auto-migrated Priority-Medium Type-Defect
主要语言
Python
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

```
What steps will reproduce the problem?
1. Change the data_directory configuration value to "../src/"
2. Initialize the contest and try to download an input
3. Server returns a 302 error and no input is downloaded

What is the expected output? What do you see instead?
Expected to have the input file downloaded properly. Instead, ServerError
occurs, see the full output in the addl information section below

What version of the product are you using? On what operating system?
1.2 beta1
OSX 10.9.2

Please provide any additional information below.

Full shell output:
codejam-commandline-1.2-beta1 $ python2 gcj_download_input.py A small 0
-------------------------------------------------------------------------------
Small input for "A - Magic Trick" at "../src/2014/qual/A-small-0.in"
-------------------------------------------------------------------------------
Getting status of contest 2974486 from "code.google.com"...
200 OK, 584 bytes read from server (1017 uncompressed).
Getting user status at contest 2974486 from "code.google.com"...
200 OK, 103 bytes read from server (169 uncompressed).
Downloading practice input file.
Getting input file "../src/2014/qual/A-small-0.in" from "code.google.com"...
302 Found, 578 bytes read from server.
ServerError: Error while communicating with the server, cannot download input.
Check that the host, username and contest id are valid.

```

Original issue reported on code.google.com by `matted...@gmail.com` on 25 Apr 2014 at 3:16

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。