Issue With Context Path

14 views
Skip to first unread message

bro...@ociweb.com

unread,
Nov 8, 2016, 7:34:11 PM11/8/16
to Geb Development Mailing List
I am trying to fix https://github.com/grails/grails-core/issues/10306.  Part of that is a problem in Grails but as I fix the Grails problem I am stumbling into a problem that as far as I can tell is a problem in Geb.  The issue is that if I set geb.build.baseUrl to something like http://localhost:58615/abc and call "go '/def'" in the test, the request ends up going to http://localhost:58615/def (note that the context root has been dropped).  I think https://github.com/geb/geb/blob/fa05c94f114ffdff4c74f6348ff6e7c11cbd3d95/module/geb-core/src/main/groovy/geb/Browser.groovy#L965 is relevant.


Is this a bug in the Browser class?  Am I overlooking something?

Thanks for any feedback.

Marcin Erdmann

unread,
Nov 9, 2016, 2:23:37 AM11/9/16
to geb...@googlegroups.com
Hi Jeff,

I believe what you see is expected and documented here: http://www.gebish.org/manual/current/#base-url. I'm open for discussion if you believe this is not right.

Cheers,
Marcin
--
You received this message because you are subscribed to the Google Groups "Geb Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-dev+unsubscribe@googlegroups.com.
To post to this group, send email to geb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-dev/57b0f0ab-9e8f-4709-8100-744b3216687a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Brown

unread,
Nov 9, 2016, 9:46:06 AM11/9/16
to geb...@googlegroups.com
On November 9, 2016 at 2:03:10 AM, Marcin Erdmann
(marcin....@proxerd.pl) wrote:
> Hi Jeff,
>
> I believe what you see is expected and documented here:
> http://www.gebish.org/manual/current/#base-url. I'm open for discussion if
> you believe this is not right.
>
> Cheers,
> Marcin
>

I believe you are correct.

Thanks for the info!



JSB
--
Jeff Scott Brown
OCI Grails Practice Lead
Principal Software Engineer

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/
Reply all
Reply to author
Forward
0 new messages