Archive for the ‘Support Bulletins’ Category

How to Embed External Webpages into Polarion Wiki

Tuesday, March 31st, 2009 by Tim Stroebele

Sometimes you may want to embed other web pages into a polarion wiki page. This may be the case if you want to

  • embed existing wiki pages of other wiki systems you are currently using
  • embed pages of your intranet
  • embed exisiting web 2.0 application like mind mapper, drawing tools or whiteboarding tools

Please find below some example wiki code snipplets using the <iframe> </iframe> command

Embedding a wiki page e.g. from wikipedia
<iframe src=”http://en.wikipedia.org/wiki/Main_Page” width=”100%” height=”500″</iframe>

Mind Mapping with http://www.text2mindmap.com
<iframe src=”http://www.text2mindmap.com/” width=”100%” height=”500″</iframe>

Mind Mapping with http://bubbl.us
<iframe src=”http://bubbl.us/edit.php” width=”100%” height=”500″</iframe>

Mockups with Balsamiq (commercial) http://www.balsamiq.com
<iframe src=”http://www.balsamiq.com/demos/mockups/Mockups.html” width=”100%” height=”600″</iframe>

Drawing Charts with http://www.mxgraph.com
<iframe src=”http://www.mxgraph.com/demo/mxgraph/editors/workfloweditor.html” width=”100%” height=”500″</iframe>

Best Wishes
Tim

How to Open up Polarion to External Customers

Friday, August 8th, 2008 by Tim Stroebele

The described scenario assumes you want to open Polarion ALM to external customers or suppliers

If you are just running a Polarion ALM instance that is directly accessible from the Internet you also expose your Subversion repository , confidential content is accessible from outside.

Actually the Subversion repository is already protected by the access file, but it is easy to expose content by mistake.

This blog describes an approach to open Polarion ALM to external customers and avoid the risk described above.

Internal users access Polarion ALM directly from inside the internal network. The change will be transparent for them.

External users access Polarion ALM via a proxy provided by Apache. This proxy will forward safe requests only which don’t reveal internal content of your repository, even if Subversion’s access file is not configured to hide that information.

Polarion and Apache Proxy

Basic configuration of the proxy
The basic configuration of the Apache running the proxy is quite simple.

Adding the following lines to the default configuration is sufficient (replace <polarion-server> with the URL of your Polarion server):
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
ProxyPass /polarion <polarion-server>/polarion
ProxyPassReverse /polarion <polarion-server>/polarion

With this configuration all requests to <external-server>/polarion will be passed to <internal-server>/polarion. Please make sure that the Firewall grants access from external-server to internal-server on port 80.

Securing the Proxy
With this configuration an external user could still access files in the repository. Actually, it is not that bad, as the user has to know the exact path of the file he tries to access.

Following line closes this possibility:
ProxyPass /polarion/webdav !

Unfortunately this configuration has a disadvantage: It will also disable access to LiveDocuments using Word and Excel for the external users.

Re-enabling access to Attachment
Disabling all access to the repository also prevents users from downloading attachments.

To enable download of attachments, the /svnwebclient/fileDownload.jsp URL has to be forwarded to the internal server.

Add following lines to the configuration of your Apache acting as proxy:
ProxyPass /svnwebclient/fileDownload.jsp <polarion-server>/svnwebclient/fileDownload.jsp
ProxyPassReverse /svnwebclient/fileDownload.jsp <polarion-server>/svnwebclient/fileDownload.jsp

Doing that without any additional precautions is risky: Again, the access of the external user to files in the repository is only restricted by the access configuration.

An additional layer of security can be implemented by restricting the parameters of the URL to only allow download of files inside the project(s) the external user is able to access. This is achieved by using mod_rewrite to redirect every forbidden access to a nonexistent URL.

Add following lines to your configuration:
LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/svnwebclient/fileDownload.jsp$
RewriteCond %{QUERY_STRING} !^.*&url=<project-location>
RewriteRule .* /nonexistent

<project-location> has to be replaced with the location of the project in the repository, all slashes (/) in have to be replaced with %2F and a %2F should be appended at the end.

Example:
Assuming you want to expose Library project from the Polarion demo-data and your internal Polarion server has the URL http://polarion.

You can get the location of the project from the Overview Topic of the project.

The location is Demo%20Projects/demolibrary, the string to use is Demo%20Projects%2Fdemolibrary%2F

The resulting configuration to use for the proxy is:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
ProxyPass /polarion http://polarion/polarion
ProxyPassReverse /polarion http://polarion/polarion
ProxyPass /polarion/webdav !
ProxyPass /svnwebclient/fileDownload.jsp http://polarion/svnwebclient/fileDownload.jsp
ProxyPassReverse /svnwebclient/fileDownload.jsp http://polarion/svnwebclient/fileDownload.jsp
LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/svnwebclient/fileDownload.jsp$
RewriteCond %{QUERY_STRING} !^.*&url=Demo%20Projects%2Fdemolibrary%2F
RewriteRule .* /nonexistent

Best Wishes
Benjamin

Log-Rotation for Apache

Sunday, July 13th, 2008 by Tim Stroebele

The following statement will enable log rotation for Apache. The command is specified for installation in a Windows system. Please check paths for you own installation.
CustomLog “|C:/Polarion3.1.1/bundled/apache_2.0.59/bin/rotatelogs.exe C:/Polarion3.1.1/data/logs/apache/access.log 60″ common

Log rotation works by a pipe to the rotatelogs.exe, which itself can be configured to rotate logs by time or by size. Try rotatelogs -? to get help.

The given statement is suitable for the access log file, which receive most of the log output. Look for further log configuration in httpd.conf and adopt them appropriately to rotate all Apache log files.

Best Wishes
Matthias

Hibernation of Windows and Polarion

Thursday, May 15th, 2008 by Tim Stroebele

When you run Polarion for a while and want to hibernate your computer, sometimes you get the message “Insufficient System Resources Exist to Complete the API”. This is typical the case on computers where you develop customizations for Polarion. The problem will not occur on servers, since they will normally never hibernate.
This problem occurs because the Windows kernel power manager cannot obtain the memory resources that are required to prepare the computer to hibernate.
Polarion utilizes a lot of memory and the garbage collector gives it back to the operating system . Then the main memory gets cluttered and the hibernation fails. There is a hotfix available from Microsoft, which can be downloaded. Just look up the article “KB909095”.

Best Wishes
Matthias

Fix Pre-existing Workflow Configurations in 3.1.0

Wednesday, April 16th, 2008 by Robert Palomo

SUPPORT BULLETIN
Since at least v. 2.0.1 Polarion has had a mistake in the default workflow configuration. In the Reopen action, one of the parameters of a workflow function (valid.states) has a status value "opened" as shown in the following code example:

<action id="reopen" name="Reopen">
    <cleared>
        <field name="resolution"/>
        <field name="resolvedOn"/>
    </cleared>

    <functions>
        <function name="LinkedWorkItemsStatusChange">
            <param name="back.link.roles" value="depends_on"/>
            <param name="link.roles" value="parent"/>
            <param name="valid.states" value="opened,inprogress,reopened"/>
            <param name="target.state" value="reopened"/>
            <param name="clear.attribs" value="resolution,resolvedOn"/>
        </function>
    </functions>
</action>

The correct word is “open”, and this has been changed in version 3.1. If you are upgrading to that version and have an existing workflow configuration form any older version, you should check both you global configuration and any project configurations that may have been based on the default global configuration (which contained the error), and fix the configuration(s) as follows:

<action id="reopen" name="Reopen">
    <cleared>
        <field name="resolution"/>
        <field name="resolvedOn"/>
    </cleared>

    <functions>
        <function name="LinkedWorkItemsStatusChange">
            <param name="back.link.roles" value="depends_on"/>
            <param name="link.roles" value="parent"/>
            <param name="valid.states" value="open,inprogress,reopened"/>
            <param name="target.state" value="reopened"/>
            <param name="clear.attribs" value="resolution,resolvedOn"/>
        </function>
    </functions>
</action>

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.