Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 274739

Summary: [transport] Typo in RepositoryStatus causes unknown status codes to cause bad message
Product: [Eclipse Project] Equinox Reporter: Henrik Lindberg <henrik.lindberg>
Component: p2Assignee: Henrik Lindberg <henrik.lindberg>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 Flags: henrik.lindberg: review? (john.arthorne)
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix of problem none

Description Henrik Lindberg CLA 2009-05-02 20:00:43 EDT
There is a typo in RepositoryStatus ( a + instead of a , ) thus concatenating a message argument to the message format string instead of using it as a parameter. This causes the error message to have the text "<missing argument>" included.

This happens if a server returns a non official HTTP status code.
Comment 1 Henrik Lindberg CLA 2009-05-02 20:04:17 EDT
Created attachment 134164 [details]
Fix of problem

Patch that corrects the issue. (A one char substitution).
Comment 2 Henrik Lindberg CLA 2009-05-02 20:47:30 EDT
This small change is merged with small change in 274610 - also a HTTP code translation error.

*** This bug has been marked as a duplicate of bug 274610 ***