[CLJ-912] clojure.java.browse/browse-url fails to open http://localhost:3000 with swing backend Created: 17/Jan/12 Updated: 12/Mar/12 Resolved: 12/Mar/12 |
|
| Status: | Closed |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | Release 1.3 |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Minor |
| Reporter: | Dmitri Naumov | Assignee: | Unassigned |
| Resolution: | Declined | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I've got the following exception after launching (clojure.java.browse/browse-url "http://localhost:3000"):
It works with urls like http://google.com:80, so probably the problem is in the combination of one-segment domen and port. Note: I use Ubuntu 11.10 with Chromium as a default browser. I'm not sure why browse-url fails to open urls via standart browser. Should I create another issue for that or is it a java problem? |
| Comments |
| Comment by Andy Fingerhut [ 29/Feb/12 1:38 PM ] |
|
Dmitri: CLJ-896 has a patch that changes browse-url to use the command line tool xdg-open instead of Java Swing. If the command: xdg-open http://localhost:3000 works on your system from the command line, then that patch will probably also make (browse-url "http://localhost:3000") work, too. I tried (browse-url "http://localhost:3000") on an Ubuntu 10.04 LTS system using Sun/Oracle's JVM 1.6.0_26, and it worked. Which JVM are you using? |
| Comment by Dmitri Naumov [ 12/Mar/12 1:09 PM ] |
|
I tried it again and now I can't reproduce it - browse-url works as expected and Swing gui also works when launched manually. I use openjdk, so maybe it was a problem with its classes? Anyway, the issue should be closed. |
| Comment by Andy Fingerhut [ 12/Mar/12 1:17 PM ] |
|
I'm not sure if this should be marked with a Resolution of Declined or Completed, if the issue cannot be reproduced. I'm picking Declined for this change. Feel free to change it if I've picked incorrectly. |
| Comment by Dmitri Naumov [ 12/Mar/12 1:24 PM ] |
|
Yeah, I also think Declined is correct. |