open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
32 stars 23 forks source link

fix issue with create tempfile on MS Windows #726

Closed hilmarf closed 4 months ago

hilmarf commented 4 months ago

Description

There can occur an issue, when trying to create tempFiles:

   <*fmt.wrapError | 0xc0008f2240>:
       unable to read access: unable to create temporary file: mkdir C:\FOO~1\TEMP\user: lstat /C:: CreateFile C:/FOO~1/TEMP/user/VFS-1551776656/C:: The filename, directory name, or volume label syntax is incorrect.
            msg: "unable to create temporary file: mkdir C:\\FOO~1\\TEMP\\user: lstat /C:: CreateFile C:/FOO~1/TEMP/user/VFS-1551776656/C:: The filename, directory name, or volume label syntax is incorrect."
               err: <*fs.PathError | 0xc0008f47e0>{
                   Op: "mkdir",
                   Path: "C:\\FOO~1\\TEMP\\user",
                   Err: <*fs.PathError | 0xc0008f47b0>{
                       Op: "lstat",
                       Path: "/C:",
                       Err: <*fs.PathError | 0xc0008f4780>{
                           Op: "CreateFile",
                           Path: "C:/FOO~1/TEMP/user/VFS-1551776656/C:",
                           Err: <syscall.Errno>0x7b,

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

What type of PR is this? (check all applicable)

Related Tickets & Documents

Screenshots

Added tests?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

Checklist:

github-actions[bot] commented 4 months ago

Mend Scan Summary: :x:

Repository: open-component-model/ocm

VIOLATION DESCRIPTION NUMBER OF VIOLATIONS
HIGH/CRITICAL SECURITY VULNERABILITIES 0
MAJOR UPDATES AVAILABLE 0
LICENSE REQUIRES REVIEW 2
HIGH RISK LICENSES 9
RESTRICTIED LICENSE FOR ON-PREMISE DELIVERY 0

Detailed Logs: mend-scan-> Generate Report Mend UI

ocmbot[bot] commented 4 months ago

Integration Tests for f44a710da58918ab30b3771ccd0114d4ee9f29b9 run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for f44a710da58918ab30b3771ccd0114d4ee9f29b9 run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for f44a710da58918ab30b3771ccd0114d4ee9f29b9 run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for df930a01873715bc21df1b4450dbaa74c54eabbd run with result: Success ✅!