Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board details broken in 1.2.6 and 1.3.2 #2951

Closed
jeltevdw opened this issue Apr 7, 2021 · 9 comments · Fixed by #2964
Closed

Board details broken in 1.2.6 and 1.3.2 #2951

jeltevdw opened this issue Apr 7, 2021 · 9 comments · Fixed by #2964

Comments

@jeltevdw
Copy link

jeltevdw commented Apr 7, 2021

Describe the bug
Its no longer possible to open the bord details. It keeps on loading. Issue is only seen after upgrading from v1.2.5 to v1.2.6

To Reproduce
Steps to reproduce the behavior:

  1. Login and Go to https://mycloud.domain.com/apps/deck/
  2. Click on the 3 dots on the right of a bord name and click on 'Bord details'
  3. Bord details are not loaded, screen is stuck at 'loading'

Expected behavior
Bord details are shown

Screenshots

Client details:

  • OS: Mac OS 11.2.3
  • Browser: Safari & Firefox (tested on both)
  • Version : Safari on 14.0.3 & Firefox on 87.0
  • Device: MacBook Pro

Nextcloud version:

  • Nextcloud version: 20.0.8
  • Deck version: v1.2.6

Also reproduced on:

  • Nextcloud version: 21.0.0
  • Deck version: v1.3.2

Browser log

[Error] Failed to load resource: the server responded with a status of 400 () (NaN, line 0)
[Error] Error: Request failed with status code 400
	(anonieme functie) (main.js:2203:21988)
	c (collections.js:459:33325)
	(anonieme functie) (collections.js:459:33075)
	ln (main.js:2203:20121)
	s (main.js:2203:22212)
	promiseReactionJob
[Error] TypeError: null is not an object (evaluating 'this.board.id') — main.js:2203:21378
	(anonieme functie) (main.js:2257:623)
	Gt (main.js:915:11477)
	$t (main.js:915:11191)
	(anonieme functie) (main.js:915:35346)
	r (main.js:915:64449)
	(anonieme functie) (main.js:915:26615)
	(anonieme functie) (main.js:915:27498)
	un (main.js:915:25606)
	(anonieme functie) (main.js:915:12298)
	Zt (main.js:915:11738)
	promiseReactionJob
@juliushaertl
Copy link
Member

[Error] Failed to load resource: the server responded with a status of 400 () (NaN, line 0)

Anything in your Nextcloud log about that?

@jeltevdw
Copy link
Author

jeltevdw commented Apr 8, 2021

Hi,

Yes sorry, I should have included the nextcloud.log as well. Log is taken on NextCloud 21.0.0 with app version v 1.3.2 as this is my current test environment. I did already rollback on my production environment on NextCloud 20.0.8.

Issue is that its sending an Ajax request without Board Id present:

Ajax call
URL: https://***/apps/deck/boards/NaN
Status: 400
Initiator:
main.js:954:103413

Nextcloud.log

{
  "reqId": "rADSqGwVc67PWkTUfGwj",
  "level": 3,
  "time": "2021-04-08T06:17:40+00:00",
  "remoteAddr": "x.x.x.x",
  "user": "xxxx",
  "app": "deck",
  "method": "GET",
  "url": "/apps/deck/boards/NaN",
  "message": {
    "Exception": "OCA\\Deck\\BadRequestException",
    "Message": "board id must be a number",
    "Code": 0,
    "Trace": [
      {
        "file": "/opt/nextcloud-test/apps/deck/lib/Controller/BoardController.php",
        "line": 57,
        "function": "find",
        "class": "OCA\\Deck\\Service\\BoardService",
        "type": "->",
        "args": [
          "NaN"
        ]
      },
      {
        "file": "/opt/nextcloud-test/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 218,
        "function": "read",
        "class": "OCA\\Deck\\Controller\\BoardController",
        "type": "->",
        "args": [
          "NaN"
        ]
      },
      {
        "file": "/opt/nextcloud-test/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 127,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Deck\\Controller\\BoardController"
          },
          "read"
        ]
      },
      {
        "file": "/opt/nextcloud-test/lib/private/AppFramework/App.php",
        "line": 157,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Deck\\Controller\\BoardController"
          },
          "read"
        ]
      },
      {
        "file": "/opt/nextcloud-test/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Deck\\Controller\\BoardController",
          "read",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "boardId": "NaN",
            "_route": "deck.board.read"
          }
        ]
      },
      {
        "file": "/opt/nextcloud-test/lib/base.php",
        "line": 993,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/deck/boards/NaN"
        ]
      },
      {
        "file": "/opt/nextcloud-test/index.php",
        "line": 37,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/opt/nextcloud-test/apps/deck/lib/Service/BoardService.php",
    "Line": 172,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15",
  "version": "21.0.0.18"
}

@woolmilkpigs
Copy link

woolmilkpigs commented Apr 8, 2021

Having the same issue on NextCloud 21.0.0 with app version v1.3.2 on Windows 10 with Chrome (89.0.4389.114). The error didn't occur with the previous version (v1.3.1 I assume).

@osm-frasch
Copy link

osm-frasch commented Apr 9, 2021

Confirm. I can see the same problem here.
Since yesterday's update to version 1.2.6,
no one in our education center can access the deck details.

Nextcloud version 20.0.8 (PhP: Version: 7.3.16).
Testet with Browsers Firefox/Chrome (latest Version) on Win10 and Linux Systems

Maybe this helps:

GET | xxxxxxx/index.php/apps/deck/boards/NaN

Status: 400
Bad Request
Version: HTTP/2
Übertragen: 817 B (52 B Größe)
Referrer Policyno-referrer

Error: Request failed with status code 400
    exports createError.js:16
    exports settle.js:17
    onreadystatechange xhr.js:62
    exports xhr.js:37
    exports xhr.js:13
    exports dispatchRequest.js:52
    promise callback*c.prototype.request Axios.js:61
    t Axios.js:76
    exports bind.js:9
    value BoardApi.js:129
    n main.js:335
    c runtime.js:45
    _invoke runtime.js:274
    t runtime.js:97
    V main.js:1644
    a main.js:1644
    Z main.js:1644
    Z main.js:1644
    loadBoardById main.js:331
    g vuex.esm.js:851
    dispatch vuex.esm.js:516
    dispatch vuex.esm.js:406
    t Board.vue:134
    c runtime.js:45
    _invoke runtime.js:274
    t runtime.js:97
    ln main.js:2182
    a main.js:2182
    fetchData main.js:2182
    fetchData main.js:2182
    fetchData main.js:2182
    created Board.vue:128
    VueJS 3
Board.vue:137
TypeError: this.board is null
    stacksByBoard Board.vue:112
    VueJS 3
    isEmpty Board.vue:118
    VueJS 3
    An Board.vue:1
    VueJS 14
    t Board.vue:139
    c runtime.js:45
    _invoke runtime.js:274
    t runtime.js:97
    ln main.js:2182
    s main.js:2182
    promise callback*ln main.js:2182
    a main.js:2182
    fetchData main.js:2182
    fetchData main.js:2182
    fetchData main.js:2182
    created Board.vue:128
    VueJS 25
    init vue-router.esm.js:2932
    init vue-router.esm.js:2931
    updateRoute vue-router.esm.js:2352
    transitionTo vue-router.esm.js:2206
    confirmTransition vue-router.esm.js:2340
    r vue-router.esm.js:1944
    r vue-router.esm.js:1951
    r vue-router.esm.js:1951
    r vue-router.esm.js:1951
    r vue-router.esm.js:1951
    yt vue-router.esm.js:1955
    confirmTransition vue-router.esm.js:2455
    r vue-router.esm.js:1944
    r vue-router.esm.js:1948
    f vue-router.esm.js:2322
    Tt vue-router.esm.js:2105
    f vue-router.esm.js:2300
    r vue-router.esm.js:1947
    r vue-router.esm.js:1951
    r vue-router.esm.js:1951
    r vue-router.esm.js:1951
    yt vue-router.esm.js:1955
    confirmTransition vue-router.esm.js:2330

@Woody2209

This comment has been minimized.

@cabelodomato

This comment has been minimized.

@stefan-niedermann
Copy link
Member

stefan-niedermann commented Apr 11, 2021

Please use GitHub reactions 👍 to show that you are affected by the same issue. Please don't comment if you have no relevant information (like new version constellations) to add.

(Everybody gets spammed with E-Mails and the issue will be incredibly hard to read.)

As a workaround one can use the Deck Android app to manage the boards until this bug has been fixed .

@siripong-t

This comment has been minimized.

juliushaertl added a commit that referenced this issue Apr 12, 2021
Signed-off-by: Julius Härtl <jus@bitgrid.net>
backportbot-nextcloud bot pushed a commit that referenced this issue Apr 12, 2021
Signed-off-by: Julius Härtl <jus@bitgrid.net>
backportbot-nextcloud bot pushed a commit that referenced this issue Apr 12, 2021
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@grinapo
Copy link

grinapo commented Apr 13, 2021

Also a surprising workaround: there is an invisible icon in the top right corner (next to the +, filter and three dot) which opens the details without problems.

@stefan-niedermann stefan-niedermann changed the title Bord details broken Board details broken in 1.2.6 and 1.3.2 Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants