Ptt-backend icon indicating copy to clipboard operation
Ptt-backend copied to clipboard

[BUG] C6-1-3: 無法刪除文章,出現 path not found

Open PichuChen opened this issue 3 years ago • 3 comments

發生了什麼事? / The Problem

刪除時出現 path /v1/boards/test/articles/M.1629564570.A.2AC not found

如何重現 / To Reproduce

請參考 testing-script C6-1-3.sh

  1. 取得 SYSOP 的 Access Token
  2. 發一篇新文章
  3. 刪掉他,用 curl http://localhost:8081/v1/boards/test/articles/$NEW_FILENAME -d 'action=delete'

然後就會看到錯誤了。

預期的行為 / Expected behavior

他應該要能正常刪掉文章,至少不要出現錯誤訊息,然後文章列表中要出現這篇文章已被刪除。

螢幕截圖 / Screenshots

截圖 2021-09-05 下午11 41 53

開發環境 / Environment

Package version: cb8fb31f7a480dce1f29406be6c6d215d365c37e

PichuChen avatar Sep 05 '21 15:09 PichuChen

@PichuChen 請參考 testing-script C6-1-2.sh 應為 C6-1-3.sh

karta0807913 avatar Sep 20 '21 06:09 karta0807913

感謝,已修正

PichuChen avatar Sep 20 '21 09:09 PichuChen

文章的正確路徑是否應爲 ​/v1​/board​/{bid}​/article​/{aid}? 參考:https://api.devptt.site:8080/#/board/get_v1_board__bid__article__aid_ boardarticle 的字尾皆無 s 後綴。

IepIweidieng avatar Oct 14 '21 14:10 IepIweidieng