SpiderKeeper icon indicating copy to clipboard operation
SpiderKeeper copied to clipboard

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

Open kalombos opened this issue 8 years ago • 0 comments

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.

kalombos avatar Oct 06 '17 09:10 kalombos