Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PichuChen opened this issue Sep 5, 2021 · 3 comments
Open

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

PichuChen opened this issue Sep 5, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@PichuChen
Copy link
Member

PichuChen commented Sep 5, 2021

發生了什麼事? / 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: cb8fb31

@karta0807913
Copy link
Contributor

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

@PichuChen
Copy link
Member Author

感謝,已修正

@IepIweidieng
Copy link

IepIweidieng commented Oct 14, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants