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]: Adding a file asset to a issue via API crashes the webapp #5828

Open
1 task done
Plorenzo opened this issue Oct 14, 2024 · 1 comment
Open
1 task done

[bug]: Adding a file asset to a issue via API crashes the webapp #5828

Plorenzo opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels

Comments

@Plorenzo
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

The app crashes when opening a issue that got an asset attached via api

Screenshot 2024-10-14 at 21 12 36
Full js error

```

[Error] TypeError: undefined is not an object (evaluating 'e.lastIndexOf') — 5135-60eae4df96c25e64.js:1:345616
(anonymous function) (2364-0c2c79aac8387d55.js:1:4069)
l_ (618f8807-aec0e6ea0493cb1c.js:1:56412)
(anonymous function) (618f8807-aec0e6ea0493cb1c.js:1:56765)
nB (618f8807-aec0e6ea0493cb1c.js:1:31532)
nV (618f8807-aec0e6ea0493cb1c.js:1:31625)
aq (618f8807-aec0e6ea0493cb1c.js:1:73413)
aY (618f8807-aec0e6ea0493cb1c.js:1:74059)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73771)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74334)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74334)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:75298)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74429)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:75298)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74429)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:75298)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74429)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74334)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74334)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73771)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73771)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:73734)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74407)
a9 (618f8807-aec0e6ea0493cb1c.js:1:84636)
aY (618f8807-aec0e6ea0493cb1c.js:1:74103)
(anonymous function) (618f8807-aec0e6ea0493cb1c.js:1:107757)
is (618f8807-aec0e6ea0493cb1c.js:1:108310)
nb (618f8807-aec0e6ea0493cb1c.js:1:26968)
nw (618f8807-aec0e6ea0493cb1c.js:1:27578)
(anonymous function) (618f8807-aec0e6ea0493cb1c.js:1:28611)

</p>
</details> 


### Steps to reproduce

Create an issue and get its id 
Make POST request to `https://domain.com/api/v1/workspaces/<workspace>/projects/<project-id>/issues/<issue-id>/issue-attachments/ ` with a 'asset' body 
Get correct 200 response and asset created 

{
"id": "7080c1c0-fcc9-4f75-b0fd-a8d463ed6c7a",
"created_at": "2024-10-14T15:10:33.222406+02:00",
"updated_at": "2024-10-14T15:10:33.222428+02:00",
"deleted_at": null,
"attributes": {},
"asset": "https://domain.com/uploads/10fc538e-33c9-4227-8661-f4d6971ada05/file.png",
"external_source": null,
"external_id": null,
"created_by": "redacted",
"updated_by": "redacted",
"project": "eb40810e-redacted",
"workspace": "10fc568e-39c9-redacted",
"issue": "6d42cd23-redacted"
}

Go to UI and try to open the issue
App crashes


### Environment

Production

### Browser

Safari

### Variant

Self-hosted

### Version

v0.23.1
@Plorenzo Plorenzo added the 🐛bug Something isn't working label Oct 14, 2024
@Plorenzo
Copy link
Author

Plorenzo commented Oct 14, 2024

your template is broken, the step by step didn't get published.

Steps:
Create issue and get id
Make POST request to https://domain.com/api/v1/workspaces/<workspace>/projects/<project-id>/issues/<issue-id>/issue-attachments/ with 'asset' body
Get 200 response and url to created asset that is perfectly accesible
Try to open issue
App crashes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants
@Plorenzo @vihar @mguptahub @NarayanBavisetti @pablohashescobar @pushya22 and others