environSuite invalid character \"\\\\\" in host name

Bug #1585300 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Cheryl Jennings
1.25
Fix Released
Critical
Cheryl Jennings

Bug Description

As seen in
    http://reports.vapour.ws/releases/issue/57448b86749a564672a442fe

environSuite tests report invalid character \"\\\\\" in host name.

Many tests in this suite failed like this

environ_whitebox_test.go:755:
    // Since there are no nodes, the attempt to allocate one returns a
    // 409: Conflict.
    c.Check(err, gc.ErrorMatches, ".*409.*")
... error string = "invalid default tools URL file://c:\\users\\admini~1\\appdata\\local\\temp\\tmptuup2o\\gogo\\tmp-juju-testutzsnv\\check-8674665223082153551\\14/tools: parse file://c:\\users\\admini~1\\appdata\\local\\temp\\tmptuup2o\\gogo\\tmp-juju-testutzsnv\\check-8674665223082153551\\14/tools: invalid character \"\\\\\" in host name"
... regex string = ".*409.*"

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Incomplete
tags: added: ci regression test-failure unit-tests windows
Curtis Hovey (sinzui)
tags: added: blocker
Revision history for this message
Curtis Hovey (sinzui) wrote :

This is not a dupe because the issue is in still happening as shown in
    http://reports.vapour.ws/releases/issue/57448b86749a564672a442fe

Revision history for this message
Horacio Durán (hduran-8) wrote :

I clearly missed something when backporting the previous fix.

This is caused by people concatenating strings by hand for file uris

Look for "file:///" + somePath + "/something else"

Revision history for this message
Anastasia (anastasia-macmood) wrote :

Similar approach to https://github.com/juju/juju/pull/5395/files needs to be taken for all occurrences where paths are specified.

Revision history for this message
Cheryl Jennings (cherylj) wrote :
Revision history for this message
Cheryl Jennings (cherylj) wrote :
tags: removed: blocker
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Do we still have this on master or is it no longer valid?

affects: juju-core → juju
Changed in juju-core:
assignee: nobody → Cheryl Jennings (cherylj)
importance: Undecided → Critical
status: New → Fix Released
no longer affects: juju
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.