Title: String record handling data truncation · Issue #46 · DiamondLightSource/pythonSoftIOC · GitHub
Open Graph Title: String record handling data truncation · Issue #46 · DiamondLightSource/pythonSoftIOC
X Title: String record handling data truncation · Issue #46 · DiamondLightSource/pythonSoftIOC
Description: When creating a string record, if you set an initial_value that is longer than 39 characters the data is silently truncated. It would be useful if there was at least a warning/error of some kind emitted when this occurs. In this example ...
Open Graph Description: When creating a string record, if you set an initial_value that is longer than 39 characters the data is silently truncated. It would be useful if there was at least a warning/error of some kind em...
X Description: When creating a string record, if you set an initial_value that is longer than 39 characters the data is silently truncated. It would be useful if there was at least a warning/error of some kind em...
Opengraph URL: https://github.com/DiamondLightSource/pythonSoftIOC/issues/46
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"String record handling data truncation","articleBody":"When creating a string record, if you set an `initial_value` that is longer than 39 characters the data is silently truncated. It would be useful if there was at least a warning/error of some kind emitted when this occurs.\r\n\r\nIn this example note that the trailing \"!\" of the string is missing:\r\n\r\n```\r\n# Import the basic framework components.\r\nfrom softioc import softioc, builder, asyncio_dispatcher\r\n\r\n# Create an asyncio dispatcher, the event loop is now running\r\ndispatcher = asyncio_dispatcher.AsyncioDispatcher()\r\n\r\n# Set the record prefix\r\nbuilder.SetDeviceName(\"PREFIX\")\r\n\r\n# Create some records\r\nbo1 = builder.stringOut('SO', initial_value=\"hello this is long sentence of 39 chars!\")\r\n\r\n# Boilerplate get the IOC started\r\nbuilder.LoadDatabase()\r\nsoftioc.iocInit(dispatcher)\r\n\r\n# Finally leave the IOC running with an interactive shell.\r\nsoftioc.interactive_ioc(globals())\r\n```\r\n\r\nGetting the value:\r\n```\r\n[...]$ caget PREFIX:SO\r\nPREFIX:SO hello this is long sentence of 39 chars\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/AlexanderWells-diamond","@type":"Person","name":"AlexanderWells-diamond"},"datePublished":"2021-10-11T08:26:41Z","url":"https://github.com/DiamondLightSource/pythonSoftIOC/issues/46"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bb810089-50ff-6b39-dd52-e468554e6dcc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C848:5F67C:2E1B79:3E6035:6B043D2C |
| html-safe-nonce | 9df53857ccc91ef798220c88a73d305f81985c130af26add4b4fbc7bc5c230c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODQ4OjVGNjdDOjJFMUI3OTozRTYwMzU6NkIwNDNEMkMiLCJ2aXNpdG9yX2lkIjoiNTY3NTk0MzYwMjk1MDUyMDEwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e1ba39c29236bb2feb8d4879c80d9fc367dc26bd7b72d379ea8eef392462f87a |
| hovercard-subject-tag | issue:1022413206 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DiamondLightSource/pythonSoftIOC/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce74b693180b58549226acda220ff8d3507268bc214e6a222901f8f76d3c1a50/DiamondLightSource/pythonSoftIOC/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce74b693180b58549226acda220ff8d3507268bc214e6a222901f8f76d3c1a50/DiamondLightSource/pythonSoftIOC/issues/46 |
| og:image:alt | When creating a string record, if you set an initial_value that is longer than 39 characters the data is silently truncated. It would be useful if there was at least a warning/error of some kind em... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AlexanderWells-diamond |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/DiamondLightSource/pythonSoftIOC git https://github.com/DiamondLightSource/pythonSoftIOC.git |
| octolytics-dimension-user_id | 1233618 |
| octolytics-dimension-user_login | DiamondLightSource |
| octolytics-dimension-repository_id | 20049394 |
| octolytics-dimension-repository_nwo | DiamondLightSource/pythonSoftIOC |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20049394 |
| octolytics-dimension-repository_network_root_nwo | DiamondLightSource/pythonSoftIOC |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width