Filesystem Access from Scraper changed in Mashup Server 2.0.0?

jensomato's picture

Hi all,

I think the filesystem access of the scraper object changed since mashup server 1.5.2.
I used this configuration to access a stylesheet relative to <servicename>.resources folder.
In mashup server 2.0.0 the path is automatically converted to an absolute path with leading slash.
The only way to load files is to use complete absolute paths to file system resources. Is this change intentionally or a bug?

Thanks, Jens

    <config>
        <var-def name="url_of_site">
            {url}
        </var-def>
        <var-def name="stats">
            <xslt>
                <xml>
                    <html-to-xml>
                        <http method='get' url="${url_of_site}"/>
                    </html-to-xml>
                </xml>
                <stylesheet>
                    <file path="stylesheets/test.xsl"/>
                </stylesheet>
            </xslt>
        </var-def>
    </config>;

tyrell's picture

This looks like a bug. Let

This looks like a bug. I opened a JIRA so that we can track it https://wso2.org/jira/browse/MASHUP-1285 Tyrell
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)