René's URL Explorer Experiment


Title: Long strings are truncated on packing on Android 4.x · Issue #406 · msgpack/msgpack-java · GitHub

Open Graph Title: Long strings are truncated on packing on Android 4.x · Issue #406 · msgpack/msgpack-java

X Title: Long strings are truncated on packing on Android 4.x · Issue #406 · msgpack/msgpack-java

Description: The code below is an Android app that packs and then unpacks a map containing a single String member ("data"). On Android 4.4.2 this member is truncated when packing if it is 512 characters or longer; 511 or fewer and it works fine. The ...

Open Graph Description: The code below is an Android app that packs and then unpacks a map containing a single String member ("data"). On Android 4.4.2 this member is truncated when packing if it is 512 characters or long...

X Description: The code below is an Android app that packs and then unpacks a map containing a single String member ("data"). On Android 4.4.2 this member is truncated when packing if it is 512 characte...

Opengraph URL: https://github.com/msgpack/msgpack-java/issues/406

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Long strings are truncated on packing on Android 4.x","articleBody":"The code below is an Android app that packs and then unpacks a map containing a single String member (`\"data\"`). On Android 4.4.2 this member is truncated when packing if it is 512 characters or longer; 511 or fewer and it works fine.\r\n\r\nThe problem does not occur on Android 5.x or 6.x.\r\n\r\n```\r\npackage my.app;\r\n\r\nimport android.app.Activity;\r\nimport android.os.Bundle;\r\nimport android.widget.Toast;\r\nimport android.util.Log;\r\n\r\nimport java.io.ByteArrayOutputStream;\r\nimport java.io.IOException;\r\n\r\nimport org.msgpack.core.MessageFormat;\r\nimport org.msgpack.core.MessagePack;\r\nimport org.msgpack.core.MessagePacker;\r\nimport org.msgpack.core.MessageUnpacker;\r\n\r\npublic class MainActivity extends Activity\r\n{\r\n    @Override\r\n    public void onCreate(Bundle savedInstanceState)\r\n    {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.main);\r\n\r\n\t\ttry {\r\n\t\t\tTestClass testMessage = new TestClass();\r\n\t\t\ttestMessage.data = testString;\r\n\r\n\t\t\tbyte[] encoded = writeMsgpack(testMessage);\r\n\t\t\tTestClass decoded = readMsgpack(encoded);\r\n\r\n\t\t\tString received = decoded.data;\r\n\t\t\tif(received.equals(testString)) {\r\n\t\t\t\tToast.makeText(this, \"Test success\", Toast.LENGTH_LONG).show();\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(this, \"Test fail\", Toast.LENGTH_LONG).show();\r\n\t\t\t\tLog.w(TAG, \"Decoded string data: \" + received);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n    }\r\n\r\n\tstatic byte[] writeMsgpack(TestClass message) {\r\n\t\tbyte[] result = null;\r\n\t\ttry {\r\n\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\r\n\t\t\tMessagePacker packer = MessagePack.newDefaultPacker(out);\r\n\t\t\tmessage.writeMsgpack(packer);\r\n\t\t\tpacker.flush();\r\n\t\t\tresult = out.toByteArray();\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n\tstatic TestClass readMsgpack(byte[] packed) {\r\n\t\tTestClass result = null;\r\n\t\ttry {\r\n\t\t\tMessageUnpacker unpacker = MessagePack.newDefaultUnpacker(packed);\r\n\t\t\tresult = (new TestClass()).readMsgpack(unpacker);\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n\tstatic class TestClass {\r\n\t\tpublic String data;\r\n\r\n\t\tvoid writeMsgpack(MessagePacker packer) throws IOException {\r\n\t\t\tpacker.packMapHeader(1);\r\n\t\t\tpacker.packString(\"data\");\r\n\t\t\tpacker.packString(data);\r\n\t\t}\r\n\r\n\t\tTestClass readMsgpack(MessageUnpacker unpacker) throws IOException {\r\n\t\t\tunpacker.unpackMapHeader();\r\n\t\t\tString fieldName = unpacker.unpackString();\r\n\t\t\tMessageFormat fieldFormat = unpacker.getNextFormat();\r\n\t\t\tif(fieldFormat.equals(MessageFormat.NIL)) {\r\n\t\t\t\tunpacker.unpackNil();\r\n\t\t\t} else if(fieldName.equals(\"data\")) {\r\n\t\t\t\tdata = unpacker.unpackString();\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\t}\r\n\r\n//\t/* succeeds */\r\n//\tprivate static String testString = \"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890\";\r\n\r\n\t/* fails */\r\n \tprivate static String testString = \"01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901\";\r\n\r\n\tprivate static final String TAG = \"MainActivity\";\r\n}\r\n```\r\n","author":{"url":"https://github.com/paddybyers","@type":"Person","name":"paddybyers"},"datePublished":"2016-12-29T23:02:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/406/msgpack-java/issues/406"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d4383eba-c89d-26ef-eea6-f65a6880c421
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB88A:289E91:17E9097:22A8454:6A54D68B
html-safe-noncebac1140734836d472eccbcecf8a71fe6e875d8a6118c8b189a0fad683330a706
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODhBOjI4OUU5MToxN0U5MDk3OjIyQTg0NTQ6NkE1NEQ2OEIiLCJ2aXNpdG9yX2lkIjoiMzE1MjY1ODAyNjAwNTMyMTM1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0ddc673afc45c33d3b577556aeea0a9d9855ddd85da80b954f81bd3069b6bb1b
hovercard-subject-tagissue:198081689
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/msgpack/msgpack-java/406/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3bd1bfc3b1972c3df41f1c67a454d90692bb6dfa30e79a0a7d168391860549db/msgpack/msgpack-java/issues/406
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3bd1bfc3b1972c3df41f1c67a454d90692bb6dfa30e79a0a7d168391860549db/msgpack/msgpack-java/issues/406
og:image:altThe code below is an Android app that packs and then unpacks a map containing a single String member ("data"). On Android 4.4.2 this member is truncated when packing if it is 512 characters or long...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepaddybyers
hostnamegithub.com
expected-hostnamegithub.com
Nonea556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54
turbo-cache-controlno-preview
go-importgithub.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git
octolytics-dimension-user_id198264
octolytics-dimension-user_loginmsgpack
octolytics-dimension-repository_id1971346
octolytics-dimension-repository_nwomsgpack/msgpack-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1971346
octolytics-dimension-repository_network_root_nwomsgpack/msgpack-java
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
release840b5d20d5a883c23cf56f5240b2c343d6cc0867
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/msgpack/msgpack-java/issues/406#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-java%2Fissues%2F406
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fmsgpack%2Fmsgpack-java%2Fissues%2F406
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=msgpack%2Fmsgpack-java
Reloadhttps://github.com/msgpack/msgpack-java/issues/406
Reloadhttps://github.com/msgpack/msgpack-java/issues/406
Reloadhttps://github.com/msgpack/msgpack-java/issues/406
Please reload this pagehttps://github.com/msgpack/msgpack-java/issues/406
msgpack https://github.com/msgpack
msgpack-javahttps://github.com/msgpack/msgpack-java
Notifications https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Fork 323 https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Star 1.5k https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Code https://github.com/msgpack/msgpack-java
Issues 60 https://github.com/msgpack/msgpack-java/issues
Pull requests 5 https://github.com/msgpack/msgpack-java/pulls
Actions https://github.com/msgpack/msgpack-java/actions
Projects https://github.com/msgpack/msgpack-java/projects
Wiki https://github.com/msgpack/msgpack-java/wiki
Security and quality 1 https://github.com/msgpack/msgpack-java/security
Insights https://github.com/msgpack/msgpack-java/pulse
Code https://github.com/msgpack/msgpack-java
Issues https://github.com/msgpack/msgpack-java/issues
Pull requests https://github.com/msgpack/msgpack-java/pulls
Actions https://github.com/msgpack/msgpack-java/actions
Projects https://github.com/msgpack/msgpack-java/projects
Wiki https://github.com/msgpack/msgpack-java/wiki
Security and quality https://github.com/msgpack/msgpack-java/security
Insights https://github.com/msgpack/msgpack-java/pulse
Long strings are truncated on packing on Android 4.xhttps://github.com/msgpack/msgpack-java/issues/406#top
https://github.com/komamitsu
https://github.com/paddybyers
paddybyershttps://github.com/paddybyers
on Dec 29, 2016https://github.com/msgpack/msgpack-java/issues/406#issue-198081689
komamitsuhttps://github.com/komamitsu
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.