spring cloud bug


$ curl localhost:8255/encrypt -d foobar-prd1                                                                                                                                                                        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    75  100    64  100    11   2000    343 --:--:-- --:--:-- --:--:--  400034                                                                                                                                  b9724e3300e8102d3a7a5976a916f23015898f666d6d61df1f75a1299f4dff


$ curl localhost:8255/decrypt -d
curl: option -d: requires parameter
curl: try 'curl --help' or 'curl --manual' for more information


$ curl localhost:8255/decrypt -d 400034b9724e3300e8102d3a7a5976a916f23015898f666                                                                                                                                  d6d61df1f75a1299f4dff
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   266    0   198  100    68   3142   1079 --:--:-- --:--:-- --:--:--  6187{"                                                                                                                                  timestamp":1511948878180,"status":500,"error":"Internal Server Error","exception                                                                                                                                  ":"java.lang.IllegalStateException","message":" Unable to invoke Cipher due to il                                                                                                                                  legal block size","path":"/decrypt"}


$ curl localhost:8255/decrypt -d  400034b9724e3300e8102d3a7a5976a916f23015898f66                                                                                                                                  6d6d61df1f75a1299f4dff
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100   266    0   198  100    68   6387   2193 --:--:-- --:--:-- --:--:-- 12375{"                                                                                                                                  timestamp":1511948898886,"status":500,"error":"Internal Server Error","exception                                                                                                                                  ":"java.lang.IllegalStateException","message":"Unable to invoke Cipher due to il                                                                                                                                  legal block size","path":"/decrypt"}


$ curl localhost:8255/decrypt -d 34b9724e3300e8102d3a7a5976a916f23015898f666d6d6                                                                                                                                  1df1f75a1299f4dff
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    75  100    11  100    64    354   2064 --:--:-- --:--:-- --:--:-- 64000fo                                                                                                                                  obar-prd1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值