insist93 opened a new issue, #2733:
URL: https://github.com/apache/incubator-hugegraph/issues/2733

   ### Problem Type (问题类型)
   
   rest-api (结果不合预期)
   
   ### Before submit
   
   - [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.5.0 (Apache Release Version)
   - Backend: RocksDB 3 nodes, HDD or SSD 
   - OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x 
   - Data Size:  3 vertices, 3edges 
   
   
   ### Your Question (问题描述)
   
   
   `curl --location --request PUT 
'http://172.16.31.138:8080/graphs/friend/graph/edges/S1:Bob>1>1>>S1:Charlie?action=eliminate'
 \
   --header 'Content-Type: application/json' \
   --data-raw '{
       "properties": {
           "since": "1999-01-01"
       }
   }'`
   如上删除边属性,提示边属性非空无法删除
   response
   `{
       "exception": "class java.lang.IllegalArgumentException",
       "message": "Can't remove non-null edge property 'p[since->1999-01-01]'",
       "cause": ""
   }`
   
   # 尝试更新边属性为null,失败
   `curl --location --request PUT 
'http://172.16.31.138:8080/graphs/friend/graph/edges/S1:Bob>1>1>>S1:Charlie?action=append'
 \
   --header 'Content-Type: application/json' \
   --data-raw '{
       "properties": {
           "since": null
       }
   }'`
   response
   `{
       "exception": "class java.lang.IllegalArgumentException",
       "message": "Not allowed to set value of property 'since' to null for 
edge 'null'",
       "cause": ""
   }`
   
   # 顶点属性的删除存在相同问题
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   
   ```
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to