Author Topic: Opengoo not working behind Proxy?  (Read 4953 times)

slimschedi

  • Newbie
  • *
  • Posts: 4
    • View Profile
Opengoo not working behind Proxy?
« on: November 16, 2009, 09:21:05 am »
Hi All!

I am having a problems with an Opengoo installation behind a DRAYTEK VIGOR 2950 Security Firewall Router (Firmware Vers. V3.2..4, 7th April 2009).

LINK: http://www.draytek.com/user/PdInfoDetail.php?Id=42

I am running Ubuntu 9.10 Server with Apache2, PHP 5, MYSQL 5.1 and Java 6. As web-browser I am using either Firefox 3.5.3 (Noscript disabled for localhost and webproxy address) or Safari 4.

Opengoo runs without any problem in the local network .... but as soon as I want to access via SSLproxy from the Internet following happens:

1) Login Screen appears and Login is successful.

2) Application Loading Screen comes up.

3) Application finishes loading after a little while but nothing appears in the main frame and left hand side column? Totally empty!

4) Navigation ICONS are loaded and properly displayed!

5) when I go to admin area blue links are displayed but NO images!???

Anyone an idea why the display is not working?

Thanks

Chris

slimschedi

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Opengoo not working behind Proxy?
« Reply #1 on: November 16, 2009, 11:56:38 am »
And I forgot using Opengoo 1.5.3 ..... debug mode is enabled(!)

slimschedi

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Opengoo not working behind Proxy?
« Reply #2 on: November 18, 2009, 10:10:47 am »
Debug mode on does not return any info for now ..... but in FIREFOX I get this warning log (see colored text) pretty at the end:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html>

<head>

        <!-- script src="http://www.savethedevelopers.org/say.no.to.ie.6.js"></script -->

        <title>LICA - OpenGoo</title>

        <link href="/cgi-bin/sslproxy/http://10.125.86.15/favicon.ico" rel="shortcut icon" />                        <meta http-equiv="content-type" content="text/html; charset=utf-8" /><link href="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/themes/default/stylesheets/website.css" rel="Stylesheet" type="text/css" />   </head>

<body id="body" >

 

<div id="loading">

        <img src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/themes/default/images/layout/loading.gif" width="32" height="32" style="margin-right:8px;" align="absmiddle"/>Loading...

</div>

 

<div id="subWsExpander" onmouseover="clearTimeout(og.eventTimeouts['swst']);" onmouseout="og.eventTimeouts['swst'] = setTimeout('og.HideSubWsTooltip()', 2000);" style="display:none;top:10px;"></div>

 

<script language='javascript' src='/JS/RP.js'></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/app.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/index.php?c=access&amp;a=get_javascript_translation"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/wztooltip/wz_tooltip.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/extjs/adapter/ext/ext-base.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/extjs/ext-all.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/extfix.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/Helpers.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/og.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/HttpProvider.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/GooProxy.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/QuickAdd.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/WorkspaceUtils.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/ExtendedDialog.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/Sound.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/LoginDialog.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/HtmlPanel.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/WorkspacePanel.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/TagPanel.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/TagMenu.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/ContentPanelLayout.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/ContentPanel.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/og/layout.js"></script>

<script type="text/javascript" src="/cgi-bin/sslproxy/http://10.125.86.15/public/assets/javascript/extjs/locale/ext-lang-en-min.js"></script>

<!-- header -->

<div id="header">

        <div id="headerContent">

            <table class="headerLogoAndWorkspace"><tr><td style="width:60px">

                       <div id="logodiv"></div>

               </td><td>

                       <div id="wsCrumbsWrapper">

                               <table><tr><td>

                                      <div id="wsCrumbsDiv">

                                              <div style="font-size:150%;display:inline;">

                                                     <a href="#" style="display:inline;line-height:28px" onclick="og.expandSubWsCrumbs(0)">All</a>

                                              </div>

                                      </div>

                               </td><td>

                                      <div id="wsTagCrumbs"></div>

                               </td></tr></table>

                       </div>

               </td></tr></table>

               <div id="userboxWrapper"><div id="userbox">

        Welcome back <strong>licainvest-admin</strong> (<a target="_self" href="/cgi-bin/sslproxy/http://10.125.86.15/index.php?c=access&a=logout">Logout</a>) :

         

                       <a class="internalLink" target="administration" href="/cgi-bin/sslproxy/http://10.125.86.15/index.php?c=administration&a=index">Administration</a> |

               <a class="internalLink" target="account" href="/cgi-bin/sslproxy/http://10.125.86.15/index.php?c=account&a=index">Account</a> |

        <a target="_blank" href="/cgi-bin/sslproxy/http://wiki.opengoo.org">Help</a>

</div></div>

               <div id="searchbox">

                       <form class="internalForm" action="/cgi-bin/sslproxy/http://10.125.86.15/index.php" method="get">

                               <table><tr><td>

                                                             <input onfocus="if (value == 'Search...') value = ''" onblur="if (value == '') value = 'Search...'" name="search_for" value="Search..." />                          </td><td id="searchboxSearch">

                               <button type="submit">Search</button>

                               </td><td style="padding-left:10px"><div id="quickAdd" style="padding-top:1px"></div></td></tr></table>

                               <input type="hidden" name="c" value="search" />

                               <input type="hidden" name="a" value="search" />

                               <input type="hidden" name="current" value="search" />

                               <input type="hidden" id="hfVars" name="vars" value="dashboard" />

                       </form>

               </div>

                       </div>

</div>

<!-- /header -->

 

<!-- footer -->

<div id="footer">

        <div id="copy">

                                      &copy; 2009 by LICA. All rights reserved                      </div>

        <div id="productSignature">Powered by <a target="_blank" href="/cgi-bin/sslproxy/http://www.OpenGoo.org/">OpenGoo 1.5.3</a>. <span class="benchmark_timer_brief">0.248s</span>. 6.43MB</div>

</div>

<!-- /footer -->

 

<script>

// OG config options

og.pageSize = 50;

og.timeFormat24 = 0;

og.hostName = 'http://10.125.86.15';

og.maxUploadSize = 2097152;

og.rememberGUIState = 0;

og.pollForEmail = 0;

og.initialWorkspace = '0';

og.initialURL = 'http://10.125.86.15/?active_project=0&c=access&a=index';

og.loggedUser = {

        id: 1,

        username: "licainvest-admin",

        displayName: "licainvest-admin",

        isAdmin: true};

og.hasNewVersions = false;

og.enableNotesModule = 1;

og.enableEmailModule = 1;

og.enableContactsModule = 1;

og.enableCalendarModule = 1;

og.enableDocumentsModule = 1;

og.enableTasksModule = 1;

og.enableWeblinksModule = 1;

og.enableTimeModule = 1;

og.enableReportingModule = 1;

og.daysOnTrash = 30;

og.showCheckoutNotification  = 0;

Ext.Ajax.timeout = 33000;

og.musicSound = new Sound();

og.systemSound = new Sound();

 

var quickAdd = new og.QuickAdd({renderTo:'quickAdd'});

 

setInterval(function() {

        og.openLink(og.getUrl('object', 'popup_reminders'), {

               hideLoading: true,

               hideErrors: true,

               preventPanelLoad: true

        });

}, 60000);

 

og.date_format = 'd/m/Y';

og.calendar_start_day = 0;

og.draftAutosaveTimeout = 60 * 1000;

 

og.loadEmailAccounts('view');

og.loadEmailAccounts('edit');

 

</script>

<script>

//some event handlers

og.eventManager.addListener('tag changed',

        function (tag){

               if (Ext.getCmp('tabs-panel').getActiveTab().id == 'tasks-panel') {

                       og.openLink('http://10.125.86.15/index.php?c=task&a=new_list_tasks',

                               {caller:'tasks-panel',

                               get:{tag:tag.name}}

                       );

               }

        }

);

og.eventManager.addListener('workspace changed',

        function (ws){

 

        }

);

 

og.eventManager.addListener('company added',

        function (company) {

               var elems = document.getElementsByName("contact[company_id]");

               for (var i=0; i < elems.length; i++) {

                       if (elems.tagName == 'SELECT') {

                               var opt = document.createElement('option');

                       opt.value = company.id;

                       opt.innerHTML = company.name;

                               elems.appendChild(opt);

                       }

               }

        }

);

 

og.eventManager.addListener('contact added from mail',

        function (obj) {

               var hf_contacts = document.getElementById(obj.hf_contacts);

               if (hf_contacts) hf_contacts.value += (hf_contacts != '' ? "," : "") + obj.combo_val;

               var div = Ext.get(obj.div_id);

               if (div) div.remove();

        }

);

 

og.eventManager.addListener('draft mail autosaved',

        function (obj) {

               var hf_id = document.getElementById(obj.hf_id);

               if (hf_id) hf_id.value = obj.id;

        }

);

 

og.eventManager.addListener('popup',

        function (args) {

               og.msg(args.title, args.message, 0, args.type, args.sound);

        }

);

 

og.eventManager.addListener('user config localization changed',

        function(val) {

               og.loadScripts([og.getUrl('access', 'get_javascript_translation')], {

                       callback: function() {

                               var spans = document.getElementsByName('og-lang');

                               for (var i=0; i < spans.length; i++) {

                                      var key = spans.id.substring(8);

                                      spans.innerHTML = lang(key);

                               }

                       }

               });

        }

);

 

og.eventManager.addListener('download document',

        function(args) {

               if(args.reloadDocs){

                       //og.openLink(og.getUrl('files', 'list_files'));

                       og.panels.documents.reload();

               }     

               location.href = __RP('/007E6E4D', 'http://10.125.86.15/',og.getUrl('files', 'download_file', ){id: args.id, validate:0});

        }

);

 

og.eventManager.addListener('config checkout_notification_dialog changed',

        function(val) {

               if (val == "true") {

                       og.showCheckoutNotification = true;

               } else {

                       og.showCheckoutNotification = false;

               }

        }

);

</script></body>

</html>

cluge

  • Freshman
  • *
  • Posts: 26
    • View Profile
Re: Opengoo not working behind Proxy?
« Reply #3 on: November 18, 2009, 09:08:18 pm »
What you describe would be expected behavior based on the fact that opengoo thinks that your URL internally is non secure - ie http://blah_blah_blah and locally that works.  Once going through the SSL proxy the domain is actually https://blah_blah_blah - but open goo doesn't know about the secure portion.

The easy way to fix this is to not proxy the SSL requests and use SSL provided by apache & openssl.  This means that opengoo access locally and remotely would be SSL encrypted.  You will to make a small change to your open goo config once you have SSL set up.

edit opengoo_home_dir/config/config.php and change ROOT_URL

Example: define('ROOT_URL', 'https://your_actual_domain_goes_here/opengoo')

Notice the HTTPS!

cluge

slimschedi

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Opengoo not working behind Proxy?
« Reply #4 on: November 20, 2009, 05:35:28 am »
@ cluge

Thank's!

Makes all sense what you say and me personally I would also go with your idea .... the problem is that the proxy setup is mandatory :-\

I have also filed a ticket to DrayTek .... so they are also taking a look at the problem ...
and I hope they will come up with some ideas on this.

Greetz
Chris

cluge

  • Freshman
  • *
  • Posts: 26
    • View Profile
Re: Opengoo not working behind Proxy?
« Reply #5 on: November 20, 2009, 07:58:44 pm »
>I have also filed a ticket to DrayTek

Ask if they can perform an https to https proxy (not a normal config).  That would fix your issue and you would use https internally as well as externally.

cluge