login button

Service editor uses service name to generate name of file

Forums :

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Ganesh, I'm afraid this

Hi Ganesh,

I'm afraid this is a known issue in the editor. It gets confused when the service name is changed using the annotation. We are working on it and this will hopefully get fixed in our next release.

Tyrell

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.