[ 
https://jira.nuxeo.org/browse/NXP-4847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=70973#action_70973
 ] 

Anahide Tchertchian commented on NXP-4847:
------------------------------------------

Seems problem comes from virtual hosting management in Resources.java, the 
following patch fixes it:

--- a/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/ui/Resources.java
+++ b/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/ui/Resources.java
@@ -34,11 +34,6 @@
         final String basepath = params.get("basepath");
         String nxthemeBasePath = basepath;
 
-        if (virtualHosting) {
-            resourcePath = path + "/nxthemes-lib/";
-            nxthemeBasePath = path;
-        }
-
         final ResourceManager resourceManager = Manager.getResourceManager();
 
         final StringBuilder combinedStyles = new StringBuilder();

=> what case is this supposed to handle? Here it "path" is "/nuxeo/" and 
basepath is "/nuxeo/site" => "site" gets lots in the way when boolean 
virtualHosting is set to true.

> Fix theme editor when using apache redirection
> ----------------------------------------------
>
>                 Key: NXP-4847
>                 URL: https://jira.nuxeo.org/browse/NXP-4847
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>    Affects Versions: 5.3 GA
>            Reporter: Anahide Tchertchian
>            Assignee: Anahide Tchertchian
>             Fix For: 5.3.1
>
>
> When using a simple apache configuration, theme editor is not behaving 
> correctly, producing a "page not found" error in a javascript popup when 
> trying to edit a fragment (for instance).
> Error is not visible when loading the theme editor, it becomes apparent when 
> trying to edit the theme.
> Steps to reproduce:
> - install apache2
> - setup proxy and proxy_http modes (a2enmod proxy, a2enmod proxy_http)
> - setup redirection:
> <VirtualHost *:80>
> ProxyVia On
> ProxyRequests Off
> #RewriteEngine On
> ProxyPass /nuxeo/ http://127.0.0.1:8080/nuxeo/
> ProxyPassReverse /nuxeo/ http://127.0.0.1:8080/nuxeo/
> </VirtualHost>
> Looking at the html source, the base path for theme is wrong:
> var nxthemesBasePath = "/nuxeo";
> instead of 
> var nxthemesBasePath = "/nuxeo/site";

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to