nextcloud / nextcloud/survey_client

Broken since 14, due to the apps list it seems.

Open
#101 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
Dominant language
JavaScript
Stars
11
Forks
20
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Our survey server has no data newer than Nextcloud 14. Just testing it, I could send a report on my local instance - but it contained barely any data. It didn't work on my normal instance, until I disabled:

  • App list (for each app: name, version, enabled status)

Sadly the logs say nothing and there's no command line way to call this either.

The console shows:

POST https://cloud.josandcamila.com:444/ocs/v2.php/apps/survey_client/api/v1//report?format=json 500 (Internal Server Error)
  send @ jquery.js:8630
  ajax @ jquery.js:8166
  (anonymous) @ admin.js?v=40d0545e-81:35
  dispatch @ jquery.js:4435
  _.handle @ jquery.js:4121

server log just gives:

192.168.1.167 - - [09/Nov/2019:22:29:10 +0100] "POST /ocs/v2.php/apps/survey_client/api/v1//report?format=json HTTP/1.1" 500 6066 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the POST to /ocs/v2.php/apps/survey_client/api/v1//report?format=json with the App list option enabled, using the request shown in the issue and the admin.js entry point. Investigate why the report returns HTTP 500 despite no useful application log output; done means reports succeed with App list enabled and include the app data.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.