Published on WSO2 Oxygen Tank (http://wso2.org)

Service editor uses service name to generate name of file

By prasadgc
Created 2008-02-15 19:35

Hi,

I came across this bug today.

If you create a file called "a.js", and inside it define a function "a()" but annotate it as follows:

this.servicename = "b";

Then the service is displayed (correctly) by Mashup Server as "b".

However, if you then edit the service using the edit hyperlink and save your changes, it attempts to save it as a new file "b.js" and immediately complains that there is a duplicate definition for service "b".

I believe the system should keep track of the file from which the service definition came, and update that file, rather than assuming that the filename will always be the service name appended with a ".js".

Regards,

Ganesh


Source URL:
http://wso2.org/forum/thread/3237