Ptt-official-app / Ptt-backend

PTT APP 的後端
BSD 3-Clause "New" or "Revised" License
208 stars 68 forks source link

[BUG][後端測試表] 取得新使用者的 draft 會有錯誤 #260

Closed PichuChen closed 3 years ago

PichuChen commented 3 years ago

發生了什麼事? / The Problem

請參考 #258 ,在使用者沒有 draft 的時候應該要表現出使用者沒有 draft 而不是出現錯誤

請參考後端測試表 C2-7-2

如何重現 / To Reproduce

  1. 登入 pichu3 並且取得 Access Token
  2. 取得 draft0 3 看到錯誤 open ../go-bbs/home/bbs//home/p/pichu3/buf.0: no such file or directory

預期的行為 / Expected behavior

應該要如文件看到空的 draft

螢幕截圖 / Screenshots

截圖 2021-07-31 下午1 09 09

開發環境 / Environment

略 Ptt-backend: v0.0.5 (0371cfc5)

nickyanggg commented 3 years ago

這 issue 應該在上面那個 pr 就修好了 (附上測試截圖)

螢幕快照 2021-08-07 下午10 19 14
y2468101216 commented 3 years ago

@PichuChen 這個 issue 是否可以關閉,我測試也是相同結果

截圖 2021-08-13 上午9 52 59
PichuChen commented 3 years ago

有用新的帳號嗎?試試看pichu3 因為如果說像是SYSOP或是pichu並不會觸發這個bug,或是我晚點重新測試

y2468101216 commented 3 years ago

上面 nickyanggg 就是用 pichu3

PichuChen commented 3 years ago

那我這週再試試看pichu3

PichuChen commented 3 years ago

pichu3 測試正常

截圖 2021-08-21 下午2 34 29