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

sometimes source-pane display undefined for an existing body #17

Open
bourgeoa opened this issue Jun 22, 2021 · 1 comment
Open

sometimes source-pane display undefined for an existing body #17

bourgeoa opened this issue Jun 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@bourgeoa
Copy link
Contributor

Sometimes source-pane display text undefined for an existing body. (see example below)
When editing original body is lost.
This is reproduceable (do in the same order) and does not appear only for text/plain file, but also text/html file
If you reload the page everything is ok again.
Displaying the sharing-pane seems to be the origin of the problem.

Only seen when a file acl is set.

  • text.txt.acl
    image
  • human readable pane
    image
  • source-pane
    image
  • editing the pane edit the word undefined and not the real body and you lose previous content
    image
@bourgeoa
Copy link
Contributor Author

rdflib.js in kb.fetcher.webOperations() is responsible of the problem.
response.responseText on some situation returns undefined.
Replacing by await response.text() returns correctly the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant