akhilrex/hammond

Cannot Upload Files

vel-crow opened this issue · 2 comments

Using an updated version of debian, docker, and hammond - fresh install - I cannot upload files for quick entry.
Firewals on debian are disabled, no routing rules between my client and the Hamond server.

I can select the file to upload, I receive this alert at the bottom of the screen:

image

The following entry is generated when i run sudo docker logs hammond:

2023/06/04 01:29:14 [Recovery] 2023/06/04 - 01:29:14 panic recovered:
interface conversion: error is url.EscapeError, not validator.ValidationErrors
/usr/local/go/src/runtime/iface.go:261 (0x1f817)
/usr/local/go/src/runtime/iface.go:271 (0x1f784)
/api/common/utils.go:61 (0x4e3973)
/api/controllers/files.go:30 (0x50239b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x4e1cdb)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/recovery.go:99 (0x4e1cb8)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x511e13)
/api/main.go:68 (0x511dec)
[GIN] 2023/06/04 - 01:29:14 | 500 | 49.661054ms | 192.168.86.25 | POST "/api/quickEntries"
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x4e1cdb)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/recovery.go:99 (0x4e1cb8)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x4e10db)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/logger.go:241 (0x4e10b8)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x4d9063)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/gin.go:489 (0x4d9040)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/gin.go:445 (0x4d8bef)
/usr/local/go/src/net/http/server.go:2887 (0x262203)
/usr/local/go/src/net/http/server.go:1952 (0x25e4a3)
/usr/local/go/src/runtime/asm_arm.s:841 (0x7e653)

Given that iptables and ufw are not implemented, and this Debian install lacks any other firewall, and my subnet is explicitly allowing communication, and all other features work - i believe this may be a bug.

I thank you for your dedication to this platform, and hope for a resolution.

Running into the same error

Error Trace
[GIN] 2023/07/10 - 14:23:52 | 500 |   40.631255ms |       10.0.0.33 | POST     "/api/quickEntries"


2023/07/10 14:23:52 [Recovery] 2023/07/10 - 14:23:52 panic recovered:
interface conversion: error is url.EscapeError, not validator.ValidationErrors
/usr/local/go/src/runtime/iface.go:261 (0x412d2b)
/usr/local/go/src/runtime/iface.go:271 (0x412c8f)
/api/common/utils.go:61 (0x9b413b)
/api/controllers/files.go:30 (0x9d7b14)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9b20f9)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/recovery.go:99 (0x9b20e0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9ea0ab)
/api/main.go:68 (0x9ea08d)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9b20f9)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/recovery.go:99 (0x9b20e0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9b11d3)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/logger.go:241 (0x9b1192)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9a7989)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/gin.go:489 (0x9a796f)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/gin.go:445 (0x9a745b)
/usr/local/go/src/net/http/server.go:2887 (0x6b5b22)
/usr/local/go/src/net/http/server.go:1952 (0x6b0f4c)
/usr/local/go/src/runtime/asm_amd64.s:1371 (0x473e60)

I see that this is a duplicate of #104 and has been around for sometime. @AlfHou's fork has the fix though