3 apps are named 'chatRoomApp'

Garrett

New Member
The WCS comes preloaded with several "apps" that point to localhost. Three of these apps have their name configured to be 'chatRoomApp'. This makes updated/removing any of these three apps impossible, because it outputs the error, "exception: result returns more than one elements".

The three apps that are configured to have the name 'chatRoomApp' have appKeys of: roomApp, flashRoomApp, and chatRoomApp.

Is there any way to remove or update these apps?
 

Max

Administrator
Staff member
Currently you can't remove or update these apps.
But you can create your own copy of any of these apps.
1. Create a new app.
2. Update your newly created app and set the same parameters as used in existing apps.
Example:
Code:
show apps -d
add app testApp testApp http://localhost:9091/EchoApp
update app -l http://localhost:8888/EchoApp testApp
So you can setup your new app exactly as existing app.
 

Garrett

New Member
I understand how to create my own app, but I would like to remove the other ones for security reasons.
 

Max

Administrator
Staff member
We have fixed this in latest build 2211
If you update to this build, you will be able to remove or update app by appKey
Example:
Code:
remove app defaultApp
Code:
update app -n 'New App Name' defaultApp
So appKey is unique identifier now and you can update or remove using the unique appKey.

We have added unique constraint for App.appKey field in the database.
So you can't add app with the same appKey.
However to apply the constraint you have to cleanup existing db manually removing files from /usr/local/FlashphonerWebCallServer/database
The database will be re-created with defaults during first WCS restart.
 

Max

Administrator
Staff member
Code:
service webcallserver update
To update to the latest available build.
 
Top