Commit 5e141ab
Taniya Mathur
Fix NoSuchKey error when setting ACLs on main template files
- Check if main template files exist before attempting to set ACLs
- Use head_object to verify file existence before put_object_acl
- Skip silently if versioned main template doesn't exist (404 error)
- Prevents 'The specified key does not exist' errors during ACL operations
- Only attempt ACL operations on files that were actually uploaded1 parent 73d3527 commit 5e141ab
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1919 | 1919 | | |
1920 | 1920 | | |
1921 | 1921 | | |
1922 | | - | |
| 1922 | + | |
1923 | 1923 | | |
1924 | 1924 | | |
1925 | 1925 | | |
1926 | 1926 | | |
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
1930 | 1933 | | |
1931 | 1934 | | |
1932 | 1935 | | |
1933 | 1936 | | |
1934 | 1937 | | |
1935 | | - | |
1936 | | - | |
1937 | | - | |
1938 | | - | |
1939 | | - | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
1940 | 1949 | | |
1941 | 1950 | | |
1942 | 1951 | | |
| |||
0 commit comments