René's URL Explorer Experiment


Title: Uploading files that share the same base filename to S3 can overwrite each other · Issue #294 · shotgunsoftware/python-api · GitHub

Open Graph Title: Uploading files that share the same base filename to S3 can overwrite each other · Issue #294 · shotgunsoftware/python-api

X Title: Uploading files that share the same base filename to S3 can overwrite each other · Issue #294 · shotgunsoftware/python-api

Description: When performing an upload via the SG API, we have multiple files that share a common filename but are in completely different paths. If we try to upload both of those simultaneously, the AWS upload URL is the same for both. In _upload_to...

Open Graph Description: When performing an upload via the SG API, we have multiple files that share a common filename but are in completely different paths. If we try to upload both of those simultaneously, the AWS upload...

X Description: When performing an upload via the SG API, we have multiple files that share a common filename but are in completely different paths. If we try to upload both of those simultaneously, the AWS upload...

Opengraph URL: https://github.com/shotgunsoftware/python-api/issues/294

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uploading files that share the same base filename to S3 can overwrite each other","articleBody":"When performing an upload via the SG API, we have multiple files that share a common filename but are in completely different paths. If we try to upload both of those simultaneously, the AWS upload URL is the same for both.\r\n\r\nIn `_upload_to_storage()`, `os.path.basename(path)` is passed to the `_get_attachment_upload_info` call. On the AWS side, that means that no matter the parent directory, any file that shares the base name will get a duplicate upload URL.\r\n\r\nThis only occurs if the `_upload_to_storage()` call happens concurrently : I'm guessing that the SG backend uses a timestamp to differentiate calls, because currently we do this about 30 times, but only when multiple get called at the same time do we get a duplicate upload URL.\r\n\r\n[The culprit line is here](https://github.com/shotgunsoftware/python-api/blob/b3ebbb5664c01b3e98bfd8ee5ffa32da0e3e5c0c/shotgun_api3/shotgun.py#L2483C19-L2483C19).\r\n\r\nRecommend changing:\r\n`filename = os.path.basename(path)`\r\nto something like:\r\n`filename = os.path.abspath(path)`","author":{"url":"https://github.com/briansmith-epic","@type":"Person","name":"briansmith-epic"},"datePublished":"2023-08-14T08:53:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/294/python-api/issues/294"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b905becd-f3fd-1f67-b72f-a4b933a55bfa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8180:24CD64:1D66587:26FA86E:696AFF3E
html-safe-nonce198af548ab6eeca8fc8d9f8816f94a0e7a6623d907aecc0e40437cf8d2859a52
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTgwOjI0Q0Q2NDoxRDY2NTg3OjI2RkE4NkU6Njk2QUZGM0UiLCJ2aXNpdG9yX2lkIjoiMTIxNzcyMDk4MzY0MDI3Njc5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca5d87832d6dc43de7f6a53cb7462e5eb36e2c18752cf8556de95984916947181
hovercard-subject-tagissue:1849325952
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/shotgunsoftware/python-api/294/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3dff5eabd22d2d93f5e6cd02f7c1d29261a024902eb5eafba5ce20f33ba4b7a4/shotgunsoftware/python-api/issues/294
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3dff5eabd22d2d93f5e6cd02f7c1d29261a024902eb5eafba5ce20f33ba4b7a4/shotgunsoftware/python-api/issues/294
og:image:altWhen performing an upload via the SG API, we have multiple files that share a common filename but are in completely different paths. If we try to upload both of those simultaneously, the AWS upload...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebriansmith-epic
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/shotgunsoftware/python-api git https://github.com/shotgunsoftware/python-api.git
octolytics-dimension-user_id317894
octolytics-dimension-user_loginshotgunsoftware
octolytics-dimension-repository_id748742
octolytics-dimension-repository_nwoshotgunsoftware/python-api
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id748742
octolytics-dimension-repository_network_root_nwoshotgunsoftware/python-api
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/shotgunsoftware/python-api/issues/294#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fshotgunsoftware%2Fpython-api%2Fissues%2F294
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fshotgunsoftware%2Fpython-api%2Fissues%2F294
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=shotgunsoftware%2Fpython-api
Reloadhttps://github.com/shotgunsoftware/python-api/issues/294
Reloadhttps://github.com/shotgunsoftware/python-api/issues/294
Reloadhttps://github.com/shotgunsoftware/python-api/issues/294
shotgunsoftware https://github.com/shotgunsoftware
python-apihttps://github.com/shotgunsoftware/python-api
Notifications https://github.com/login?return_to=%2Fshotgunsoftware%2Fpython-api
Fork 204 https://github.com/login?return_to=%2Fshotgunsoftware%2Fpython-api
Star 317 https://github.com/login?return_to=%2Fshotgunsoftware%2Fpython-api
Code https://github.com/shotgunsoftware/python-api
Issues 38 https://github.com/shotgunsoftware/python-api/issues
Pull requests 14 https://github.com/shotgunsoftware/python-api/pulls
Actions https://github.com/shotgunsoftware/python-api/actions
Projects 0 https://github.com/shotgunsoftware/python-api/projects
Models https://github.com/shotgunsoftware/python-api/models
Wiki https://github.com/shotgunsoftware/python-api/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/shotgunsoftware/python-api/security
Please reload this pagehttps://github.com/shotgunsoftware/python-api/issues/294
Insights https://github.com/shotgunsoftware/python-api/pulse
Code https://github.com/shotgunsoftware/python-api
Issues https://github.com/shotgunsoftware/python-api/issues
Pull requests https://github.com/shotgunsoftware/python-api/pulls
Actions https://github.com/shotgunsoftware/python-api/actions
Projects https://github.com/shotgunsoftware/python-api/projects
Models https://github.com/shotgunsoftware/python-api/models
Wiki https://github.com/shotgunsoftware/python-api/wiki
Security https://github.com/shotgunsoftware/python-api/security
Insights https://github.com/shotgunsoftware/python-api/pulse
New issuehttps://github.com/login?return_to=https://github.com/shotgunsoftware/python-api/issues/294
New issuehttps://github.com/login?return_to=https://github.com/shotgunsoftware/python-api/issues/294
Uploading files that share the same base filename to S3 can overwrite each otherhttps://github.com/shotgunsoftware/python-api/issues/294#top
https://github.com/briansmith-epic
https://github.com/briansmith-epic
briansmith-epichttps://github.com/briansmith-epic
on Aug 14, 2023https://github.com/shotgunsoftware/python-api/issues/294#issue-1849325952
The culprit line is herehttps://github.com/shotgunsoftware/python-api/blob/b3ebbb5664c01b3e98bfd8ee5ffa32da0e3e5c0c/shotgun_api3/shotgun.py#L2483C19-L2483C19
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.