nodeSolidServer / nodeSolidServer/node-solid-server
Deletion of decimals fail with a 409
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.8k
- Fork
- 308
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
When I write the following data to my Pod:
@prefix : <#>.
@prefix schem: <http://schema.org/>.
:160581889284507796464006133086
a schem:MonetaryAmount; schem:amount 1.0; schem:currency "USD".
Written using the following request:
curl 'https://vincent-test.solidcommunity.net/private/tmp/tripledoc-bug.ttl' -X PATCH -H 'Content-Type: application/sparql-update' --data-raw $' INSERT DATA {<https://vincent-test.solidcommunity.net/private/tmp/tripledoc-bug.ttl#160581889284507796464006133086> a <http://schema.org/MonetaryAmount>;\n <http://schema.org/currency> "USD";\n <http://schema.org/amount> "1"^^<http://www.w3.org/2001/XMLSchema#decimal>.\n};'
As far as I can tell I should be able to delete that data with the following PATCH:
DELETE DATA {<https://vincent-test.solidcommunity.net/private/tmp/tripledoc-bug.ttl#160581889284507796464006133086> a <http://schema.org/MonetaryAmount>;
<http://schema.org/amount> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal>;
<http://schema.org/currency> "USD".};
However, that results in the following response:
The patch could not be applied. Could not find to delete: https://vincent-test.solidcommunity.net/private/tmp/tripledoc-bug.ttl#160581889284507796464006133086 http://schema.org/amount "1.0"^^http://www.w3.org/2001/XMLSchema#decimal .
This appears to happen specifically with decimals. (Though it seems to be the problem has a similar root cause to https://github.com/solid/node-solid-server/issues/1468, but for decimals rather than booleans.)
See this sandbox for the reproduction (log in with a solidcommunity.net account): https://codesandbox.io/s/floral-glitter-jfejz?file=/src/index.ts
(Originally reported by @abigpotostew against Tripledoc.)
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi DELETE DATA đối với các giá trị thập phân bằng các yêu cầu curl trong issue và so sánh lỗi đó với yêu cầu INSERT DATA trước đó. Truy vết quá trình xử lý PATCH của máy chủ đối với các thuật ngữ RDF thập phân; công việc được xem là hoàn tất khi có thể xóa thành công "1"^^xsd:decimal đã lưu bằng một yêu cầu sử dụng giá trị tương đương "1.0"^^xsd:decimal.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100