nextcloud / nextcloud/appstore

500 error on apps.nextcloud.com account page via missing newsletter parameter leads to failed account updates

Open
#1,692 0 comments 0 reactions 0 assignees View on GitHub
bug medium priority
Dominant language
Python
Stars
391
Forks
175
Avg merge
1d 11h
Merged PRs (30d)
25

Description

### How to use GitHub

* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are affected by the same issue.
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
* Subscribe to receive notifications on status change and new comments.

---

### Summary
A POST request to https://apps.nextcloud.com/account/ returns an HTTP 500 Internal Server Error when the newsletter opt-out parameter ("I would like to receive app developer news and updates from Nextcloud by email") is omitted. Sending the same request with subscribe_to_news=off results in a normal HTTP 302 redirect and successful processing, indicating inconsistent backend handling of an optional consent parameter.

### Steps to reproduce

1. Log in to https://apps.nextcloud.com/account/
2. Update account details (e.g. first name, last name, email)
3. Leave "I would like to receive app developer news and updates from Nextcloud by email" unchecked
4. Submit the form

### Expected behaviour
Account updates should succeed regardless of newsletter opt-in or opt-out state.

### Actual behaviour
Omitting the subscribe_to_news parameter causes a server-side exception and HTTP 500 response.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.