Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log refusal to serve hidden directories #5158

Merged
merged 2 commits into from Mar 4, 2014
Merged

Conversation

ivanov
Copy link
Member

@ivanov ivanov commented Feb 19, 2014

This PR originally addressed #5157, and was titled "serve hidden directories when explicitly requested".

Now it simply logs the refusal to serve hidden directories, but continues to serve 404 to the user as before.

@ivanov
Copy link
Member Author

ivanov commented Mar 3, 2014

Ok, with this PR, we now log the refusal to serve hidden directories, but continues to serve 404 to the user as before. The log message appears right above the 404 that it causes.

2014-03-03 12:34:44.183 [NotebookApp] Refusing to serve hidden directory, via 404 Error
2014-03-03 12:34:44.184 [tornado.access] WARNING | 404 GET /tree/.hello (127.0.0.1) 1.53ms referer=None

@ellisonbg
Copy link
Member

Hmm, I don't see how your changes could cause it, but there is a test failure on travis. I have restarted the tests, but this one is weird (not with the JS tests) and probably worth looking into.

@ivanov
Copy link
Member Author

ivanov commented Mar 3, 2014

looks like a real error on my part, fix incoming

is_hidden expects the file to actually exist, so I've rearranged the
logic such that is_hidden is called only after it's clear that the file
exists.
@ivanov
Copy link
Member Author

ivanov commented Mar 4, 2014

Ok, test suite passes now.

@ellisonbg
Copy link
Member

Looks good, thanks.

ellisonbg added a commit that referenced this pull request Mar 4, 2014
log refusal to serve hidden directories
@ellisonbg ellisonbg merged commit 4fd7768 into ipython:master Mar 4, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
log refusal to serve hidden directories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants