Can't re-add deleted feed via API

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

Description

bug

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

Dominant language
PHP
Stars
1k
Forks
200
Avg merge
20h 28m
Merged PRs (30d)
32

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from nextcloud/news

All issues in nextcloud/news

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.