gabrielPeart / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Gateway only matches with matcher at beginning of domain #407

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Setup gateway for your project
2.Do an relative AJAX call to a file in your application script
3.Log the error

Does work:
AJAX Call:/a/b/c.php
Matcher: {matcher: "/a/*", server: "localhost:8080/a/"}

Should work but doesn't:
AJAX Call: a/b/c.php
Matcher: {matcher: "a/*", server: "localhost:8080/a/"}

What version of the product are you using? On what operating system?
TestDriver 1.3.5 xubuntu 12.10

Please provide any additional information below.
When using relative paths the JSTD server appends dynamic paths to the URL. 
But the matcher requires that the text to match is exactly after the domain and 
can't be at the end of the url.
This makes using relative paths in applications impossible.

Example:
Matcher: {matcher: "/a/*", server: "localhost:8080/a/"}

Does not work:
localhost:9876/dynamic/jstd/paths/with/changing/ids/c/a/b/c.php

Works:
localhost:9876/a/b/c.php

Regards
Janosch

Original issue reported on code.google.com by babbsdre...@googlemail.com on 9 Nov 2012 at 2:05

GoogleCodeExporter commented 8 years ago

Original comment by corbinrs...@gmail.com on 9 Nov 2012 at 3:03