Closed Bug 242123 Opened 21 years ago Closed 21 years ago

remote option parsing broken

Categories

(Core Graveyard :: X-remote, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: guenther, Assigned: blizzard)

References

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040421 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040421 The remote option as described in http://www.mozilla.org/unix/remote.html is broken in 1.7rc1. As the document mentions, a space after the "," should work -- and actually it did at least until 1.6. Reproducible: Always Steps to Reproduce: This one fails: $ mozilla -remote 'openURL('http://mozilla.org', new-tab)' Error: Failed to send command: 509 internal error This works: $ mozilla -remote 'openURL('http://mozilla.org',new-tab)' Setting the Severity to 'major', as this will break a lot of scripts out there. This definitely should be resolved before 1.7 gets released.
The fact that you are using doubly nested single quotations is probably a bad idea. That is most certainly NOT the documented behavior (there are no quotation marks surrounding the URI string).
Whiteboard: INVALID?
Actually, this does not matter and is not the issue. This one fails: $ mozilla -remote 'openURL(http://mozilla.org, new-tab)' Error: Failed to send command: 509 internal error This works: $ mozilla -remote 'openURL(http://mozilla.org,new-tab)'
Whiteboard: INVALID?
Attached patch patchSplinter Review
This moves the url check until after optional arguments are stripped. (It's barfing on a space in the middle of a url.)
Attachment #147694 - Flags: superreview?(bryner)
Attachment #147694 - Flags: review?(darin)
Comment on attachment 147694 [details] [diff] [review] patch r=darin
Attachment #147694 - Flags: review?(darin) → review+
Attachment #147694 - Flags: superreview?(bryner) → superreview+
Checked in. Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Just installed Mozilla 1.7rc2 and tested this issue. Unfortunately this bug still is valid in the 2004-05-14 build. Didn't the patch made it into the rc2 release or should I reopen the bug?
need to check this in on the aviary branch.
Whiteboard: needed-aviary1.,0
Whiteboard: needed-aviary1.,0 → needed-aviary1.0
Reopening. As I mentioned before, RC2 still had this bug, as does official 1.7 release. Comment #2 still applies with the very same error.
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Comment on attachment 147694 [details] [diff] [review] patch This got checked in to trunk only, not to the branch. It would probably be nice to push on the branch though.
Attachment #147694 - Flags: approval1.7.1?
Comment on attachment 147694 [details] [diff] [review] patch a=mkaply for 1.7.1
Attachment #147694 - Flags: approval1.7.1? → approval1.7.1+
I checked this in on the Aviary branch. leaving the bug open in case you wanted it that way for checking into the 1.7 branch.
Keywords: fixed-aviary1.0
Whiteboard: needed-aviary1.0
Checked in on the 1.7 branch. Marking fixed.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
*** Bug 252024 has been marked as a duplicate of this bug. ***
*** Bug 229681 has been marked as a duplicate of this bug. ***
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: