Landscape 23.03, can't handle binary script attachments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Server |
Fix Released
|
Medium
|
Kevin Nasto | ||
23.03 |
Fix Released
|
Medium
|
Kevin Nasto |
Bug Description
When attachment has binary files in it each time I'm trying to read this attachment also by trying to download it or by trying to copy script, I could see the following error from this message.
Replicate the issue is quite simple.
On Landscape 23.03:
1. Create script
2. Attach any binary file to the script for example archive
3. Open saved attachment and click on the attached file
Stack trace is leading to problematic decode() call, I checked the latest package and the issue is still there
./api.log:Jun 21 12:13:58 api-2 CRIT
Traceback (most recent call last):
File "/usr/lib/
current.result = callback( # type: ignore[misc]
File "/opt/canonical
raise UndeclaredExcep
canonical.
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork() # type: ignore[
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args, **kw)
File "/usr/lib/
result = function(*args, **kwargs)
File "/opt/canonical
return self.query(context, call)
File "/opt/canonical
script = context.
File "/opt/canonical
[
File "/opt/canonical
(attachment
File "/opt/canonical
data = self._read(fd)
File "/opt/canonical
return result.
builtins.
information type: | Proprietary → Public |
Changed in landscape: | |
assignee: | nobody → Kevin Nasto (silverdrake11) |
importance: | Undecided → Medium |
status: | New → Confirmed |
no longer affects: | landscape/beta |
no longer affects: | landscape/24.04 |
no longer affects: | landscape/24.10 |
Changed in landscape: | |
milestone: | 24.10-beta.2 → none |
Changed in landscape: | |
milestone: | none → 23.03+18.3 |
Changed in landscape: | |
milestone: | 23.03+18.3 → none |
Changed in landscape: | |
status: | Confirmed → Fix Released |