Win: Generation of paths in the CSS

Bug #920938 reported by freeExec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
High
Unassigned

Bug Description

The windows system uses a forward slash "\" to separate directories in linux using a backslash "/".
The result is that the output is CSS like:

.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(\web\static\lib\jquery.ui\css\smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png)

Then, when this line comes as a GET-request is perceived as a sequence of ESC.
The final address by which we seek the file looks like - /addons/web/statis/webstaticlibjquery.uicsssmoothness/images/ui-bg_flat_0_aaaaaa_40x100.png

Workaround:
file: addons\web\controller\main.py
Class WebClient
def css
     def reader
               web_dir = os.path.dirname(web_path)
+ web_dir = web_dir.replace('\\', '/')

Related branches

Changed in openerp-web:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Issue should be fixed in trunk as of revision <email address hidden>

Absolutification of paths in CSS should now be performed correctly, using "/" as separators not filesystem separators.

Changed in openerp-web:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.