<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>58497</bug_id>
          
          <creation_ts>2026-04-03 11:00:59 +0300</creation_ts>
          <short_desc>/package/package_files/{hash}: request_args возвращается как int вместо object</short_desc>
          <delta_ts>2026-04-03 17:45:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Infrastructure</classification>
          <product>Infrastructure</product>
          <component>rdb.altlinux.org</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Кирилл Уницаев">fiersik</reporter>
          <assigned_to name="Danil Shein">dshein</assigned_to>
          
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>285036</commentid>
    <comment_count>0</comment_count>
    <who name="Кирилл Уницаев">fiersik</who>
    <bug_when>2026-04-03 11:00:59 +0300</bug_when>
    <thetext>Эндпоинт: GET /package/package_files/{pkghash}

Ожидаемый ответ (как во всех остальных эндпоинтах):
  &quot;request_args&quot;: {&quot;pkghash&quot;: &quot;3326383216433746261&quot;}

Фактический ответ:
  &quot;request_args&quot;: 3326383216433746261

Swagger-спецификация описывает request_args как object.

Пример запроса:
curl -s https://rdb.altlinux.org/api/package/package_files/3326383216433746261 | python3 -m json.tool | head -5

Результат:
  {
      &quot;request_args&quot;: 3326383216433746261,
      ...
  }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285103</commentid>
    <comment_count>1</comment_count>
    <who name="Кирилл Уницаев">fiersik</who>
    <bug_when>2026-04-03 17:45:30 +0300</bug_when>
    <thetext>Эндпоинт: GET /site/binary_package_scripts/{pkghash}

тоже самое.

curl -s https://rdb.altlinux.org/api/site/binary_package_scripts/3310967880196625285 | python3 -m json.tool | head -5

{
    &quot;request_args&quot;: 3310967880196625285,
    ...
}</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>