[ 
https://wso2.org/jira/browse/MASHUP-752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367#action_16367
 ] 

Keith Godwin Chapman commented on MASHUP-752:
---------------------------------------------

Jonathan the latest xslts are in the build. I see the following at lines 1164 
(I think this is your fix for the problem)

<xsl:template name="service-name-to-javascript-name">
    <xsl:param name="name"/>
    <xsl:if 
test="contains(',break,else,new,var,case,finally,return,void,catch,for,switch,while,continue,function,this,with,default,if,throw,delete,in,try,do,instanceof,typeof,abstract,enum,int,short,boolean,export,interface,static,byte,extends,long,super,char,final,native,synchronized,class,float,package,throws,const,goto,private,transient,debugger,implements,protected,volatile,double,import,public,null,true,false,',concat(',',$name,','))">_</xsl:if>
    <xsl:value-of select="translate($name,'.-','__')"/>
</xsl:template>


But when I deploy the following service named new.js, the try it does not work 
as yet. This is becase line 468 of the tryit page contains  if (preview) 
{return new.foo_payload();} This is causing the problem now.

function foo (){
  return "foo";
}
 

> Tryit crashes when the service is named as 'new.js'
> ---------------------------------------------------
>
>                 Key: MASHUP-752
>                 URL: https://wso2.org/jira/browse/MASHUP-752
>             Project: WSO2 Mashup Server
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: Nightly
>         Environment: WinXP, JDK1.5, IE7
>            Reporter: Yumani Ranaweera
>            Assignee: Jonathan Marsh
>             Fix For: 1.1
>
>
> Steps:
> -------
> 1. Create a new service from the admin console, with the name 'new'.
> 2. Access tryit of the service.
> Issue:
> -------
> The tryit is crashed. The endpoint refernce section cannot appear empty and 
> there's no way to invoke the service.

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

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to