# لماذا يتم تشغيل UpdatePostUploadsSecureStatus حتى عند تعطيل التحميلات الآمنة؟

**URL:** https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612
**Category:** Support
**Tags:** s3
**Created:** [18 فبراير 2023، 4:45م UTC](https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612 "2023-02-18T16:45:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![saulshanabrook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saulshanabrook/32/292864_2.png) [@saulshanabrook](https://meta.discourse.org/u/saulshanabrook)
#### Post date: [18 فبراير 2023، 4:45م UTC](https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612/1 "2023-02-18T16:45:27Z")

</div>

شكراً لعملك على السماح بـ S3 backends مختلفة! أنا أستخدم minio وهو يعمل بشكل رائع…

المشكلة الوحيدة الطفيفة التي لدي هي أن مهمة `UpdatePostUploadsSecureStatus` تفشل لأن Minio لا يدعم ACLs:

> <https://github.com/minio/minio/issues/8195>
>
> I've read through a few github issues and the minio docs, and it seems you don't… support setting object ACLs (nor intend to). You claim to be an S3 compatible server, but if you aren't supporting this feature, that's not really true IMO. Regardless of whether or not AWS recommends using ACLs, they nevertheless still support them and it is a good enough solution for plenty of people's usage. Not supporting object ACLs prevents Minio from being a drop-in replacement for S3. Someone who wanted to switch to Minio would have to start adding prefixes to everything which could break their existing naming scheme for objects. This is a problem if they wanted to be able to support objects stored in S3 and in Minio, and if they already had pre-existing data in S3 which used Object ACLs. This is the situation I personally am in.  
> 
> I really think you should reconsider this.

هل هناك طريقة يمكنني بها تعطيل تشغيل هذه المهمة؟

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [18 فبراير 2023، 4:51م UTC](https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612/2 "2023-02-18T16:51:12Z")

</div>

هل قمت بتمكين `SiteSetting.secure_uploads`؟

---

<div class="post-metadata">

### Author: ![saulshanabrook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saulshanabrook/32/292864_2.png) [@saulshanabrook](https://meta.discourse.org/u/saulshanabrook)
#### Post date: [19 فبراير 2023، 1:08م UTC](https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612/3 "2023-02-19T13:08:57Z")

</div>

لا، لم أفعل.

 ![Screenshot 2023-02-19 at 8.08.47 AM](https://global.discourse-cdn.com/meta/original/4X/d/4/8/d480d6152a2e304366a5ce4bc41aa3fc497a2011.png)

تعديل: لقد قمت باستيراد بعض رسائل البريد الإلكتروني التي تحتوي على صور مضمنة فيها. أنا أقرأ وثائق [تحميلات آمنة في رسائل البريد الإلكتروني](https://meta.discourse.org/t/secure-uploads/meta/140017#secure-uploads-in-emails-7)، هل هذا يعني أن جميع التحميلات من رسائل البريد الإلكتروني ستكون “آمنة”؟

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [19 فبراير 2023، 1:35م UTC](https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612/4 "2023-02-19T13:35:50Z")

</div>

لماذا نقوم بجدولة هذه المهمة لكل تحميل على كل منشور حتى عندما يكون الإعداد معطلاً يا مارتن؟

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [19 فبراير 2023، 11:38م UTC](https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612/5 "2023-02-19T23:38:01Z")

</div>

سؤال جيد – يتم استدعاء هذا في مكانين. `PostCreator`:

> <https://github.com/discourse/discourse/blob/3c57db5c633297f076c9e2ed09beff41e4133573/lib/post_creator.rb#L405-L407>

و `PostRevisor`:

> <https://github.com/discourse/discourse/blob/3c57db5c633297f076c9e2ed09beff41e4133573/lib/post_revisor.rb#L250-L252>

ولكن كما ترى، أهملت إجراء التحقق `SiteSetting.secure_uploads?` في الأخير… سأقوم بإنشاء طلب سحب لإصلاح هذا ونقل التحقق إلى `post.update_uploads_secure_status`.

تعديل: طلب السحب هنا، نأمل أن يتم دمجه اليوم [FIX: Do not enqueue UpdatePostUploadsSecureStatus unnecessarily by martin-brennan · Pull Request #20366 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/20366)

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [20 فبراير 2023، 11:28م UTC](https://meta.discourse.org/t/why-run-updatepostuploadssecurestatus-even-when-secure-uploads-is-disabled/255612/6 "2023-02-20T23:28:35Z")

</div>


