Skip to content

Avoid sending a success response when an error occurs.#93

Merged
yehudasa merged 1 commit intoceph:masterfrom
jaharkes:range_requests
Mar 8, 2013
Merged

Avoid sending a success response when an error occurs.#93
yehudasa merged 1 commit intoceph:masterfrom
jaharkes:range_requests

Conversation

@jaharkes
Copy link
Contributor

@jaharkes jaharkes commented Mar 8, 2013

Functions called from RGWGetObj_ObjStore_S3::send_response_data may
change the value of the non-local variable 'ret'. But the response
relies on a local 'req_state' which copies ret at the start of the
function.

Right now none of the called functions actually changes ret so the
problem doesn't trigger, but to avoid future breakage it is safer
to not rely on the (early) copy of the ret variable.

Signed-off-by: Jan Harkes jaharkes@cs.cmu.edu

Functions called from RGWGetObj_ObjStore_S3::send_response_data may
change the value of the non-local variable 'ret'. But the response
relies on a local 'req_state' which copies ret at the start of the
function.

Right now none of the called functions actually changes ret so the
problem doesn't trigger, but to avoid future breakage it is safer
to not rely on the (early) copy of the ret variable.

Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
@ghost ghost assigned yehudasa Mar 8, 2013
yehudasa added a commit that referenced this pull request Mar 8, 2013
Avoid sending a success response when an error occurs.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
@yehudasa yehudasa merged commit 108063c into ceph:master Mar 8, 2013
@jaharkes jaharkes deleted the range_requests branch March 8, 2013 17:25
liewegas added a commit to liewegas/ceph that referenced this pull request Nov 18, 2016
rgw: s/idle_timeout/default_idle_timeout/
rjfd pushed a commit to rjfd/ceph that referenced this pull request Feb 14, 2018
mgr/dashboard_v2: add node as a local dependency
liewegas pushed a commit to liewegas/ceph that referenced this pull request Nov 5, 2021
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request Mar 3, 2022
…eys (ceph#93)

* rgw_sal_motr: [CORTX-28055] Support custom & multiple access/secret keys

Added support for multple key creation for a user which can be either custom or auto generated.

Signed-off-by: Jeet Jain <jeet.jain@seagate.com>
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request Mar 3, 2022
* Fix for CORTX-28869:Unable to create IAM user with email

* Enable create user for same UID under different Tenant with motr as backend. (ceph#90)

Signed-off-by: Diwakar92 <diwakar.kumar@seagate.com>

Co-authored-by: kupranay <66459168+kupranay@users.noreply.github.com>

* rgw_sal_motr: [CORTX-28055] Support custom & multiple access/secret keys (ceph#93)

* rgw_sal_motr: [CORTX-28055] Support custom & multiple access/secret keys

Added support for multple key creation for a user which can be either custom or auto generated.

Signed-off-by: Jeet Jain <jeet.jain@seagate.com>

* rgw_sal_motr: [EOS-27516] Handling object overwrite during put-object (ceph#89)

* rgw_sal_motr: [EOS-27516] handling object overwrite

Deleting existing object data if same object is uploaded again to avoid object leak.

Signed-off-by: saurabh jain <saurabh.jain2@seagate.com>

* rgw_sal_motr: [EOS-27516] Handle parallel upload

During parallel object upload, there are chances of object leak, which can be handled by making use of GC. Since GC is not being use for motr as of now, adding a TODO for the same.

Signed-off-by: saurabh jain <saurabh.jain@seagate.com>

Co-authored-by: kupranay <66459168+kupranay@users.noreply.github.com>

* Rebase (ceph#88)

Signed-off-by: Parayya Vastrad <parayya.vastrad@seagate.com>

* merge conflicts

* merge conflicts

* Review comments addressed

* Review comments addressed

Co-authored-by: root <root@ssc-vm-g4-rhev4-0716.colo.seagate.com>
Co-authored-by: Diwakar92 <96409310+Diwakar92@users.noreply.github.com>
Co-authored-by: kupranay <66459168+kupranay@users.noreply.github.com>
Co-authored-by: Jeet Jain <jeet.jain@seagate.com>
Co-authored-by: Saurabh Jain <91066893+sjain09@users.noreply.github.com>
Co-authored-by: Parayya Vastrad <56255712+vastradparayya@users.noreply.github.com>
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request Mar 17, 2022
…eys (ceph#93)

* rgw_sal_motr: [CORTX-28055] Support custom & multiple access/secret keys

Added support for multple key creation for a user which can be either custom or auto generated.

Signed-off-by: Jeet Jain <jeet.jain@seagate.com>
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request Mar 17, 2022
* Fix for CORTX-28869:Unable to create IAM user with email

* Enable create user for same UID under different Tenant with motr as backend. (ceph#90)

Signed-off-by: Diwakar92 <diwakar.kumar@seagate.com>

Co-authored-by: kupranay <66459168+kupranay@users.noreply.github.com>

* rgw_sal_motr: [CORTX-28055] Support custom & multiple access/secret keys (ceph#93)

* rgw_sal_motr: [CORTX-28055] Support custom & multiple access/secret keys

Added support for multple key creation for a user which can be either custom or auto generated.

Signed-off-by: Jeet Jain <jeet.jain@seagate.com>

* rgw_sal_motr: [EOS-27516] Handling object overwrite during put-object (ceph#89)

* rgw_sal_motr: [EOS-27516] handling object overwrite

Deleting existing object data if same object is uploaded again to avoid object leak.

Signed-off-by: saurabh jain <saurabh.jain2@seagate.com>

* rgw_sal_motr: [EOS-27516] Handle parallel upload

During parallel object upload, there are chances of object leak, which can be handled by making use of GC. Since GC is not being use for motr as of now, adding a TODO for the same.

Signed-off-by: saurabh jain <saurabh.jain@seagate.com>

Co-authored-by: kupranay <66459168+kupranay@users.noreply.github.com>

* Rebase (ceph#88)

Signed-off-by: Parayya Vastrad <parayya.vastrad@seagate.com>

* merge conflicts

* merge conflicts

* Review comments addressed

* Review comments addressed

Co-authored-by: root <root@ssc-vm-g4-rhev4-0716.colo.seagate.com>
Co-authored-by: Diwakar92 <96409310+Diwakar92@users.noreply.github.com>
Co-authored-by: kupranay <66459168+kupranay@users.noreply.github.com>
Co-authored-by: Jeet Jain <jeet.jain@seagate.com>
Co-authored-by: Saurabh Jain <91066893+sjain09@users.noreply.github.com>
Co-authored-by: Parayya Vastrad <56255712+vastradparayya@users.noreply.github.com>
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request Apr 1, 2022
…eys creation (ceph#93)

Add support for multiple key creation for a RGW Motr user which can be
either custom (using --access-key=<key> or --secret-key=<key>) or auto
generated (using --gen-access-key or --gen-secret) with radosgw-admin key
create command or RGW rest api.

Signed-off-by: Jeet Jain <jeet.jain@seagate.com>
galsalomon66 referenced this pull request in galsalomon66/ceph Sep 17, 2022
* fix missing initialization for parquet_value. it cause failures for some tests in the case of /O3/ optimization
* fix non-initialize variable. better failure report of gtest app
* fix for file-pointer leak(test application). improve failure report.
* boost installation had failed
* incase of failure --> produce output
* remove the shell-test. it is redundant, s3select_test contains all necessary tests

Signed-off-by: gal salomon <gal.salomon@gmail.com>
Moisi pushed a commit to Moisi/ceph that referenced this pull request Jun 30, 2025
Merge in STORAGEENG/ceph from bugfix/CEPH-207-backport-fix-in-ceph-upstream-with-pr-54999-to-our-v18-branches to aka_version_18.2.1

* commit '5a849834cafc1893b58a4f739038629f270ddc14':
  Remove an extra line added by accident.
  CEPH-207 Backport PR 54999 to Akamai v18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants