Opened 8 years ago

Closed 6 years ago

#707 closed defect (fixed)

trying to open incorrect http URL creates file history entry

Reported by: Elaine Meng Owned by: Greg Couch
Priority: minor Milestone:
Component: Input/Output Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

I don't know if this is fixable, since although this generates a "not found" error, it is in the browser window, not like other command errors shown in the log. For example, command:

open http://www.rbvi.ucsf.edu/blah.html

adds an entry in the File History even though the file doesn't exist. The entry doesn't show up right away, but if you quit/restart (or hide/show Rapid Accdss) it is there.

Change History (3)

comment:1 by Tom Goddard, 8 years ago

Owner: changed from Tom Goddard to Greg Couch

The open command does not detect an error when the URL is bad and so it goes into the file history, and pops up the Help window showing "Not Found". I think this should cause a normal "open" command error (just like a missing local file) and not show the Help window.

comment:2 by Greg Couch, 8 years ago

HTML files are delegated to the help viewer to show. Which uses QWebEngine's setURL method to set the URL. That method does not return anything, so you can't synchronously tell if the URL loaded or not.

Need to investigate how to block until a URL is sucessfully loaded or fails.

comment:3 by Greg Couch, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed by fix for #706.

Note: See TracTickets for help on using tickets.