Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Platform: PC, OS: All
Description
When a build is triggered using the following code, an 404 error returns even
the build it triggered successfully.
String uri = "Hudson build page/build?token=build_me";
DocumentBuilder parser =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
URLConnection connection = new URL(uri).openConnection();
connection.connect();
InputStream is = connection.getInputStream();
Document document = parser.parse(is);
davehun, what web container do you use?
I just tried SJSAS 9_1_02 and I was able to see the problem.. looking into why
the "." gets appended on the redirect URL when running in SJSAS9. It does work
with wget, as wget appears to trim the trailing "." before following the
redirect.. but java takes the redirect as given and gets the 404.