René's URL Explorer Experiment


Title: Endpoint can't parse multipart requests with Content-Disposition: attachment · Issue #11 · swordapp/JavaServer2.0 · GitHub

Open Graph Title: Endpoint can't parse multipart requests with Content-Disposition: attachment · Issue #11 · swordapp/JavaServer2.0

X Title: Endpoint can't parse multipart requests with Content-Disposition: attachment · Issue #11 · swordapp/JavaServer2.0

Description: Posting a multipart request with Content-Disposition: attachment, as specified by e.g. Section 6.5.3 of the SWORD 2.0 Profile: The client MUST supply a Content-Disposition header of type attachment on the Entry Part with a name parameter...

Open Graph Description: Posting a multipart request with Content-Disposition: attachment, as specified by e.g. Section 6.5.3 of the SWORD 2.0 Profile: The client MUST supply a Content-Disposition header of type attachment...

X Description: Posting a multipart request with Content-Disposition: attachment, as specified by e.g. Section 6.5.3 of the SWORD 2.0 Profile: The client MUST supply a Content-Disposition header of type attachment...

Opengraph URL: https://github.com/swordapp/JavaServer2.0/issues/11

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Endpoint can't parse multipart requests with Content-Disposition: attachment","articleBody":"Posting a multipart request with `Content-Disposition: attachment`, as specified by e.g. [Section 6.5.3](http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_editingcontent_multipart) of the SWORD 2.0 Profile:\n\n> - The client MUST supply a Content-Disposition header of type attachment on the Entry Part with a name parameter set to atom [SWORD004]\n> - The client MUST supply a Content-Disposition header of type attachment on the Media Part with a name parameter set to payload and a filename parameter [SWORD004] \n\nresults in an exception with the message `Attempting to store and check deposit which has no input stream`.\n\nThe underlying cause appears to be Commons-Fileupload bug [FILEUPLOAD-239](https://issues.apache.org/jira/browse/FILEUPLOAD-239), closed as invalid based on (IMO) a misreading of [RFC 1867](http://www.ietf.org/rfc/rfc1867.txt), which accepts only `Content-Disposition: form-data`. I was able to work around this by patching [`SwordAPIEndpoint.getPartsFromRequest()`](https://github.com/swordapp/JavaServer2.0/blob/06d04f5e959465ae577f40a891ff6c930df2cd5e/src/main/java/org/swordapp/server/SwordAPIEndpoint.java#L465) with a more liberal `getFieldName()` implementation.\n\n``` java\n// Create a new file upload handler\nServletFileUpload upload = new ServletFileUpload(factory) {\n    // Work around WONTFIX https://issues.apache.org/jira/browse/FILEUPLOAD-239\n    @Override\n    protected String getFieldName(FileItemHeaders headers) {\n        String contentDisposition = headers.getHeader(CONTENT_DISPOSITION);\n        if (contentDisposition != null) {\n            ParameterParser parser = new ParameterParser();\n            parser.setLowerCaseNames(true);\n            Map params = parser.parse(contentDisposition, ';');\n            String fieldName = (String) params.get(\"name\");\n            if (fieldName != null) {\n                return fieldName.trim();\n            }\n        }\n        return null;\n    }\n};\n```\n","author":{"url":"https://github.com/dmolesUC","@type":"Person","name":"dmolesUC"},"datePublished":"2016-06-27T18:02:12Z","url":"https://github.com/swordapp/JavaServer2.0/issues/11"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d9a7b160-4001-732c-fe70-bd4b049dff2c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD50:3C21B:4E111B:669828:6B00CADC
html-safe-nonce201d1fb2d67e5e6a929d3a9ce83ae6f9bf203a5e28ecaa954f7f0906b0d7d5ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDUwOjNDMjFCOjRFMTExQjo2Njk4Mjg6NkIwMENBREMiLCJ2aXNpdG9yX2lkIjoiODgyNzE2NjI0MDUxMTQxMjk1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac358e9014bec526df9e9aeafd1a4ef9717fbda72b305c0d687bf497766bf5ccf2
hovercard-subject-tagissue:162511699
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/swordapp/JavaServer2.0/11/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2ab4ef004753706605b5de825e253ccef288be635fce7752477d811ad557bda5/swordapp/JavaServer2.0/issues/11
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ab4ef004753706605b5de825e253ccef288be635fce7752477d811ad557bda5/swordapp/JavaServer2.0/issues/11
og:image:altPosting a multipart request with Content-Disposition: attachment, as specified by e.g. Section 6.5.3 of the SWORD 2.0 Profile: The client MUST supply a Content-Disposition header of type attachment...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedmolesUC
hostnamegithub.com
expected-hostnamegithub.com
None98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4
turbo-cache-controlno-preview
go-importgithub.com/swordapp/JavaServer2.0 git https://github.com/swordapp/JavaServer2.0.git
octolytics-dimension-user_id1606751
octolytics-dimension-user_loginswordapp
octolytics-dimension-repository_id4202272
octolytics-dimension-repository_nwoswordapp/JavaServer2.0
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id4202272
octolytics-dimension-repository_network_root_nwoswordapp/JavaServer2.0
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
releaseef013399cf0a3c324bea644a685d7c1e0f06b5b7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/swordapp/JavaServer2.0/issues/11#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fswordapp%2FJavaServer2.0%2Fissues%2F11
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fswordapp%2FJavaServer2.0%2Fissues%2F11
Sign uphttps://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=swordapp%2FJavaServer2.0
Reloadhttps://github.com/swordapp/JavaServer2.0/issues/11
Reloadhttps://github.com/swordapp/JavaServer2.0/issues/11
Reloadhttps://github.com/swordapp/JavaServer2.0/issues/11
swordapphttps://github.com/swordapp
JavaServer2.0https://github.com/swordapp/JavaServer2.0
Codehttps://github.com/swordapp/JavaServer2.0
Issues7 (7)https://github.com/swordapp/JavaServer2.0/issues
Pull requests3 (3)https://github.com/swordapp/JavaServer2.0/pulls
Actionshttps://github.com/swordapp/JavaServer2.0/actions
Projectshttps://github.com/swordapp/JavaServer2.0/projects
Wikihttps://github.com/swordapp/JavaServer2.0/wiki
Security and qualityhttps://github.com/swordapp/JavaServer2.0/security
Insightshttps://github.com/swordapp/JavaServer2.0/insights
https://github.com/swordapp/JavaServer2.0
New issuehttps://github.com/login?return_to=https://github.com/swordapp/JavaServer2.0/issues/11
New issuehttps://github.com/login?return_to=https://github.com/swordapp/JavaServer2.0/issues/11
Endpoint can't parse multipart requests with Content-Disposition: attachmenthttps://github.com/swordapp/JavaServer2.0/issues/11#top
https://github.com/dmolesUC
dmolesUChttps://github.com/dmolesUC
on Jun 27, 2016https://github.com/swordapp/JavaServer2.0/issues/11#issue-162511699
Section 6.5.3http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_editingcontent_multipart
FILEUPLOAD-239https://issues.apache.org/jira/browse/FILEUPLOAD-239
RFC 1867http://www.ietf.org/rfc/rfc1867.txt
SwordAPIEndpoint.getPartsFromRequest()https://github.com/swordapp/JavaServer2.0/blob/06d04f5e959465ae577f40a891ff6c930df2cd5e/src/main/java/org/swordapp/server/SwordAPIEndpoint.java#L465
Sign up for freehttps://github.com/signup?return_to=https://github.com/swordapp/JavaServer2.0/issues/11
Sign in to commenthttps://github.com/login?return_to=https://github.com/swordapp/JavaServer2.0/issues/11
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.