CycloneDX / CycloneDX/cyclonedx-dotnet

Did anyone figure out solution for using version 2.7.0 ? I am facing this issue if I run it in Linux VM in azure pipelines as well as local machine but it is working without any issues in my local windows machine, not sure what causing the issue. I also tried to run in windows VMs in azure pipelines, still causing same issue, not sure how it is working locally with windows machine. Did anyone face the similar issue ?

Open
#664 5 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
C#
Stars
294
Forks
123
PR merge metrics
No merged PRs in 30d

Description

Did anyone figure out solution for using version 2.7.0 ? I am facing this issue if I run it in Linux VM in azure pipelines as well as local machine but it is working without any issues in my local windows machine, not sure what causing the issue. I also tried to run in windows VMs in azure pipelines, still causing same issue, not sure how it is working locally with windows machine. Did anyone face the similar issue ?

```
**Unhandled exception. System.IO.InvalidDataException: Central Directory corrupt.
---> System.IO.IOException: An attempt was made to move the position before the beginning of the stream.
at System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc)
at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
--- End of inner exception stack trace ---**
```

_Originally posted by @gkrishna240988 in https://github.com/CycloneDX/cyclonedx-dotnet/issues/603#issuecomment-1457574110_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing version 2.7.0 in the Linux and Windows Azure Pipelines environments described, then inspect the reported System.IO.Compression.ZipArchive exception and compare it with the working local Windows run. Done means the same operation no longer reports a corrupt central directory across the reported environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
ci-cd, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.