Closed Bug 1338915 Opened 7 years ago Closed 7 years ago

Compression-related error message in type.py is trimmed when it shouldn't be

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

Here is some code from type.py:

if (mtype.compress and
    (not mtype.isAsync() or mtype.isCtor() or mtype.isDtor())):
    self.error(
        loc,
        "message `%s' in protocol `%s' requests compression but is not async or is special (ctor or dtor)",
        mname[:-len('constructor')], pname)

The message name |mname| is trimmed by the length of "constructor", but mname isn't necessarily a constructor: it can also be a non-async message or a delete message (a "destructor"). In those two cases, mname should not be trimmed.
Assignee: nobody → continuation
Comment on attachment 8837209 [details]
Bug 1338915 - Print a more specific message for invalid compression.

https://reviewboard.mozilla.org/r/112400/#review114130
Attachment #8837209 - Flags: review?(kchen) → review+
Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5839de2e4ec7
Print a more specific message for invalid compression. r=kanru
https://hg.mozilla.org/mozilla-central/rev/5839de2e4ec7
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Depends on: 1347527
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: