davispuh opened a new issue, #1277:
URL: https://github.com/apache/answer/issues/1277

   ## Describe the bug
   
   ```
   ERROR        question_common/question.go:712        get linked question ids 
error code: 500, reason: base.database_error, message: , error: pq: invalid 
input syntax for type bigint: "D112"
   /home/runner/work/answer/answer/internal/repo/question/question_repo.go:744 
github.com/apache/answer/internal/repo/question.(*questionRepo).GetLinkedQuestionIDs
   
/home/runner/work/answer/answer/internal/service/question_common/question.go:710
 
github.com/apache/answer/internal/service/question_common.(*QuestionCommon).UpdateQuestionLink
   
/home/runner/work/answer/answer/internal/service/content/question_service.go:359
 
github.com/apache/answer/internal/service/content.(*QuestionService).AddQuestion
   
/home/runner/work/answer/answer/internal/controller/question_controller.go:473 
github.com/apache/answer/internal/controller.(*QuestionController).AddQuestion
   /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 
github.com/gin-gonic/gin.(*Context).Next
   /home/runner/work/answer/answer/internal/base/middleware/auth.go:168 
github.com/apache/answer/internal/base/server.NewHTTPServer.(*AuthUserMiddleware).MustAuthAndAccountAvailable.func11
   /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 
github.com/gin-gonic/gin.(*Context).Next
   
/home/runner/go/pkg/mod/github.com/anargu/[email protected]/gin_brotli.go:71
 github.com/apache/answer/internal/base/server.NewHTTPServer.Brotli.func3
   /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 
github.com/gin-gonic/gin.(*Context).Next
   /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633 
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
   /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589 
github.com/gin-gonic/gin.(*Engine).ServeHTTP
   /opt/hostedtoolcache/go/1.22.11/x64/src/net/http/server.go:3142 
net/http.serverHandler.ServeHTTP
   /opt/hostedtoolcache/go/1.22.11/x64/src/net/http/server.go:2044 
net/http.(*conn).serve
   /opt/hostedtoolcache/go/1.22.11/x64/src/runtime/asm_amd64.s:1695 
runtime.goexit
   ```
   
   See 
https://github.com/apache/answer/blob/v1.4.2/internal/entity/question_link_entity.go#L35
   
   ### To Reproduce
   
   Steps to reproduce the behavior:
   
   1. Admin => Settings => SEO => Permalink
   2. Switch to short form
   3. Ask a question
   
   ### Expected behavior
   
   No error and linked question functionality working.
   
   ### Screenshots
   
   
![Image](https://github.com/user-attachments/assets/c4977ea3-f0b7-429d-8a31-95a59a0d79de)
   
   ### Platform
   
   - Device: Desktop
   - OS: Linux
   - Browser and version: Firefox
   - Version: 1.4.2 (revision: 0fd7e81)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to