Content
View differences
Updated by Oliver Günther almost 2 years ago
### **Environment**:
openproject 12.0.10
all-in-one container on kubernetes
### **Logs**
Started Started GET "/api/v3/users/346" for 172.16.81.63 at 2022-04-08 09:40:23 +0800
I, \[2022-04-08T09:40:23.130454 #302\] INFO INFO -- : duration=9.82 db=1.77 view=8.05 status=200 method=GET path=/api/v3/users/346 params={} host=openproject.xxx.com user=346
I, \[2022-04-08T09:40:23.160885 #302\] INFO -- : Started GET "/api/v3/attachments/13420/content" for 172.16.81.63 at 2022-04-08 09:40:23 +0800
E, \[2022-04-08T09:40:23.178842 #302\] ERROR -- : user=346 undefined method \`path' for nil:NilClass: undefined method \`path' for nil:NilClass
I, \[2022-04-08T09:40:23.179466 #302\] INFO -- : duration=15.95 db=2.57 view=13.38 status=500 method=GET path=/api/v3/attachments/13420/content params={} host=openproject.xxx.com user=346
### **Steps to reproduce:**
1. when I When I restore the database and attachment data to the container, accessing openproject everything works fine, but I get an internal error when clicking the attachmen
### **Actual Behavior**
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30606/content"></div></figure>
### **Expected Behavior**
A 404 should be returned instead. Describe the expected behavior.
openproject 12.0.10
all-in-one container on kubernetes
### **Logs**
Started
I, \[2022-04-08T09:40:23.130454 #302\] INFO
I, \[2022-04-08T09:40:23.160885 #302\] INFO -- : Started GET "/api/v3/attachments/13420/content" for 172.16.81.63 at 2022-04-08 09:40:23 +0800
E, \[2022-04-08T09:40:23.178842 #302\] ERROR -- : user=346 undefined method \`path' for nil:NilClass: undefined method \`path' for nil:NilClass
I, \[2022-04-08T09:40:23.179466 #302\] INFO -- : duration=15.95 db=2.57 view=13.38 status=500 method=GET path=/api/v3/attachments/13420/content params={} host=openproject.xxx.com user=346
### **Steps to reproduce:**
1. when I When I restore the database and attachment data to the container, accessing openproject everything works fine, but I get an internal error when clicking the attachmen
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30606/content"></div></figure>
### **Expected Behavior**
A 404 should be returned instead.