René's URL Explorer Experiment


Title: 0.2.3 regression: struct.error: byte format requires -128 <= number <= 127 · Issue #16 · tcalmant/python-javaobj · GitHub

Open Graph Title: 0.2.3 regression: struct.error: byte format requires -128 <= number <= 127 · Issue #16 · tcalmant/python-javaobj

X Title: 0.2.3 regression: struct.error: byte format requires -128 <= number <= 127 · Issue #16 · tcalmant/python-javaobj

Description: Here's an xxd dump of a file that passes a loads/dumps roundtrip in 0.2.2, but fails in 0.2.3: 0000000: aced 0005 7372 0033 636f 6d2e 7375 6e2e ....sr.3com.sun. 0000010: 6372 7970 746f 2e70 726f 7669 6465 722e crypto.provider. 0000020: 5...

Open Graph Description: Here's an xxd dump of a file that passes a loads/dumps roundtrip in 0.2.2, but fails in 0.2.3: 0000000: aced 0005 7372 0033 636f 6d2e 7375 6e2e ....sr.3com.sun. 0000010: 6372 7970 746f 2e70 726f 76...

X Description: Here's an xxd dump of a file that passes a loads/dumps roundtrip in 0.2.2, but fails in 0.2.3: 0000000: aced 0005 7372 0033 636f 6d2e 7375 6e2e ....sr.3com.sun. 0000010: 6372 7970 746f 2e70 726...

Opengraph URL: https://github.com/tcalmant/python-javaobj/issues/16

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.2.3 regression: struct.error: byte format requires -128 \u003c= number \u003c= 127","articleBody":"Here's an xxd dump of a file that passes a loads/dumps roundtrip in 0.2.2, but fails in 0.2.3:\r\n\r\n```\r\n0000000: aced 0005 7372 0033 636f 6d2e 7375 6e2e  ....sr.3com.sun.\r\n0000010: 6372 7970 746f 2e70 726f 7669 6465 722e  crypto.provider.\r\n0000020: 5365 616c 6564 4f62 6a65 6374 466f 724b  SealedObjectForK\r\n0000030: 6579 5072 6f74 6563 746f 72cd 57ca 59e7  eyProtector.W.Y.\r\n0000040: 30bb 5302 0000 7872 0019 6a61 7661 782e  0.S...xr..javax.\r\n0000050: 6372 7970 746f 2e53 6561 6c65 644f 626a  crypto.SealedObj\r\n0000060: 6563 743e 363d a6c3 b754 7002 0004 5b00  ect\u003e6=...Tp...[.\r\n0000070: 0d65 6e63 6f64 6564 5061 7261 6d73 7400  .encodedParamst.\r\n0000080: 025b 425b 0010 656e 6372 7970 7465 6443  .[B[..encryptedC\r\n0000090: 6f6e 7465 6e74 7100 7e00 024c 0009 7061  ontentq.~..L..pa\r\n00000a0: 7261 6d73 416c 6774 0012 4c6a 6176 612f  ramsAlgt..Ljava/\r\n00000b0: 6c61 6e67 2f53 7472 696e 673b 4c00 0773  lang/String;L..s\r\n00000c0: 6561 6c41 6c67 7100 7e00 0378 7075 7200  ealAlgq.~..xpur.\r\n00000d0: 025b 42ac f317 f806 0854 e002 0000 7870  .[B......T....xp\r\n00000e0: 0000 000f 300d 0408 4b28 2520 e440 5a01  ....0...K(% .@Z.\r\n00000f0: 0201 1475 7100 7e00 0500 0001 08e4 50fa  ...uq.~.......P.\r\n0000100: 6ccd 4c40 e0db 498b 57ab fcf0 09bc 3ac8  l.L@..I.W.....:.\r\n0000110: 0608 1915 aad3 77de ed45 e8b6 5c77 fe60  ......w..E..\\w.`\r\n0000120: 6eb5 3cd2 05fd 7701 5d93 f5b1 6412 ff0a  n.\u003c...w.]...d...\r\n0000130: 6b67 2a18 106f fe82 097a c5a8 dd95 f2dc  kg*..o...z......\r\n0000140: 4250 a635 b3ed 78ab 54ed ad88 dd95 4508  BP.5..x.T.....E.\r\n0000150: 997e 7dc9 b140 9a5f f0d4 a3f3 8bc1 b58b  .~}..@._........\r\n0000160: d93b 9d24 1017 81fa 5582 193d 8133 c9b9  .;.$....U..=.3..\r\n0000170: 5f07 99e5 7829 762e b2e2 49db 4a45 d561  _...x)v...I.JE.a\r\n0000180: 064f 6daa 1fca 5159 462f 8c2d 873c 5c95  .Om...QYF/.-.\u003c\\.\r\n0000190: e98c 56f9 f4fe df75 593a ef9e 2c11 b03a  ..V....uY:..,..:\r\n00001a0: 0a7e a94b e2fa 5c06 884c b91b 53b3 57a0  .~.K..\\..L..S.W.\r\n00001b0: 5938 4e30 a015 8869 5b0e f7c5 a308 4603  Y8N0...i[.....F.\r\n00001c0: 1579 affb 0b29 0a1a de8b 9c56 83e2 de65  .y...).....V...e\r\n00001d0: ab22 537e be4a fe04 2a14 55cf abb6 3838  .\"S~.J..*.U...88\r\n00001e0: a2bf c384 39b1 c659 3000 b521 dcc3 b8b5  ....9..Y0..!....\r\n00001f0: 676f 07e9 879c 4883 c86d 9235 655e f131  go....H..m.5e^.1\r\n0000200: a915 5936 d574 0016 5042 4557 6974 684d  ..Y6.t..PBEWithM\r\n0000210: 4435 416e 6454 7269 706c 6544 4553 7400  D5AndTripleDESt.\r\n0000220: 1650 4245 5769 7468 4d44 3541 6e64 5472  .PBEWithMD5AndTr\r\n0000230: 6970 6c65 4445 53                        ipleDES\r\n```\r\n\r\nThis is on Python 2.7.5 on a CentOS 6 box. Roundtrip script that I used:\r\n```python\r\n#!/bin/env python\r\nimport javaobj\r\n\r\nwith open(\"input.ser\", \"rb\") as input_file:\r\n        with open(\"output_%s.ser\" % javaobj.__version__, \"wb\") as output_file:\r\n                obj = javaobj.load(input_file)\r\n                output_file.write(javaobj.dumps(obj))\r\n```\r\nProduces the following error on 0.2.3:\r\n```\r\nTraceback (most recent call last):\r\n  File \"./redump.py\", line 7, in \u003cmodule\u003e\r\n    output_file.write(javaobj.dumps(obj))\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 209, in dumps\r\n    return marshaller.dump(obj)\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 1167, in dump\r\n    self.writeObject(obj)\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 1192, in writeObject\r\n    self.write_object(obj)\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 1372, in write_object\r\n    self._write_value(field_type, getattr(obj, field_name))\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 1525, in _write_value\r\n    self.write_array(value)\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 1492, in write_array\r\n    self._write_value(type_char, v)\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 1508, in _write_value\r\n    self._writeStruct(\"\u003eb\", 1, (value,))\r\n  File \"/home/vmuser/py27env/lib/python2.7/site-packages/javaobj.py\", line 1218, in _writeStruct\r\n    ba = struct.pack(unpack, *args)\r\nstruct.error: byte format requires -128 \u003c= number \u003c= 127\r\n```","author":{"url":"https://github.com/voetsjoeba","@type":"Person","name":"voetsjoeba"},"datePublished":"2017-06-18T21:35:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/16/python-javaobj/issues/16"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:50e15d82-b549-0cb1-9560-1fe51b19722e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idADE4:DE287:586B11:78E665:696AACF1
html-safe-nonceda79ceeb1f6314e45a4f428fd98def3e23bcc4fe79e53304fdc4e9a97090a321
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREU0OkRFMjg3OjU4NkIxMTo3OEU2NjU6Njk2QUFDRjEiLCJ2aXNpdG9yX2lkIjoiNDcwNDEzNjExMDM2NTM4ODAxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac34707af884898e07aa67c740519fe2f0a3e9074e23a2f6c0ddc53625ac376628
hovercard-subject-tagissue:236747106
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/tcalmant/python-javaobj/16/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7209b871db10c1ba7b31f27c2bc4b68b7e6781897fbbbf6d8c90c06464cd1a80/tcalmant/python-javaobj/issues/16
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7209b871db10c1ba7b31f27c2bc4b68b7e6781897fbbbf6d8c90c06464cd1a80/tcalmant/python-javaobj/issues/16
og:image:altHere's an xxd dump of a file that passes a loads/dumps roundtrip in 0.2.2, but fails in 0.2.3: 0000000: aced 0005 7372 0033 636f 6d2e 7375 6e2e ....sr.3com.sun. 0000010: 6372 7970 746f 2e70 726f 76...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevoetsjoeba
hostnamegithub.com
expected-hostnamegithub.com
None3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9
turbo-cache-controlno-preview
go-importgithub.com/tcalmant/python-javaobj git https://github.com/tcalmant/python-javaobj.git
octolytics-dimension-user_id1540582
octolytics-dimension-user_logintcalmant
octolytics-dimension-repository_id15333794
octolytics-dimension-repository_nwotcalmant/python-javaobj
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15333794
octolytics-dimension-repository_network_root_nwotcalmant/python-javaobj
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
releasedd9a979046e6382bd084e2bd873bf65f797125ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/tcalmant/python-javaobj/issues/16#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftcalmant%2Fpython-javaobj%2Fissues%2F16
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%2Ftcalmant%2Fpython-javaobj%2Fissues%2F16
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=tcalmant%2Fpython-javaobj
Reloadhttps://github.com/tcalmant/python-javaobj/issues/16
Reloadhttps://github.com/tcalmant/python-javaobj/issues/16
Reloadhttps://github.com/tcalmant/python-javaobj/issues/16
tcalmant https://github.com/tcalmant
python-javaobjhttps://github.com/tcalmant/python-javaobj
Notifications https://github.com/login?return_to=%2Ftcalmant%2Fpython-javaobj
Fork 20 https://github.com/login?return_to=%2Ftcalmant%2Fpython-javaobj
Star 86 https://github.com/login?return_to=%2Ftcalmant%2Fpython-javaobj
Code https://github.com/tcalmant/python-javaobj
Issues 9 https://github.com/tcalmant/python-javaobj/issues
Pull requests 1 https://github.com/tcalmant/python-javaobj/pulls
Actions https://github.com/tcalmant/python-javaobj/actions
Wiki https://github.com/tcalmant/python-javaobj/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/tcalmant/python-javaobj/security
Please reload this pagehttps://github.com/tcalmant/python-javaobj/issues/16
Insights https://github.com/tcalmant/python-javaobj/pulse
Code https://github.com/tcalmant/python-javaobj
Issues https://github.com/tcalmant/python-javaobj/issues
Pull requests https://github.com/tcalmant/python-javaobj/pulls
Actions https://github.com/tcalmant/python-javaobj/actions
Wiki https://github.com/tcalmant/python-javaobj/wiki
Security https://github.com/tcalmant/python-javaobj/security
Insights https://github.com/tcalmant/python-javaobj/pulse
New issuehttps://github.com/login?return_to=https://github.com/tcalmant/python-javaobj/issues/16
New issuehttps://github.com/login?return_to=https://github.com/tcalmant/python-javaobj/issues/16
0.2.3 regression: struct.error: byte format requires -128 <= number <= 127https://github.com/tcalmant/python-javaobj/issues/16#top
bughttps://github.com/tcalmant/python-javaobj/issues?q=state%3Aopen%20label%3A%22bug%22
0.3.0https://github.com/tcalmant/python-javaobj/milestone/1
https://github.com/voetsjoeba
https://github.com/voetsjoeba
voetsjoebahttps://github.com/voetsjoeba
on Jun 18, 2017https://github.com/tcalmant/python-javaobj/issues/16#issue-236747106
bughttps://github.com/tcalmant/python-javaobj/issues?q=state%3Aopen%20label%3A%22bug%22
0.3.0https://github.com/tcalmant/python-javaobj/milestone/1
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.