René's URL Explorer Experiment


Title: UnifiedDiffParserException: expected file start line not found · Issue #98 · java-diff-utils/java-diff-utils · GitHub

Open Graph Title: UnifiedDiffParserException: expected file start line not found · Issue #98 · java-diff-utils/java-diff-utils

X Title: UnifiedDiffParserException: expected file start line not found · Issue #98 · java-diff-utils/java-diff-utils

Description: Describe the bug I try to parse a patch-file, generated from git git format-patch -1 , with content: From fd940c6f66126734e82c00889e7c987e11deea91 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Sun, ...

Open Graph Description: Describe the bug I try to parse a patch-file, generated from git git format-patch -1 , with content: From fd940c6f66126734e82c00889e7c987e11deea91 Mon Sep 17 00:00:00 2001 From: Tomas Bjerr...

X Description: Describe the bug I try to parse a patch-file, generated from git git format-patch -1 <commit>, with content: From fd940c6f66126734e82c00889e7c987e11deea91 Mon Sep 17 00:00:00 2001 From: Tomas...

Opengraph URL: https://github.com/java-diff-utils/java-diff-utils/issues/98

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UnifiedDiffParserException: expected file start line not found","articleBody":"**Describe the bug**\r\n\r\nI try to parse a patch-file, generated from git `git format-patch -1 \u003ccommit\u003e`, with content:\r\n\r\n```\r\nFrom fd940c6f66126734e82c00889e7c987e11deea91 Mon Sep 17 00:00:00 2001\r\nFrom: Tomas Bjerre \u003ctomas.bjerre85@gmail.com\u003e\r\nDate: Sun, 6 Sep 2020 11:20:34 +0200\r\nSubject: [PATCH] removing file\r\n\r\n---\r\n .../violations/lib/model/ViolationTest.java   | 37 -------------------\r\n 1 file changed, 37 deletions(-)\r\n delete mode 100644 src/test/java/se/bjurr/violations/lib/model/ViolationTest.java\r\n\r\ndiff --git a/src/test/java/se/bjurr/violations/lib/model/ViolationTest.java b/src/test/java/se/bjurr/violations/lib/model/ViolationTest.java\r\ndeleted file mode 100644\r\nindex 3e40b52..0000000\r\n--- a/src/test/java/se/bjurr/violations/lib/model/ViolationTest.java\r\n+++ /dev/null\r\n@@ -1,37 +0,0 @@\r\n-package se.bjurr.violations.lib.model;\r\n-\r\n-import static org.assertj.core.api.Assertions.assertThat;\r\n-import static se.bjurr.violations.lib.model.SEVERITY.ERROR;\r\n-import static se.bjurr.violations.lib.model.Violation.violationBuilder;\r\n-import static se.bjurr.violations.lib.reports.Parser.CHECKSTYLE;\r\n-\r\n-import org.junit.Test;\r\n-import se.bjurr.violations.lib.model.Violation.ViolationBuilder;\r\n-import uk.co.jemos.podam.api.PodamFactoryImpl;\r\n-\r\n-public class ViolationTest {\r\n-\r\n-  @Test\r\n-  public void testThatFilePathsAreAlwaysFronSlashes() {\r\n-    final Violation violation =\r\n-        violationBuilder() //\r\n-            .setParser(CHECKSTYLE) //\r\n-            .setFile(\"c:\\\\path\\\\to\\\\file.xml\") //\r\n-            .setMessage(\"message\") //\r\n-            .setSeverity(ERROR) //\r\n-            .setStartLine(1) //\r\n-            .build();\r\n-    assertThat(violation.getFile()) //\r\n-        .isEqualTo(\"c:/path/to/file.xml\");\r\n-  }\r\n-\r\n-  @Test\r\n-  public void testThatCopyConstructorWorks() {\r\n-    final ViolationBuilder originalBuilder =\r\n-        new PodamFactoryImpl().manufacturePojo(ViolationBuilder.class);\r\n-    final Violation original = originalBuilder.build();\r\n-    final Violation copied = new Violation(original);\r\n-    assertThat(copied) //\r\n-        .isEqualTo(original);\r\n-  }\r\n-}\r\n-- \r\n2.25.1\r\n\r\n\r\n```\r\n\r\nI get error like:\r\n\r\n```\r\ncom.github.difflib.unifieddiff.UnifiedDiffParserException: expected file start line not found\r\n\tat com.github.difflib.unifieddiff.UnifiedDiffReader.parse(UnifiedDiffReader.java:93)\r\n\tat com.github.difflib.unifieddiff.UnifiedDiffReader.parseUnifiedDiff(UnifiedDiffReader.java:144)\r\n```\r\n\r\n**To Reproduce**\r\n\r\nParse above data with:\r\n\r\n```\r\n    InputStream reportContentStream = new ByteArrayInputStream(reportContent.getBytes(UTF_8));\r\n    UnifiedDiff parsedDiff = UnifiedDiffReader.parseUnifiedDiff(reportContentStream);\r\n```\r\n\r\n**Expected behavior**\r\nNot to crash\r\n\r\n**System**\r\n - Java version 1.8.0_171\r\n - Version 4.8-SNAPSHOT  de04bd688a0ee067fbe9bbc6344b1ceedfd6e220\r\n\r\nRelates to https://github.com/tomasbjerre/violations-lib/issues/95","author":{"url":"https://github.com/tomasbjerre","@type":"Person","name":"tomasbjerre"},"datePublished":"2020-09-06T10:15:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/98/java-diff-utils/issues/98"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5575dbb7-f004-86ce-7385-7e1b946f11cf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD1F4:256A62:1B0319:247093:6969CF7D
html-safe-nonceb068db3dd8308cef86059e36826a84d96bc2a57fbee13f086f088116e2efd5e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUY0OjI1NkE2MjoxQjAzMTk6MjQ3MDkzOjY5NjlDRjdEIiwidmlzaXRvcl9pZCI6IjU4MzAwMDk4MzA3OTIzNTE2MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac238bf4bd6509b9f73f9d75c790e98e5fe391fb135ef192fbe5cd9a95795400de
hovercard-subject-tagissue:694323571
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/java-diff-utils/java-diff-utils/98/issue_layout
twitter:imagehttps://opengraph.githubassets.com/00838d93aa06fe355a214ea51620d019828e423134465d9f70f9b2589bcb1d23/java-diff-utils/java-diff-utils/issues/98
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/00838d93aa06fe355a214ea51620d019828e423134465d9f70f9b2589bcb1d23/java-diff-utils/java-diff-utils/issues/98
og:image:altDescribe the bug I try to parse a patch-file, generated from git git format-patch -1 , with content: From fd940c6f66126734e82c00889e7c987e11deea91 Mon Sep 17 00:00:00 2001 From: Tomas Bjerr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametomasbjerre
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-preview
go-importgithub.com/java-diff-utils/java-diff-utils git https://github.com/java-diff-utils/java-diff-utils.git
octolytics-dimension-user_id40540835
octolytics-dimension-user_loginjava-diff-utils
octolytics-dimension-repository_id86663812
octolytics-dimension-repository_nwojava-diff-utils/java-diff-utils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id86663812
octolytics-dimension-repository_network_root_nwojava-diff-utils/java-diff-utils
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/java-diff-utils/java-diff-utils/issues/98#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2F98
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%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2F98
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=java-diff-utils%2Fjava-diff-utils
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/98
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/98
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/98
java-diff-utils https://github.com/java-diff-utils
java-diff-utilshttps://github.com/java-diff-utils/java-diff-utils
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/98
Notifications https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Fork 215 https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Star 1.5k https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Code https://github.com/java-diff-utils/java-diff-utils
Issues 1 https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests 1 https://github.com/java-diff-utils/java-diff-utils/pulls
Discussions https://github.com/java-diff-utils/java-diff-utils/discussions
Actions https://github.com/java-diff-utils/java-diff-utils/actions
Projects 0 https://github.com/java-diff-utils/java-diff-utils/projects
Wiki https://github.com/java-diff-utils/java-diff-utils/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/java-diff-utils/java-diff-utils/security
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/98
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
Code https://github.com/java-diff-utils/java-diff-utils
Issues https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests https://github.com/java-diff-utils/java-diff-utils/pulls
Discussions https://github.com/java-diff-utils/java-diff-utils/discussions
Actions https://github.com/java-diff-utils/java-diff-utils/actions
Projects https://github.com/java-diff-utils/java-diff-utils/projects
Wiki https://github.com/java-diff-utils/java-diff-utils/wiki
Security https://github.com/java-diff-utils/java-diff-utils/security
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/98
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/98
UnifiedDiffParserException: expected file start line not foundhttps://github.com/java-diff-utils/java-diff-utils/issues/98#top
https://github.com/tomasbjerre
https://github.com/tomasbjerre
tomasbjerrehttps://github.com/tomasbjerre
on Sep 6, 2020https://github.com/java-diff-utils/java-diff-utils/issues/98#issue-694323571
de04bd6https://github.com/java-diff-utils/java-diff-utils/commit/de04bd688a0ee067fbe9bbc6344b1ceedfd6e220
tomasbjerre/violations-lib#95https://github.com/tomasbjerre/violations-lib/issues/95
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.