Wirecloud / wirecloud

Widgets Container and Mashup edition tools. Reference implementation of the FIWARE Application Mashup GE
https://wirecloud.rtfd.io/
Other
60 stars 45 forks source link

Error 'Unexpected response from server' when opening a workspace in Workspace Browser #508

Open fisuda opened 3 years ago

fisuda commented 3 years ago

I encountered the 'Unexpected response from server' error when opening a workspace in the Workspace Browser. This is because the workspace has an empty name. The name of the workspace structure will be empty when renaming a workspace name to a name that consists only of multibyte characters.

GET /api/workspace/32

{
  "id": "32",
  "name": "",
  "title": "\uff37\uff49\uff52\uff45\uff23\uff4c\uff4f\uff55\uff44",
  "public": false,
  "shared": false,
  "requireauth": false,
  "owner": "admin",
  "removable": true,
  "lastmodified": 1624743022724,
  "description": "",
  "longdescription": "",

   ...ETC...

}

You can reproduce this issue by renaming a workspace name to WireCloud.

The name of the tab structure will be empty when renaming a tab name to a name that consists only of multibyte characters.

curl -sS http://wirecloud/api/workspace/32 | jq '.tabs | map({id: .id, name: .name, title: .title})'
[
  {
    "id": "35",
    "name": "タブ",
    "title": "タブ"
  },
  {
    "id": "37",
    "name": "2",
    "title": "WireCloud2"
  },
  {
    "id": "38",
    "name": "3",
    "title": "WireCloud3"
  },
  {
    "id": "39",
    "name": "",
    "title": "WireCloud"
  }
]

WireCloud version

{
  "ApplicationMashup": "2.2",
  "ComponentManagement": "1.0",
  "DashboardManagement": "1.0",
  "FIWARE": "7.7.1",
  "FullscreenWidget": "0.5",
  "NGSI": "1.4.0rc1",
  "ObjectStorage": "0.5",
  "StyledElements": "0.11.0",
  "Wirecloud": "1.4.0a1"
}

Google Chrome 91.0.4472.114