{"action":"created","issue":{"url":"https://api.github.com/repos/marklogic/marklogic-data-hub/issues/986","repository_url":"https://api.github.com/repos/marklogic/marklogic-data-hub","labels_url":"https://api.github.com/repos/marklogic/marklogic-data-hub/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/marklogic-data-hub/issues/986/comments","events_url":"https://api.github.com/repos/marklogic/marklogic-data-hub/issues/986/events","html_url":"https://github.com/marklogic/marklogic-data-hub/issues/986","id":322096090,"node_id":"MDU6SXNzdWUzMjIwOTYwOTA=","number":986,"title":"QS created a flow that could not be deleted","user":{"login":"kcoleman-marklogic","id":1951367,"node_id":"MDQ6VXNlcjE5NTEzNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/1951367?v=4","gravatar_id":"","url":"https://api.github.com/users/kcoleman-marklogic","html_url":"https://github.com/kcoleman-marklogic","followers_url":"https://api.github.com/users/kcoleman-marklogic/followers","following_url":"https://api.github.com/users/kcoleman-marklogic/following{/other_user}","gists_url":"https://api.github.com/users/kcoleman-marklogic/gists{/gist_id}","starred_url":"https://api.github.com/users/kcoleman-marklogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcoleman-marklogic/subscriptions","organizations_url":"https://api.github.com/users/kcoleman-marklogic/orgs","repos_url":"https://api.github.com/users/kcoleman-marklogic/repos","events_url":"https://api.github.com/users/kcoleman-marklogic/events{/privacy}","received_events_url":"https://api.github.com/users/kcoleman-marklogic/received_events","type":"User","site_admin":false},"labels":[{"id":491936490,"node_id":"MDU6TGFiZWw0OTE5MzY0OTA=","url":"https://api.github.com/repos/marklogic/marklogic-data-hub/labels/2.0","name":"2.0","color":"1d76db","default":false},{"id":907770791,"node_id":"MDU6TGFiZWw5MDc3NzA3OTE=","url":"https://api.github.com/repos/marklogic/marklogic-data-hub/labels/3.0","name":"3.0","color":"9aed8b","default":false},{"id":313080263,"node_id":"MDU6TGFiZWwzMTMwODAyNjM=","url":"https://api.github.com/repos/marklogic/marklogic-data-hub/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-10T21:43:49Z","updated_at":"2018-06-05T19:44:26Z","closed_at":null,"author_association":"NONE","body":"#### The issue\n\nQuickStart created an input flow configuration file that could not be deleted. When I tried to remove the flow, QS threw an `java.nio.file.AccessDeniedException` exception. I couldn't delete it from Windows Explorer, either.\n\nSubsequent attempts to create and delete flows worked fine, so this is obviously low priority, but I wanted to capture the details for future reference.\n\n#### Tech details\n\n* OS: Windows 7\n* ML version: roughly 9.0-5\n* DHF: 3.0\n* Browser: Chrome\n\n#### The devil is in the details...\n\nBelow is a partial stack trace from QS, starting with the log messages from when I created the flow. I do wonder about that \"min modified\" message.\n```\n13:48:31.105 [http-nio-8080-exec-6] INFO  c.m.h.scaffold.impl.ScaffoldingImpl - writing: scaffolding/input/sjs/triples.sjs => C:\\DHF\\plugins\\entities\\Product\\input\\foo\\triples.sjs\n13:48:31.112 [http-nio-8080-exec-6] INFO  c.m.h.scaffold.impl.ScaffoldingImpl - writing: scaffolding/input/sjs/main.sjs => C:\\DHF\\plugins\\entities\\Product\\input\\foo\\main.sjs\n13:48:38.470 [SimpleAsyncTaskExecutor-6] INFO  c.m.hub.impl.EntityManagerImpl - min modified: 1525984558258\n13:48:39.757 [SimpleAsyncTaskExecutor-6] INFO  c.m.hub.util.PerformanceLogger - PERFORMANCE: DataHubService.installUserModules took 7.570126167s\n13:54:26.310 [SimpleAsyncTaskExecutor-7] WARN  c.m.c.e.f.DefaultDocumentFileReader - Failed visiting file: C:\\DHF\\plugins\\entities\\Product\\input\\foo\njava.nio.file.AccessDeniedException: C:\\DHF\\plugins\\entities\\Product\\input\\foo\n        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)\n        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)\n        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)\n        at sun.nio.fs.WindowsDirectoryStream.<init>(WindowsDirectoryStream.java:86)\n        at sun.nio.fs.WindowsFileSystemProvider.newDirectoryStream(WindowsFileSystemProvider.java:518)\n        at java.nio.file.Files.newDirectoryStream(Files.java:457)\n        at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)\n        at java.nio.file.FileTreeWalker.next(FileTreeWalker.java:372)\n        at java.nio.file.Files.walkFileTree(Files.java:2706)\n        at java.nio.file.Files.walkFileTree(Files.java:2742)\n        at com.marklogic.client.ext.file.DefaultDocumentFileReader.readDocumentFiles(DefaultDocumentFileReader.java:52)\n        at com.marklogic.client.ext.file.GenericFileLoader.loadFiles(GenericFileLoader.java:75)\n        at com.marklogic.client.ext.modulesloader.impl.DefaultModulesLoader.loadAssets(DefaultModulesLoader.java:323)\n        at com.marklogic.client.ext.modulesloader.impl.DefaultModulesLoader.loadModules(DefaultModulesLoader.java:132)\n        at com.marklogic.hub.deploy.commands.LoadUserModulesCommand.execute(LoadUserModulesCommand.java:154)\n        at com.marklogic.appdeployer.impl.AbstractAppDeployer.executeCommand(AbstractAppDeployer.java:111)\n        at com.marklogic.appdeployer.impl.AbstractAppDeployer.deploy(AbstractAppDeployer.java:70)\n        at com.marklogic.quickstart.service.DataHubService.installUserModules(DataHubService.java:186)\n        at com.marklogic.quickstart.service.DataHubService.installUserModules(DataHubService.java:90)\n        at com.marklogic.quickstart.service.DataHubService.installUserModulesAsync(DataHubService.java:83)\n        at com.marklogic.quickstart.service.DataHubService$$FastClassBySpringCGLIB$$4c244452.invoke(<generated>)\n        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)\n        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)\n        at org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:115)\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)\n```\n\nI couldn't remove the folder in question from Windows Explorer, either. When I examined the folder via cygwin, it has a whacky group/owner:\n```\n$ cd /cygdrive/c/dhf/plugins/entities/Product/input\n$ ls -l\ntotal 4\ndrwxr-x---  1 Unknown+User Unknown+Group 0 May 10 20:54  foo\ndrwxr-xr-x+ 1 kcoleman     Domain Users  0 May  9 19:07 'Load Products'\n```\n\nThe exact context was that I had walked through the QS tutorial to point of creating the harmonize flow, and then went back to check something related to the input flow, for which purpose I created one name \"foo\" under Product.\n\n┆Status: Closed\n"},"comment":{"url":"https://api.github.com/repos/marklogic/marklogic-data-hub/issues/comments/394836030","html_url":"https://github.com/marklogic/marklogic-data-hub/issues/986#issuecomment-394836030","issue_url":"https://api.github.com/repos/marklogic/marklogic-data-hub/issues/986","id":394836030,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDgzNjAzMA==","user":{"login":"marklogic-builder","id":7060087,"node_id":"MDQ6VXNlcjcwNjAwODc=","avatar_url":"https://avatars3.githubusercontent.com/u/7060087?v=4","gravatar_id":"","url":"https://api.github.com/users/marklogic-builder","html_url":"https://github.com/marklogic-builder","followers_url":"https://api.github.com/users/marklogic-builder/followers","following_url":"https://api.github.com/users/marklogic-builder/following{/other_user}","gists_url":"https://api.github.com/users/marklogic-builder/gists{/gist_id}","starred_url":"https://api.github.com/users/marklogic-builder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marklogic-builder/subscriptions","organizations_url":"https://api.github.com/users/marklogic-builder/orgs","repos_url":"https://api.github.com/users/marklogic-builder/repos","events_url":"https://api.github.com/users/marklogic-builder/events{/privacy}","received_events_url":"https://api.github.com/users/marklogic-builder/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T19:44:26Z","updated_at":"2018-06-05T19:44:26Z","author_association":"NONE","body":"➤ Scott Brooks commented:\n\nI've updated to the latest ML 9 and cleared out my DB and started from scratch and the above error goes away.   I'm also unable to reproduce.   I'll just close this bug for now.  If it pops back up, we can re-open.\n"}}
{"actor":{"display_login":"marklogic-builder"}}