onDFUFilePublish is not setting @compressedSize

Description

onDFUFilePublish is not setting @compressedSize on compressed files published through ESP. This causes ECLWatch and soap services to get the incorrect file size (UINT_MAX) for those compressed files.

 

Conclusion

None

Activity

Show:

Jacob Cobbett-Smith March 19, 2021 at 4:08 PM

yes, agree, I had them the wrong way around in my pseudo code.

Gavin Halliday March 19, 2021 at 3:46 PM

Those look like they are round the wrong way

offset_t compressedSize = file->size():
offset_t uncompressedSize = io->size():

Kanghua Wang March 19, 2021 at 1:42 PM
Edited

Talked with , I may find out the compressed size for each file part using the createCompressedFileReader:

{{Owned<IFile> file = ...
Owned<IFileIO> io = createCompressedFileReader(.

offset_t uncompressedSize = file->size():
offset_t compressedSize = io->size():}}

 

Is the compressed size for a logical file the summary of the compressed sizes of its physical parts?

Jacob Cobbett-Smith March 18, 2021 at 6:54 PM

- can you look at implementing this?

Jacob Cobbett-Smith March 18, 2021 at 6:54 PM

ok yes, I was just testing, I'd clearly forgotten how this worked.

In that case, as you originally suggested, the publish can inspect the file parts, and gather both the compressed and uncompressed sizes and populate that info. into the logical file meta data.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Compatibility

Point

Fix versions

Pull Request URL

Roadmap

Not applicable

Affects versions

Created March 15, 2021 at 2:57 PM
Updated April 12, 2021 at 8:54 AM
Resolved April 12, 2021 at 8:53 AM