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

404 error on /project//job/periodic url with apache2 server #43

Open
kalombos opened this issue Oct 6, 2017 · 0 comments
Open

404 error on /project//job/periodic url with apache2 server #43

kalombos opened this issue Oct 6, 2017 · 0 comments
Labels

Comments

@kalombos
Copy link
Contributor

kalombos commented Oct 6, 2017

I deployed spiderkeeper using apache and got 404 error when i opened /project//job/periodic url. It is url when you don't have any project and tries to go to other urls (periodic jobs in my case). It happens because you have these code:

@app.before_request
def intercept_no_project():
    if request.path.find('/project//') > -1:
        flash("create project first")
        return redirect("/project/manage", code=302)

But apache2 transform url /project//job/periodic to /project/job/periodic so redirect is not working. I think there should be another way to determine redirect instead of checking for double slash.

@DormyMo DormyMo added the bug label Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants