Bug 15299

Summary: Unable to fetch sstate from Azure blob while SAS token is needed
Product: [Build System, Metadata & Runtime] BitBake Reporter: Marcin Bajer <marcin.bajer>
Component: bitbakeAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium CC: bst, marcin.bajer, poky.bs.watcher, poky.watcher, randy.macleod
Version: unspecified   
Target Milestone: 6.1   
Hardware: x86   
OS: Multiple   
See Also: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15218
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Proposed patch
none
Patch generated with commit description none

Description Marcin Bajer 2023-11-28 00:30:27 UTC
Commit 89ccf603d8119c34f5398dbd737e6a0b805234d3 of Poky (https://github.com/yoctoproject/poky/commit/89ccf603d8119c34f5398dbd737e6a0b805234d3) removes all not needed elements from URI in checkstatus method. This breaks az.py fetcher in case of using SAS authenicated access. To check if blob exists SAS token needs to be adds to URL (https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview#sas-token)
Comment 1 Marcin Bajer 2023-11-28 00:44:59 UTC
Created attachment 4990 [details]
Proposed patch
Comment 2 Marcin Bajer 2023-11-28 00:55:20 UTC
Created attachment 4991 [details]
Patch generated with commit description
Comment 3 Randy MacLeod 2023-11-30 15:35:38 UTC
Can you send the attached patch to the appropriate email list?
If there isn't testing there already, can you add a test please?
Comment 4 Randy MacLeod 2024-01-11 15:51:16 UTC
Seems like a real bug but we need to investigate since there seems to be conflicting requirements about the URL.

Marcin, if you want to get the ball rolling, please send a patch to the oe-core list.

Moving to unassigned since Marcin did not reply yet.
Comment 5 Randy MacLeod 2024-01-11 15:52:37 UTC
Move to New state.
Comment 6 Randy MacLeod 2024-04-25 01:23:52 UTC
Build move to 5.1
Comment 7 Randy MacLeod 2025-05-01 14:07:06 UTC
Bulk move of all unassigned 5.2 medium importance bugs to 5.3.
Comment 8 Randy MacLeod 2026-03-19 01:05:33 UTC
Bumping to 6.1.
Marcin, I assume this is still broken. 
If not please say so and ideally provide a link to the fix commit.