nextcloud / nextcloud/news

Can't re-add deleted feed via API

Open
#2,957 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
1k
Forks
198
Avg merge
2d 6h
Merged PRs (30d)
29

Description

IMPORTANT

Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)

  • I have read the CONTRIBUTING.md and followed the provided tips
  • I accept that the issue will be closed without comment if I do not check here
  • I accept that the issue will be closed without comment if I do not fill out all items in the issue template.

Explain the Problem

A feed that has been removed in the UI can not be re-added via the API (as it appears to still exist?). I haven't checked the DB, presumably it's still there.

Steps to Reproduce

Explain what you did to encounter the issue

  1. Remove a feed from the UI
  2. Use API to attempt to add the feed
  3. Recieve status code 409 with message Feed with this URL exists

System Information

  • News app version: 25.1.0
  • Nextcloud version: 29.0.9
  • Browser and version: Firefox 133.0
  • Cron type: Cron
  • PHP version: 8.3.14
  • Database and version: MariaDB 10.5.23
  • OS and version: Client or server? Either way Debian, 11 on server, testing on client.

edit: further server details

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 API add request after removing the feed in the UI, then trace the feed creation and deletion paths that produce the Feed with this URL exists response. Done means a feed removed through the UI can be added again through the API without a 409, while genuinely existing feeds still return the conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.