Potential issue with GDPR consent page ("export posts" crashes nodebb)

Solved Technical Support
  • #1

    Hi,

    My setup: Version: 1.9.2 (synced with master).

    Pressing "export uploaded content" creates an empty zip file - maybe the user should get a message instead? (anyway this is a minor issue)

    Pressing "export posts" crashes nodebb:
    error: TypeError: Cannot read property 'content' of null
    at /nodebb/src/controllers/user.js:122:32
    at Array.map (native)
    at /nodebb/src/controllers/user.js:121:20
    at /nodebb/node_modules/async/dist/async.js:1126:9
    at iteratorSymbol (/nodebb/node_modules/async/dist/async.js:473:16)
    at iteratorCallback (/nodebb/node_modules/async/dist/async.js:1050:13)
    at /nodebb/node_modules/async/dist/async.js:958:16
    at /nodebb/node_modules/async/dist/async.js:1123:13
    at iteratorSymbol (/nodebb/node_modules/async/dist/async.js:473:16)
    at next (/nodebb/node_modules/async/dist/async.js:5315:29)
    at /nodebb/node_modules/async/dist/async.js:958:16
    at /nodebb/src/posts.js:107:4
    at nextTask (/nodebb/node_modules/async/dist/async.js:5310:14)
    at next (/nodebb/node_modules/async/dist/async.js:5317:9)
    at /nodebb/node_modules/async/dist/async.js:958:16
    at fireFilterHook (/nodebb/src/plugins/hooks.js:114:11)

    Not sure how to go about fixing this...
    JJ.

  • GNU/Linux
    #2

    Latest master should fix the latter. For the former, perhaps you actually have no uploads mapped to your user? What do you see in the uploads page in your user profile?

  • #3

    Its working perfectly now thank you so much!

    A comment is generated: "[user/export/uploads] Collating uploads for uid..." when pressing "export uploaded content". Not sure if this is left intentionally.

    Anyway, all good now thanks!

  • GNU/Linux
    #4

    @JJSagan Yes, that is normal, just an informative echo to indicate that the process has started.


Suggested Topics


  • nodeBB setup {windows}

    Unsolved Technical Support
    0 Votes
    7 Posts
    1929 Views

  • 0 Votes
    4 Posts
    1330 Views

  • 0 Votes
    16 Posts
    3644 Views

  • 0 Votes
    1 Posts
    659 Views

  • 0 Votes
    1 Posts
    899 Views

| | | |