Skip to content

Uploaded Attachments are just 0.0 kb (empty) #1617

@moseisleydk

Description

@moseisleydk

I often see that attachments becomes 0.0 kb.

Here are before upload:

(reporting-tool) root@docs01:/pack/reporting-tool# ls -l csv/96725
total 20
-rw-r--r-- 1 root root 282 Mar  3 09:00 aktive-kpi-slas-i-itsm-systeme.csv
-rw-r--r-- 1 root root  37 Mar  3 09:00 first-touch-generic-kpi-for-incident.csv
-rw-r--r-- 1 root root  37 Mar  3 09:00 first-touch-generic-kpi-for-service-request.csv
-rw-r--r-- 1 root root  50 Mar  3 09:00 resolution-time-generic-kpi-for-service-request.csv
-rw-r--r-- 1 root root  50 Mar  3 09:01 resultion-time-generic-kpi-for-incident.csv

Upload code:

log_to_file (f,"Uploading files to page: " + page_id,"INFO")
    with os.scandir(dirpath) as entries:
      for entry in entries:
        if entry.is_file():
          log_to_file (f,"Uploading file: " + dirpath + entry.name,"INFO") 
          confluence.attach_file(dirpath + entry.name, name=entry.name, content_type=None, page_id=page_id, title=None, space=None, comment=None)

After that, they are [sometimes] just 0.0 Kb and downloaded from Confluence:

npn@npn-mac Downloads % cat resultion-time-generic-kpi-for-incident.csv 
npn@npn-mac Downloads % 

The special is - its a static situation - for the files above - the aktive-kpi-slas-i-itsm-systeme.csv is always ok, the rest 0.0 kb - every time.
Due to the size, the aktive-kpi-slas-i-itsm-systeme.csv is lager, I suspect some size limit gives the failure...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions