Skip to content

#5.21 itest购买云存储后套餐未更新,后台管理页添加也失败

详细看2020.12.9

ssh ol@182.92.192.70
+%UrZ{DuO:yK}BE8kLXm

ssh root@192.168.253.221
Gk9|SP965TL2>3HV

https://wiki.ispeco.com/pages/viewpage.action?pageId=115573518
export PATH=$PWD/jdk8u282-b08/bin:$PATH
    java -jar arthas-boot.jar

##一、后台管理页添加

HostedDataManagementResource
UserPackageComponentImpl

iportal接口:
ICloudUserQuotaResource


http://127.0.0.1:8099/web/mycontent/quota/hosteddatageneral.json?token=hjO_VdcrotyBegGSQs9Jl5FYdqRpgKqfwy8DByLShdULcz0QutF401jMSNZs6cQBRJwlgSNSO2h8BduZhsosow..

生成token
http://127.0.0.1:8099/services/security/tokens.json
http://127.0.0.1:8099/web/pricing/cloudstorage
https://www.supermapol.com/web/pricing/hosteddata
https://www.supermapol.com/web/pricing/timelicense#desktop
https://www.supermapol.com/web/pricing/hostedgisserver

二、iportal

1.校验token


校验token
TokenServiceResource
ShiroUtil
MyShiroFilter  * 校验token的过滤器

iserver-system.xml
<tokenKey>

2.生成token

watch com.supermap.icloud.cas.client.service.AccountManagerService nickNameModify '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'

arthas


watch com.supermap.services.security.TokenUtil getTokenKey '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'



watch com.supermap.services.security.TokenUtil getTokenInfo '{params,returnObj,throwExp,target.getTokenKey()}' -v -n 5 -x 3 '1==1'

watch com.supermap.services.security.TokenUtil reserveTokenInfo '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'

watch com.supermap.services.security.TokenRequestUtil login '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'

解析
watch com.supermap.services.security.TokenRequestUtil a '{params,params[0].getRemoteHost(),returnObj,throwExp}' -v -n 5 -x 3 '1==1'

watch com.supermap.services.security.TokenRequestUtil a '{params,params[0].getRemoteHost(),params[0].getRemoteAddr(),returnObj,throwExp}' -v -n 5 -x 3 '1==1'

生成
watch com.supermap.services.rest.resources.impl.TokenServiceResource generateToken '{params,params[0].getRemoteHost(),params[0].getRemoteAddr(),returnObj,throwExp}' -v -n 5 -x 3 '1==1'

生成token
watch com.supermap.services.security.TokenUtil buildEncryptingStr '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'

得到token 从对象
watch com.supermap.services.security.TokenUtil generateToken '{params,returnObj,throwExp,target.getTokenKey()}' -v -n 5 -x 3 '1==1'

生成
watch com.supermap.services.rest.resources.impl.TokenServiceResource generateToken '{params,params[0].getRemoteHost(),params[0].getRemoteAddr(),returnObj,throwExp}' -v -n 5 -x 3 '1==1'

"ip":"172.24.0.198"
"ip":"172.24.0.249"
ip为 192.168.253.221
https://itest.supermapol.com/services/security/tokens      post

{
  "username":"324366",
  "password":"abcdefgh",
  "expiration":315360000000,
  "clientType":"IP",
  "ip":"172.24.0.198"
}

10年: ("expiration":315360000000)
54iZIctNGHR1hMCod3qxEQYjxkxDrIHLPEgL4xSNjhpsAf_m0i0JnvJqf7GD_LldHPuzTHGO01gYHd4uzMq9OQ..
解析
watch com.supermap.services.security.TokenRequestUtil a '{params,params[0].getRemoteHost(),params[0].getRemoteAddr(),returnObj,throwExp}' -v -n 5 -x 3 '1==1'


put
https://itest.supermapol.com/web/mycontent/quota/hosteddatageneral.json?token=54iZIctNGHR1hMCod3qxEQYjxkxDrIHLPEgL4xSNjhpsAf_m0i0JnvJqf7GD_LldHPuzTHGO01gYHd4uzMq9OQ..

问题:

用gishost调portal接口
用fidler调portal接口
生成
ip为 192.168.253.221

用gishost调portal接口
用fidler调portal接口
解析
172.24.0.249   172.24.0.198