nodeSolidServer / nodeSolidServer/node-solid-server

Notepad does not work on localhost

未關閉
#1,151 1 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@jaxoncreed 已經在處理了。

開始於 2019年3月25日。

主要語言
JavaScript
星號
1.8k
分支
308
PR 合併指標
30 天內沒有已合併 PR

描述

This is probably related to #1150, this time installed via npm install -g solid-server on GNU/Linux with wildcard certificate (signed by own CA) for *.solid.localhost and corresponding entry in /etc/hosts.

The server reports: Solid server (5.0.0-beta.9) running on https://localhost:8443/

When I type a character into a line of a notepad, I see:

Error undefined sending data: Web error: 409 (Conflict) on PATCH of <https://bob.solid.localhost:8443/public/Test%20Notepad/index.ttl>

Starting the server with DEBUG=* solid start shows this in response to the typed character:

 solid:ACL Using ACL https://bob.solid.localhost:8443/public/.acl for ./Test%20Notepad/index.ttl +26s
  solid:ACL accessDenied: checking access to <https://bob.solid.localhost:8443/public/Test%20Notepad/index.ttl> by <https://bob.solid.localhost:8443/profile/card#me> and origin <https://bob.solid.localhost:8443> +0ms
  solid:ACL    2  default authentications about <https://bob.solid.localhost:8443/public/> in <https://bob.solid.localhost:8443/public/.acl> +0ms
  solid:ACL Origin <https://bob.solid.localhost:8443> is trusted +0ms
  solid:ACL   modesAllowed: Origin null is trusted. +0ms
  solid:ACL    Checking auth <https://bob.solid.localhost:8443/public/.acl#owner> with agent <https://bob.solid.localhost:8443/profile/card#me> +1ms
  solid:ACL     Agent explicitly authenticated. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Write> +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Control> +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +1ms
  solid:ACL accessDenied: modeURIorReasons: ["http://www.w3.org/ns/auth/acl#Read","http://www.w3.org/ns/auth/acl#Write","http://www.w3.org/ns/auth/acl#Control"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Append> +0ms
  solid:ACL   Append required and Write allowed. OK +0ms
  solid:handlers PATCH -- /public/Test%20Notepad/index.ttl +0ms
  solid:handlers PATCH -- Target <https://bob.solid.localhost:8443/bob.solid.localhost/public/Test%20Notepad/index.ttl> (text/turtle) +1ms
  solid:handlers PATCH -- Received patch (273 bytes, application/sparql-update) +0ms
  solid:ACL Using ACL https://bob.solid.localhost:8443/public/.acl for ./Test%20Notepad/index.ttl +5ms
  solid:ACL Using ACL https://bob.solid.localhost:8443/public/.acl for ./Test%20Notepad/index.ttl +0ms
  solid:ACL accessDenied: checking access to <https://bob.solid.localhost:8443/public/Test%20Notepad/index.ttl> by <https://bob.solid.localhost:8443/profile/card#me> and origin <https://bob.solid.localhost:8443> +0ms
  solid:ACL    2  default authentications about <https://bob.solid.localhost:8443/public/> in <https://bob.solid.localhost:8443/public/.acl> +0ms
  solid:ACL Origin <https://bob.solid.localhost:8443> is trusted +1ms
  solid:ACL   modesAllowed: Origin null is trusted. +0ms
  solid:ACL    Checking auth <https://bob.solid.localhost:8443/public/.acl#owner> with agent <https://bob.solid.localhost:8443/profile/card#me> +0ms
  solid:ACL     Agent explicitly authenticated. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Write> +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Control> +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["http://www.w3.org/ns/auth/acl#Read","http://www.w3.org/ns/auth/acl#Write","http://www.w3.org/ns/auth/acl#Control"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL   Mode required and allowed:<http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: checking access to <https://bob.solid.localhost:8443/public/Test%20Notepad/index.ttl> by <https://bob.solid.localhost:8443/profile/card#me> and origin <https://bob.solid.localhost:8443> +0ms
  solid:ACL    2  default authentications about <https://bob.solid.localhost:8443/public/> in <https://bob.solid.localhost:8443/public/.acl> +0ms
  solid:ACL Origin <https://bob.solid.localhost:8443> is trusted +1ms
  solid:ACL   modesAllowed: Origin null is trusted. +0ms
  solid:ACL    Checking auth <https://bob.solid.localhost:8443/public/.acl#owner> with agent <https://bob.solid.localhost:8443/profile/card#me> +0ms
  solid:ACL     Agent explicitly authenticated. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Write> +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Control> +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["http://www.w3.org/ns/auth/acl#Read","http://www.w3.org/ns/auth/acl#Write","http://www.w3.org/ns/auth/acl#Control"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Write> +0ms
  solid:ACL   Mode required and allowed:<http://www.w3.org/ns/auth/acl#Write> +0ms
  solid:handlers PATCH -- Read target file (810 bytes) +1ms
  solid:handlers PATCH -- Reading https://bob.solid.localhost:8443/bob.solid.localhost/public/Test%20Notepad/index.ttl with content type text/turtle +0ms
  solid:handlers PATCH -- Parsed target file +5ms
  solid:handlers PATCH -- Applying patch +0ms
  solid:handlers PATCH -- FAILED. Returning 409. Message: 'Could not find to delete: <https://bob.solid.localhost:8443/public/Test%20Notepad/index.ttl#this_line0> <http://rdfs.org/sioc/ns#content> "" .' +2ms
  solid:server Error page because of: { [HTTPError: The patch could not be applied. Could not find to delete: <https://bob.solid.localhost:8443/public/Test%20Notepad/index.ttl#this_line0> <http://rdfs.org/sioc/ns#content> "" .]
  name: 'HTTPError',
  message: 'The patch could not be applied. Could not find to delete: <https://bob.solid.localhost:8443/public/Test%20Notepad/index.ttl#this_line0> <http://rdfs.org/sioc/ns#content> "" .',
  status: 409 } +0ms

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。