Ticket #325 (closed defect: fixed)

Opened 3 years ago

Last modified 22 months ago

/autorisation_group bevat onjuiste totalen

Reported by: Michiel.Schok Owned by: robert
Priority: minor Milestone: MediaMosa 3.0
Component: Core Version:
Keywords: Cc:
MoSCoW: Must Have Estimated time after impact analysis:
Related to project: none Tested: yes
Accepted: yes Estimated Hours: 0

Description

Bij een call naar de /autorisation_group/{id}/hostname wordt als <item_count_total> altijd de 'limit' teruggegeven in plaats van het echte totale aantal.

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <header>
    <item_count>200</item_count>
    <item_count_total>200</item_count_total>
    <item_offset>0</item_offset>
    <request_class>mediamosa_rest_call_aut_group_get_hostnames</request_class>
    <request_matched_method>GET</request_matched_method>
    <request_matched_uri>/autorisation_group/$groupname/hostname</request_matched_uri>
    <request_process_time>1.1093</request_process_time>
    <request_result>success</request_result>
    <request_result_description></request_result_description>
    <request_result_id>601</request_result_id>
    <request_uri>[GET] autorisation_group/INSTELLINGEN.group/hostname?limit=200</request_uri>
    <version>2.1.4.638:f67c790a0a28</version>
  </header>
  <items>
    <item id="1">
...

en

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <header>
    <item_count>15</item_count>
    <item_count_total>15</item_count_total>
    <item_offset>0</item_offset>
...
    <request_uri>[GET] autorisation_group/INSTELLINGEN.group/hostname?limit=15</request_uri>
    <version>2.1.4.638:f67c790a0a28</version>
  </header>
...

Change History

Changed 3 years ago by Frans

  • moscow changed from none to Must Have
  • milestone changed from MediaMosa X.X to MediaMosa 2.4

Changed 2 years ago by robert

English;

The call to /autorisation_group/{id}/hostname always returns the same number for item_count_total, instead of the correct number of total items outside the requested item count.

Changed 2 years ago by dpovshed

  • status changed from new to closed
  • resolution set to ready_for_review

See revision #1506.

Changed 2 years ago by robert

  • status changed from closed to reopened
  • resolution ready_for_review deleted

Changed 2 years ago by robert

  • owner set to robert
  • status changed from reopened to assigned

Changed 2 years ago by robert

  • status changed from assigned to closed
  • resolution set to fixed

Changed 22 months ago by forgacs

App_id = 1

POST call: /autorisation_group/create
Parameters: group_type=domain&groupname=testx.group

4 POST call: /autorisation_group/testx.group/hostname/create
Parameters: hostname[]=hostname1.test
Parameters: hostname[]=hostname2.test
Parameters: hostname[]=hostname3.test
Parameters: hostname[]=hostname4.test

GET call: /autorisation_group/testx.group/hostname?limit=2

Changed 22 months ago by Michiel.Schok

  • tested changed from no to yes
  • accepted changed from no to yes

Tested it, and seems OK now.

Note: See TracTickets for help on using tickets.