| Summary: | icon urls should be encoded | ||
|---|---|---|---|
| Product: | [Technology] MPC | Reporter: | Benjamin Muskalla <b.muskalla> |
| Component: | wizard | Assignee: | Nathan Gervais <nathan> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | greensopinion, nathan |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Benjamin Muskalla
Sorry if this is obvious, but what do you mean by encode? http://php.net/manual/en/function.htmlspecialchars.php Would this help? Sorry for the confusion: I think we should encode the url to eleminate non-conform chars like whitespaces (eg. " " -> %20) Given the url: http://marketplace.eclipse.org/sites/default/files/eclipse-color-theme-logo-mp (1).png Should to be: http://marketplace.eclipse.org/sites/default/files/eclipse-color-theme-logo-mp%20(1).png For PHP, I'm pretty sure that http://php.net/manual/en/function.urlencode.php is what you're searching for. Thanks for clearing that up <image> tags now appear like <image><![CDATA[http://marketplace.eclipse.org/sites%2Fdefault%2Ffiles%2Feclipse-color-theme-logo-mp%20%281%29.png]]></image> http://marketplace.eclipse.org/content/eclipse-color-theme/api/p for reference. It seems this is encoded a little too much :) http://marketplace.eclipse.org/sites%2Fdefault%2Ffiles%2Feclipse-color-theme-logo-mp%20%281%29.png is not a valid url anymore (see http://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes). This would also potentially break marketplace clients. Nathan, I'd recommend to revert the changes and I'll try to solve this on the client-side. The server should be providing valid URLs (invalid characters should be encoded). (In reply to comment #5) > The server should be providing valid URLs (invalid characters should be > encoded). Would one of you mind looking at the current data sent back and let me know if there are other url fields that are returning the right data you expect? Please ignore my last comment. I believe I've found a solution for this. http://marketplace.eclipse.org/content/eclipse-color-theme/api/p Yep, url look sane now. Image of the Eclipse Color Theme appears correctly in MPC. Thanks Nathan. Will consider this as fixed. *** Bug 310045 has been marked as a duplicate of this bug. *** |