| Summary: | [Shell] Shell assumes custom type parameters to be required | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Maciej Bendkowski <maciej.bendkowski> |
| Component: | Client | Assignee: | Grant Gayed <grant_gayed> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 4.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Maciej Bendkowski
getCommandString which converts the command invocation into a string representation has problems with handling null objects (default value for the appender type), and that's the root cause of the ugly response. I think part of the job has been solved in http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9702cfcec5858455bea5c8325f79efa8e339c24d. Grant, if you have any better solution, please notify me. (In reply to comment #2) > I think part of the job has been solved in > http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/ > ?id=9702cfcec5858455bea5c8325f79efa8e339c24d I think ideally the defaultValue value would not be null, because a defaultValue is supposed to be a valid instance for the parameter that it fills (so for a custom type, an object with values for "name" and "value"). Regardless, the change in your patch doesn't seem problematic, so it can stay. I think your case is now fixed with this change? (In reply to comment #3) > I think ideally the defaultValue value would not be null, because a > defaultValue is supposed to be a valid instance for the parameter that it > fills (so for a custom type, an object with values for "name" and "value"). > Regardless, the change in your patch doesn't seem problematic, so it can > stay. I think your case is now fixed with this change? Ideally I could define truly optional parameters without defining default values. It's more a flag than an optional parameter though. I've opened a separate bug for that some time ago: bug 413230. My patch fixes the initial problem and so if you're fine with it Grant, please close this bug. Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |