Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 10.17.0 #2029

Merged
merged 76 commits into from
Jan 23, 2023
Merged
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
ad503c1
Add mitigation for weird NtQuerySecurityObject behavior on NAS source…
adreed-msft Aug 31, 2022
314e041
Fix bad URL delete (#1892)
adreed-msft Sep 8, 2022
1b53a7b
Update MacOS testing pipeline (#1896)
adreed-msft Sep 19, 2022
13ef5e3
fixing small typo (,) in help of jobs clean (#1899)
mstenz Sep 22, 2022
46e205e
Implement MD OAuth testing (#1859)
adreed-msft Oct 3, 2022
a219955
Add "all" to documentation (#1902)
adreed-msft Oct 4, 2022
ec0a2e9
10.16.1 patch notes (#1913)
adreed-msft Oct 4, 2022
1aa28fe
Correct version
adreed-msft Oct 5, 2022
bea738d
Export Successfully Updated bytes (#1884)
nakulkar-msft Oct 10, 2022
65af689
Add info in error message for mkdir on Log/Plan (#1883)
ksaur Oct 10, 2022
e4f1c3e
Fix fixupTokenJson (#1890)
adam-orosz Oct 10, 2022
355ea4b
Do not log request/response for container creation error (#1893)
nakulkar-msft Oct 10, 2022
edeb82b
Expose AZCOPY_DOWNLOAD_TO_TEMP_PATH environment variable. (#1895)
adreed-msft Oct 10, 2022
8539454
Slice against the correct string (#1927)
adreed-msft Oct 24, 2022
fda0c83
UX improvement: avoid crash when copying S2S with user delegation SAS…
zezha-msft Oct 27, 2022
e73d0a2
Fix bad build + Prevent bad builds in the future (#1917)
adreed-msft Oct 27, 2022
c6f9c8c
Make sync use last write time for Azure Files (#1930)
adreed-msft Nov 3, 2022
616568d
10.16.2 Changelog (#1948)
adreed-msft Nov 3, 2022
0eacc61
Update azcopy version
adreed-msft Nov 3, 2022
cfca47d
Merge branch 'main' into dev
adreed-msft Nov 3, 2022
090d2d8
Fixed a bug where preserve permissions would not work with OAuth
gapra-msft Nov 15, 2022
945b8a1
Added CODEOWNERS file
gapra-msft Nov 16, 2022
03e02c5
Fixed issue where CPK would not be injected on retries
gapra-msft Nov 16, 2022
f92b840
Added CODEOWNERS file
gapra-msft Nov 16, 2022
21bea31
remove OAuth from test
gapra-msft Nov 16, 2022
f3ef735
Fixed issue where CPK would not be injected on retries
gapra-msft Nov 17, 2022
e6c1b7a
Merge pull request #1963 from Azure/gapra/getACLOAuth
gapra-msft Nov 21, 2022
1e8fc79
Updated version check string to indicate current AzCopy version (#1969)
gapra-msft Nov 21, 2022
bf3a84c
added codeowner
tasherif-msft Dec 1, 2022
ffbeb92
Enhance job summary with details about file/folders (#1952)
adreed-msft Dec 1, 2022
e653f23
Add flag to disable version check (#1950)
adreed-msft Dec 1, 2022
9d57431
Merge pull request #1980 from Azure/tasherif-codeowner
tasherif-msft Dec 1, 2022
3d8d0e1
darwin arm64
tasherif-msft Dec 3, 2022
d7c9d3a
Update golang version to 10.19.2 (#1925)
nakulkar-msft Dec 6, 2022
8f3f8f7
enable cgo
tasherif-msft Dec 6, 2022
73e8b32
added tests
tasherif-msft Dec 6, 2022
4557448
Minor fixes: More in description (#1968)
nakulkar-msft Dec 7, 2022
fcb87a5
azcopy fail to copy 12TB file to Storage containers in Dev.
reshmav18 Dec 20, 2022
fc51bde
Added extra logging when switching endpoints
tasherif-msft Dec 21, 2022
3d222a3
Enable support for preserving SMB info on Linux. (#1723)
linuxsmiths Dec 22, 2022
23a0a77
Added log indicating a sub-directory is being enqueued (#1999)
gapra-msft Dec 22, 2022
4ca0b60
Merge pull request #2002 from Azure/hns-logging
tasherif-msft Dec 22, 2022
8f0103b
Merge pull request #1997 from reshmav18/patch-3
tasherif-msft Dec 22, 2022
30958f8
Log sync deletions to scanning logger (#2000)
nakulkar-msft Dec 23, 2022
aecb217
ieproxy fix
tasherif-msft Jan 5, 2023
83b9a2a
Merge branch 'ieproxy-fix' into test-cross-comp
tasherif-msft Jan 5, 2023
411b5ec
remove cgo
tasherif-msft Jan 5, 2023
0fac383
fix
tasherif-msft Jan 5, 2023
8514d39
fix
tasherif-msft Jan 5, 2023
0960514
fix
tasherif-msft Jan 5, 2023
64ea538
more testing
tasherif-msft Jan 5, 2023
d239be8
more testing
tasherif-msft Jan 5, 2023
55de682
more testing
tasherif-msft Jan 5, 2023
b780635
more testing
tasherif-msft Jan 5, 2023
da6fde1
Merge branch 'dev' into test-cross-comp
tasherif-msft Jan 5, 2023
b923a3a
mod tidy
tasherif-msft Jan 5, 2023
98b4356
mod tidy
tasherif-msft Jan 5, 2023
db2e8b1
more testing
tasherif-msft Jan 5, 2023
b1139c2
Added codespell (#2008)
gapra-msft Jan 5, 2023
62ef70d
Added CodeQL (#2009)
gapra-msft Jan 6, 2023
5883086
Fix for rare infinite loop on mutex acquisition (#2012)
gapra-msft Jan 6, 2023
cd6b989
small fix
tasherif-msft Jan 8, 2023
cebc33f
Merge branch 'test-cross-comp' of github.com:Azure/azure-storage-azco…
tasherif-msft Jan 8, 2023
c824ad3
removed test
tasherif-msft Jan 8, 2023
2d15a37
Merge pull request #1983 from Azure/test-cross-comp
tasherif-msft Jan 9, 2023
052b801
Added trivy file (#2015)
gapra-msft Jan 9, 2023
e376658
Improve debug-ability of e2e tests by uploading logs of failed jobs (…
adreed-msft Jan 12, 2023
708a138
Fail copy job if single blob does not exist (#1981)
tasherif-msft Jan 12, 2023
0f466d5
Correct odd behavior around folder overwrites (#1961)
adreed-msft Jan 12, 2023
60c9aed
Fix files sync by determining which LMT to use via smb properties fla…
adreed-msft Jan 19, 2023
b023fc5
Fix metadata parsing (#1953)
adreed-msft Jan 19, 2023
4779674
Fix ADLSG2 intermittent failure (#1901)
adreed-msft Jan 20, 2023
16ca699
Store source token and pass to other threads (#1996)
tasherif-msft Jan 20, 2023
db0033d
Hash based sync (#2020)
adreed-msft Jan 20, 2023
e8e6233
Copy properties from Source (#1964)
nakulkar-msft Jan 21, 2023
30dfab5
Release notes and version update (#2028)
nakulkar-msft Jan 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added CodeQL (#2009)
* Added linting file

* Upgrade codeql to v2

* Fix incorrect conversion between integer types

* Fix GCP URL parts
  • Loading branch information
gapra-msft authored Jan 6, 2023
commit 62ef70dc08213ae9185600c71ec939fc19256fad
67 changes: 67 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
pull_request:
branches: [ main, dev ]
push:
branches: [ main, dev ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions cmd/benchmark.go
Original file line number Diff line number Diff line change
@@ -273,15 +273,15 @@ func (h benchmarkSourceHelper) FromUrl(s string) (fileCount uint, bytesPerFile i
pieces[0] = strings.Split(pieces[0], "=")[1]
pieces[1] = strings.Split(pieces[1], "=")[1]
pieces[2] = strings.Split(pieces[2], "=")[1]
fc, err := strconv.ParseUint(pieces[0], 10, 64)
fc, err := strconv.ParseUint(pieces[0], 10, 32)
if err != nil {
return 0, 0, 0, err
}
bpf, err := strconv.ParseInt(pieces[1], 10, 64)
if err != nil {
return 0, 0, 0, err
}
nf, err := strconv.ParseUint(pieces[2], 10, 64)
nf, err := strconv.ParseUint(pieces[2], 10, 32)
if err != nil {
return 0, 0, 0, err
}
18 changes: 9 additions & 9 deletions common/gcpURLParts.go
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ import (
"strings"
)

//GCPURLParts structure is used to parse and hold the different
//components of GCP Object/Service/Bucket URL
// GCPURLParts structure is used to parse and hold the different
// components of GCP Object/Service/Bucket URL
type GCPURLParts struct {
Scheme string
Host string
@@ -17,13 +17,13 @@ type GCPURLParts struct {
UnparsedParams string
}

const gcpHostPattern = "^storage.cloud.google.com"
const gcpHostPattern = "^storage\\.cloud\\.google\\.com"
const invalidGCPURLErrorMessage = "Invalid GCP URL"
const gcpEssentialHostPart = "google.com"

var gcpHostRegex = regexp.MustCompile(gcpHostPattern)

//IsGCPURL validates whether a given URL is a valid GCP Object/Service/Bucket URL
// IsGCPURL validates whether a given URL is a valid GCP Object/Service/Bucket URL
func IsGCPURL(u url.URL) bool {
if _, isGCPURL := findGCPURLMatches(strings.ToLower(u.Host)); isGCPURL {
return true
@@ -39,8 +39,8 @@ func findGCPURLMatches(lower string) ([]string, bool) {
return matches, true
}

//NewGCPURLParts processes the given URL and returns a valid GCPURLParts
//structure that contains all the necessary components.
// NewGCPURLParts processes the given URL and returns a valid GCPURLParts
// structure that contains all the necessary components.
func NewGCPURLParts(u url.URL) (GCPURLParts, error) {
host := strings.ToLower(u.Host)
_, isGCPURL := findGCPURLMatches(host)
@@ -70,7 +70,7 @@ func NewGCPURLParts(u url.URL) (GCPURLParts, error) {
return up, nil
}

//URL returns a valid net/url.URL object initialised from the components of GCP URL
// URL returns a valid net/url.URL object initialised from the components of GCP URL
func (gUrl *GCPURLParts) URL() url.URL {
path := ""

@@ -118,8 +118,8 @@ func (gUrl *GCPURLParts) IsObjectSyntactically() bool {
return false
}

//IsDirectorySyntactically returns true if the given GCPURLParts
//points to a directory or not based on the path.
// IsDirectorySyntactically returns true if the given GCPURLParts
// points to a directory or not based on the path.
func (gUrl *GCPURLParts) IsDirectorySyntactically() bool {
if gUrl.IsObjectSyntactically() && strings.HasSuffix(gUrl.ObjectKey, "/") {
return true
19 changes: 19 additions & 0 deletions common/gcpURLParts_test.go
Original file line number Diff line number Diff line change
@@ -47,3 +47,22 @@ func (s *gcpURLPartsTestSuite) TestGCPURLParseNegative(c *chk.C) {
c.Assert(err, chk.NotNil)
c.Assert(strings.Contains(err.Error(), invalidGCPURLErrorMessage), chk.Equals, true)
}

func (s *gcpURLPartsTestSuite) TestIsGCPURL(c *chk.C) {
u, _ := url.Parse("http://storage.cloud.google.com/bucket/keyname/")
isGCP := IsGCPURL(*u)
c.Assert(isGCP, chk.Equals, true)

// Negative Test Cases
u, _ = url.Parse("http://storage.cloudxgoogle.com/bucket/keyname/")
isGCP = IsGCPURL(*u)
c.Assert(isGCP, chk.Equals, false)

u, _ = url.Parse("http://storage.cloud.googlexcom/bucket/keyname/")
isGCP = IsGCPURL(*u)
c.Assert(isGCP, chk.Equals, false)

u, _ = url.Parse("http://storagexcloud.google.com/bucket/keyname/")
isGCP = IsGCPURL(*u)
c.Assert(isGCP, chk.Equals, false)
}
2 changes: 1 addition & 1 deletion ste/concurrency.go
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ func (i *ConfiguredInt) GetDescription() string {
func tryNewConfiguredInt(envVar common.EnvironmentVariable) *ConfiguredInt {
override := common.GetLifecycleMgr().GetEnvironmentVariable(envVar)
if override != "" {
val, err := strconv.ParseInt(override, 10, 64)
val, err := strconv.ParseInt(override, 10, 32)
if err != nil {
log.Fatalf("error parsing the env %s %q failed with error %v",
envVar.Name, override, err)