zvmsdk-wsgi validation of query methods validate the wrong parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zVM Cloud Connector |
Confirmed
|
Low
|
cao biao |
Bug Description
in validation/
this function:
if _schema_
the second parameter should be args[2] not req.GET.
because the args[index](index to be determined, maybe fixed) is exactly the data we processed in handlers, just like 'userid_list' in following case:
@validation.
def inspect_stats(self, req, userid_list):
info = self.client.
return info
and req.GET.
This problem may effect every validation case of all the query methods.
Changed in python-zvm-sdk: | |
assignee: | nobody → cao biao (flytiger) |
Changed in python-zvm-sdk: | |
status: | New → Confirmed |
importance: | Undecided → Low |
summary: |
- zvmsdk-wsgi validation cannot validate the parameters processed + zvmsdk-wsgi validation cannot validate the wrong parameters |
summary: |
- zvmsdk-wsgi validation cannot validate the wrong parameters + zvmsdk-wsgi validation validate the wrong parameters |
summary: |
- zvmsdk-wsgi validation validate the wrong parameters + zvmsdk-wsgi validation of query methods validate the wrong parameters |
Changed in python-zvm-sdk: | |
milestone: | none → future |