Project

General

Profile

Actions

Bug #6644

closed

Non-trivial --deploy-path is Broken

Added by lm at about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
Start date:
09/28/2018
Due date:
% Done:

10%

Estimated time:
8:00 h

Description

For a working demonstration of the problem, see https://github.com/limitedAtonement/wtothererror currently at HEAD (71276bb). To use it, clone the project and do ./mkrun. You'll likely need to configure some things to make it work with your environment: staticresourcessrc in Makefile, LD_LIBRARY_PATH in resources/run, etc.

This is about as good a configuration as I have been able to come up with, but it still has a problem: requesting http://localhost:8080/app (no trailing slash) causes a segmentation fault.

Wt appears to expect information after the trailing slash of the deploy-path.

Actions #1

Updated by Roel Standaert about 6 years ago

  • Status changed from New to Resolved

Yeah, it's supposed to give you a 404 when you go to http://localhost:8080/app. I fixed that now.

Actions #2

Updated by Roel Standaert about 6 years ago

(Or rather: that's what Wt 3 does. I don't know what the best thing to do is there.)

Actions #3

Updated by lm at about 6 years ago

I know what I would do, and I would think any half-way sane webmaster would do the same: forward http://localhost:8080/app to http://localhost:8080/app/. It would be nice if wt would take care of this for us, but I've seen this behaviour elsewhere: https://en.cppreference.com/w/cpp/algorithm works, but https://en.cppreference.com/w/cpp/algorithm/ doesn't.

Thanks for correcting this!

Actions #4

Updated by Roel Standaert about 6 years ago

Yeah, it's one of those things that is often treated as if it's the same, but it isn't.

Actions #5

Updated by Roel Standaert almost 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF