Title: Too many permissions file rereads - can slow down much · Issue #796 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Too many permissions file rereads - can slow down much · Issue #796 · UnitTestBot/UTBotJava
X Title: Too many permissions file rereads - can slow down much · Issue #796 · UnitTestBot/UTBotJava
Description: Description Currently if there is some unrecognized permission - we have 55K errors in concrete execution logs. It shows indirectly that there are many permission read attempts. And this is only for one method test generation. Permission...
Open Graph Description: Description Currently if there is some unrecognized permission - we have 55K errors in concrete execution logs. It shows indirectly that there are many permission read attempts. And this is only fo...
X Description: Description Currently if there is some unrecognized permission - we have 55K errors in concrete execution logs. It shows indirectly that there are many permission read attempts. And this is only fo...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/796
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Too many permissions file rereads - can slow down much","articleBody":"**Description**\r\n\r\nCurrently if there is some unrecognized permission - we have 55K errors in concrete execution logs. \r\nIt shows indirectly that there are many permission read attempts. And this is only for one method test generation.\r\nPermissions file is not expected to be changed during UTBot execution. \r\nSo it can be read only before test generation - to save time.\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. Open IntelliJ IDEA with installed UTBot plugin (with Security Manager turned on)\r\n2. Open/create a project with JDK 8/11\r\n3. Add the following class:\r\n\r\n~~~java\r\npublic class SecurityCheck {\r\n public String property(String key) {\r\n return System.getProperty(key);\r\n }\r\n}\r\n~~~\r\n\r\n4. Create or put the following text into user.home}/.utbot/sandbox.policy // here \"test\" is invalid\r\n```\r\ngrant {\r\n permission java.util.PropertyPermission \"*\", \"test\";\r\n};\r\n```\r\n5. Generate tests for the SecurityCheck class\r\n6. Check Concrete executor logs\r\n\r\n**Expected behavior**\r\n\r\nPermissions file can be read once before test generation - to save time.\r\n\r\n**Actual behavior**\r\n\r\nThere are about 55K errors \"invalid permission: test\" in concrete executor log.\r\nThis shows that UTBot is trying to read and recognize this permission many times during test execution.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\nMany errors with the following text:\r\n~~~\r\njava.security.policy: error adding Permission, java.util.PropertyPermission:\r\n\tjava.lang.IllegalArgumentException: invalid permission: test\r\n~~~\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.1 - 2022.1.4\r\nJDK 8 / 11\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-08-26T12:57:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/796/UTBotJava/issues/796"}
| 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:59e87703-2981-f1b3-ea79-1ab718b9e429 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DE0:10CCE1:64FD6B:832808:698EADE6 |
| html-safe-nonce | ae9f57e96dd83cfd4012ce4744ecd48046636171b67317e818d5fdacd8efda51 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REUwOjEwQ0NFMTo2NEZENkI6ODMyODA4OjY5OEVBREU2IiwidmlzaXRvcl9pZCI6IjM3NTAwMzc0MTIyMTU5NTkwMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56b22903b6d3f83d18d13050e45d25454bceae7c3cbfd18da4c42626b0b1fc50 |
| hovercard-subject-tag | issue:1352233842 |
| 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/UnitTestBot/UTBotJava/796/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b551daaca6f75b0e1033732beb18ddd3d590eb26b302ce88c850700515dc11d/UnitTestBot/UTBotJava/issues/796 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b551daaca6f75b0e1033732beb18ddd3d590eb26b302ce88c850700515dc11d/UnitTestBot/UTBotJava/issues/796 |
| og:image:alt | Description Currently if there is some unrecognized permission - we have 55K errors in concrete execution logs. It shows indirectly that there are many permission read attempts. And this is only fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width