Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Can't save to or open files to corporate OneDrive directories

0 votes
When I try to save a file to my corporate OneDrive environment (which is the standard documents folder) I get the following error message:

yEd has encountered the following error: Could not import file unnamed1.graphml.

java.io.FileNotFoundException: C:\Users\A615771\OneDrive - Atos\AtosConsulting\Presales\Ivoclar\unnamed1.graphml (Access is denied)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
    at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
    at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
    at java.base/java.net.URL.openStream(URL.java:1117)
    at y.H.G.ā(Unknown Source)
    at y.B.A.M.Đ(Unknown Source)
    at y.B.d.č(Unknown Source)
    at y.B.d.ā(Unknown Source)
    at y.B.d.ă(Unknown Source)
    at com.yworks.A.B.W.ă(Unknown Source)
    at com.yworks.A.B.W.ā(Unknown Source)
    at com.yworks.A.J.P.ā(Unknown Source)
    at com.yworks.A.J.P.ā(Unknown Source)
    at com.yworks.A.J.P$A.Ă(Unknown Source)
    at com.yworks.A.J.P.ā(Unknown Source)
    at com.yworks.A.K.D.ā(Unknown Source)
    at com.yworks.A.K.j.actionPerformed(Unknown Source)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
    at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    at java.desktop/java.awt.Component.processEvent(Component.java:6397)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
 

 

I found out, that it has to do with "File Ownership".

I can save a file to a local directory (e.g. C:\temp) and open it from there.

If I move the file to the OneDrive Directory (C:\users\<username>\<companyname>-OneDrive\Documents I can't open it anymore.

If I move it back to C:\temp I can't open it either:

But on local drives I can change the "File Ownership" (column can be shown in the Windows File Explorer) and set it to "Personal" and then I can open it again.

Anything what can be done?
in Help by
recategorized by

1 Answer

0 votes
The error message indicates that the user account in which you started yEd does not have the necessary rights to read the desired file from your network share. From your description, however, it seems to me that you are running yEd in the same user account you are using to access the file in Windows explorer. Off the top of my head I would think you should be able to open the file in yEd in this case. Unfortunately, since the problem lies with Java there is little we can do about it in yEd. Thus your best bet is probably copying the file from the network share to a local directory with Windows explorer, opening (and editing) the local file in yEd, saving to the local directory when done, and finally copying the modified file back to the network share with Windows explorer. I understand that this is a cumbersome workaround, but I cannot think of a more convenient solution.
by [yWorks] (161k points)
edited by
Thanks for the fast reaction. I can open the file with any text editor (e.g. notepad and notepad++). So it has nothing to do with the access rights, but probably is a Java issue (a Google search didn't reveal anything useful though). The workaround you describe is the obvious one, but as you say really cumbersome.
Legal Disclosure | Privacy Policy
...