Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link fails for directories with "Access violation" #17

Open
ncw opened this issue Apr 25, 2018 · 1 comment
Open

Link fails for directories with "Access violation" #17

ncw opened this issue Apr 25, 2018 · 1 comment
Labels

Comments

@ncw
Copy link
Collaborator

ncw commented Apr 25, 2018

Adding this unit test (in the fix-link-dir branch) shows that Link fails on directories.

func TestExportDir(t *testing.T) {
	session := initSession(t)
	node := createDir(t, session, "testdir1", session.FS.root)

	// Don't include decryption key
	retry(t, "Failed to export link (key not included)", func() error {
		_, err := session.Link(node, false)
		return err
	})

	// Do include decryption key
	retry(t, "Failed to export link (key included)", func() error {
		_, err := session.Link(node, true)
		return err
	})
}

The result of this is

--- FAIL: TestExportDir (2.19s)
	mega_test.go:35: Failed to export link (key not included) failed: Access violation
@ncw ncw added the bug label Apr 25, 2018
@ncw
Copy link
Collaborator Author

ncw commented Apr 25, 2018

@sogko you wrote the code for this originally - any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@ncw and others