artifact-engine 2.282.0 → 2.283.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Engine/artifactEngine.js +5 -0
- package/Providers/filesystemProvider.d.ts +5 -0
- package/Providers/filesystemProvider.js +141 -0
- package/Strings/resources.resjson/de-DE/resources.resjson +4 -1
- package/Strings/resources.resjson/en-US/resources.resjson +3 -0
- package/Strings/resources.resjson/es-ES/resources.resjson +4 -1
- package/Strings/resources.resjson/fr-FR/resources.resjson +4 -1
- package/Strings/resources.resjson/it-IT/resources.resjson +4 -1
- package/Strings/resources.resjson/ja-JP/resources.resjson +4 -1
- package/Strings/resources.resjson/ko-KR/resources.resjson +4 -1
- package/Strings/resources.resjson/ru-RU/resources.resjson +4 -1
- package/Strings/resources.resjson/zh-CN/resources.resjson +4 -1
- package/Strings/resources.resjson/zh-TW/resources.resjson +4 -1
- package/lib.json +3 -0
- package/package.json +1 -1
package/Engine/artifactEngine.js
CHANGED
|
@@ -62,6 +62,11 @@ class ArtifactEngine {
|
|
|
62
62
|
}
|
|
63
63
|
processArtifactItemImplementation(sourceProvider, item, destProvider, artifactEngineOptions, resolve, reject, retryCount) {
|
|
64
64
|
var retryIfRequired = (err) => {
|
|
65
|
+
if (err && err.nonRetryable) {
|
|
66
|
+
this.artifactItemStore.updateState(item, models.TicketState.Failed);
|
|
67
|
+
reject(err);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
65
70
|
if (retryCount === artifactEngineOptions.retryLimit - 1) {
|
|
66
71
|
this.artifactItemStore.updateState(item, models.TicketState.Failed);
|
|
67
72
|
reject(err);
|
|
@@ -8,6 +8,11 @@ export declare class FilesystemProvider implements models.IArtifactProvider {
|
|
|
8
8
|
getArtifactItems(artifactItem: models.ArtifactItem): Promise<models.ArtifactItem[]>;
|
|
9
9
|
getArtifactItem(artifactItem: models.ArtifactItem): Promise<NodeJS.ReadableStream>;
|
|
10
10
|
putArtifactItem(item: models.ArtifactItem, stream: NodeJS.ReadableStream): Promise<models.ArtifactItem>;
|
|
11
|
+
private putArtifactItemLegacy;
|
|
12
|
+
private putArtifactItemSecure;
|
|
13
|
+
private getWriteOpenFlags;
|
|
14
|
+
private createSecurityRejection;
|
|
15
|
+
private resolveSafeOutputPath;
|
|
11
16
|
isCaseInsensitiveFilesystem(): boolean;
|
|
12
17
|
dispose(): void;
|
|
13
18
|
private getItems;
|
|
@@ -45,6 +45,14 @@ class FilesystemProvider {
|
|
|
45
45
|
return promise;
|
|
46
46
|
}
|
|
47
47
|
putArtifactItem(item, stream) {
|
|
48
|
+
if (!tl.getPipelineFeature("EnableArtifactEnginePathValidation") || tl.getPipelineFeature("EnableLegacyArtifactPathValidation")) {
|
|
49
|
+
return this.putArtifactItemLegacy(item, stream);
|
|
50
|
+
}
|
|
51
|
+
return this.putArtifactItemSecure(item, stream);
|
|
52
|
+
}
|
|
53
|
+
// Unmodified pre-fix implementation. Runs verbatim whenever path validation is off, or
|
|
54
|
+
// EnableLegacyArtifactPathValidation is On, so rollback restores the exact legacy behavior.
|
|
55
|
+
putArtifactItemLegacy(item, stream) {
|
|
48
56
|
return new Promise((resolve, reject) => {
|
|
49
57
|
let outputItemPath;
|
|
50
58
|
if (!tl.getPipelineFeature("EnableArtifactEnginePathValidation")) {
|
|
@@ -101,6 +109,139 @@ class FilesystemProvider {
|
|
|
101
109
|
}
|
|
102
110
|
});
|
|
103
111
|
}
|
|
112
|
+
// New hardened implementation. Runs only when path validation is on and the legacy
|
|
113
|
+
// rollback flag is off (the new default).
|
|
114
|
+
putArtifactItemSecure(item, stream) {
|
|
115
|
+
return new Promise((resolve, reject) => {
|
|
116
|
+
let outputItemPath;
|
|
117
|
+
try {
|
|
118
|
+
outputItemPath = this.resolveSafeOutputPath(item.path);
|
|
119
|
+
}
|
|
120
|
+
catch (err) {
|
|
121
|
+
reject(err);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (item.itemType === models.ItemType.File) {
|
|
125
|
+
const folder = path.dirname(outputItemPath);
|
|
126
|
+
try {
|
|
127
|
+
tl.mkdirP(folder);
|
|
128
|
+
logger_1.Logger.messageExternalOutput(tl.loc("DownloadingTo", item.path, outputItemPath));
|
|
129
|
+
const writeOptions = { flags: this.getWriteOpenFlags() };
|
|
130
|
+
const outputStream = fs.createWriteStream(outputItemPath, writeOptions);
|
|
131
|
+
stream.pipe(outputStream);
|
|
132
|
+
stream.on("end", () => {
|
|
133
|
+
logger_1.Logger.messageExternalOutput(tl.loc("DownloadedTo", item.path, outputItemPath));
|
|
134
|
+
if (!item.metadata) {
|
|
135
|
+
item.metadata = {};
|
|
136
|
+
}
|
|
137
|
+
item.metadata[models.Constants.DestinationUrlKey] = outputItemPath;
|
|
138
|
+
});
|
|
139
|
+
stream.on("error", (error) => {
|
|
140
|
+
reject(error);
|
|
141
|
+
});
|
|
142
|
+
outputStream.on("error", (error) => {
|
|
143
|
+
reject(error);
|
|
144
|
+
});
|
|
145
|
+
outputStream.on("finish", () => {
|
|
146
|
+
this.artifactItemStore.updateFileSize(item, outputStream.bytesWritten);
|
|
147
|
+
resolve(item);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
catch (err) {
|
|
151
|
+
reject(err);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
try {
|
|
156
|
+
tl.mkdirP(outputItemPath);
|
|
157
|
+
resolve(item);
|
|
158
|
+
}
|
|
159
|
+
catch (err) {
|
|
160
|
+
reject(err);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
getWriteOpenFlags() {
|
|
166
|
+
let flags = fs.constants.O_WRONLY | fs.constants.O_CREAT | fs.constants.O_TRUNC;
|
|
167
|
+
if (typeof fs.constants.O_NOFOLLOW === 'number') {
|
|
168
|
+
flags |= fs.constants.O_NOFOLLOW;
|
|
169
|
+
}
|
|
170
|
+
return flags;
|
|
171
|
+
}
|
|
172
|
+
createSecurityRejection(messageKey, itemPath) {
|
|
173
|
+
const err = new Error(tl.loc(messageKey, itemPath));
|
|
174
|
+
err.nonRetryable = true;
|
|
175
|
+
return err;
|
|
176
|
+
}
|
|
177
|
+
resolveSafeOutputPath(itemPath) {
|
|
178
|
+
const resolvedRoot = path.resolve(this._rootLocation);
|
|
179
|
+
const resolvedTarget = path.resolve(resolvedRoot, itemPath);
|
|
180
|
+
const relative = path.relative(resolvedRoot, resolvedTarget);
|
|
181
|
+
if (relative === '..'
|
|
182
|
+
|| relative.startsWith('..' + path.sep)
|
|
183
|
+
|| path.isAbsolute(relative)) {
|
|
184
|
+
throw this.createSecurityRejection("InvalidArtifactPath", itemPath);
|
|
185
|
+
}
|
|
186
|
+
tl.mkdirP(resolvedRoot);
|
|
187
|
+
let realRoot;
|
|
188
|
+
try {
|
|
189
|
+
realRoot = fs.realpathSync(resolvedRoot);
|
|
190
|
+
}
|
|
191
|
+
catch (err) {
|
|
192
|
+
// Root does not exist yet (e.g. mkdirP was a no-op, or creation is deferred until
|
|
193
|
+
// the first write). Nothing can be a pre-existing symlink at a path that doesn't
|
|
194
|
+
// exist, so fall back to the lexically resolved root.
|
|
195
|
+
realRoot = resolvedRoot;
|
|
196
|
+
}
|
|
197
|
+
const segments = relative.split(path.sep);
|
|
198
|
+
let current = realRoot;
|
|
199
|
+
for (let i = 0; i < segments.length - 1; i++) {
|
|
200
|
+
current = path.join(current, segments[i]);
|
|
201
|
+
let stat;
|
|
202
|
+
try {
|
|
203
|
+
stat = fs.lstatSync(current);
|
|
204
|
+
}
|
|
205
|
+
catch (err) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
if (stat.isSymbolicLink()) {
|
|
209
|
+
let real;
|
|
210
|
+
try {
|
|
211
|
+
real = fs.realpathSync(current);
|
|
212
|
+
}
|
|
213
|
+
catch (err) {
|
|
214
|
+
throw this.createSecurityRejection("InvalidArtifactPath", itemPath);
|
|
215
|
+
}
|
|
216
|
+
const relToRoot = path.relative(realRoot, real);
|
|
217
|
+
if (relToRoot === '..'
|
|
218
|
+
|| relToRoot.startsWith('..' + path.sep)
|
|
219
|
+
|| path.isAbsolute(relToRoot)) {
|
|
220
|
+
throw this.createSecurityRejection("InvalidArtifactPath", itemPath);
|
|
221
|
+
}
|
|
222
|
+
current = real;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const finalPath = path.join(current, segments[segments.length - 1]);
|
|
226
|
+
try {
|
|
227
|
+
const finalStat = fs.lstatSync(finalPath);
|
|
228
|
+
if (finalStat.isSymbolicLink()) {
|
|
229
|
+
throw this.createSecurityRejection("ArtifactPathIsSymlink", itemPath);
|
|
230
|
+
}
|
|
231
|
+
if (!finalStat.isFile() && !finalStat.isDirectory()) {
|
|
232
|
+
throw this.createSecurityRejection("ArtifactPathIsSpecialFile", itemPath);
|
|
233
|
+
}
|
|
234
|
+
if (finalStat.isFile() && finalStat.nlink > 1) {
|
|
235
|
+
throw this.createSecurityRejection("ArtifactPathIsHardLinked", itemPath);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
catch (err) {
|
|
239
|
+
if (err && err.nonRetryable) {
|
|
240
|
+
throw err;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return finalPath;
|
|
244
|
+
}
|
|
104
245
|
isCaseInsensitiveFilesystem() {
|
|
105
246
|
if (!this._hasDeterminedFilesystemCaseSensitivity) {
|
|
106
247
|
try {
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "Fehler beim Analysieren des Antworttexts: %s. Erhaltener Fehler: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "Download von \"%s\" nach \"%s\" wird durchgeführt.",
|
|
5
5
|
"loc.messages.DownloadedTo": "Download von \"%s\" nach \"%s\" wurde durchgeführt.",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "Der Artifactpfad \"%s\" liegt außerhalb des Downloadverzeichnisses.",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "Der Artifactpfad \"%s\" ist bereits ein symbolischer Link und wurde abgelehnt.",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "Der Artifactpfad \"%s\" ist bereits eine Datei mit einem Hardlink und wurde abgelehnt.",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "Der Artifactpfad \"%s\" ist bereits eine Datei, die kein regulärer Dateityp ist (z. B. ein Gerät, eine Pipe oder ein Socket), und wurde abgelehnt.",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "Das Verzeichnis \"%s\" kann nicht gelesen werden. Fehler: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "Download von \"%s\" wird erneut versucht, Wiederholungsanzahl: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "Die Verarbeitung des Elements \"%s\" wird übersprungen.",
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
"loc.messages.DownloadingTo": "Downloading %s to %s",
|
|
5
5
|
"loc.messages.DownloadedTo": "Downloaded %s to %s",
|
|
6
6
|
"loc.messages.InvalidArtifactPath": "Artifact path %s resolves outside the download directory.",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "Artifact path %s already exists as a symbolic link and was rejected.",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "Artifact path %s already exists as a hard-linked file and was rejected.",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "Artifact path %s already exists as a non-regular file (e.g. a device, pipe, or socket) and was rejected.",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "Unable to read directory %s. Error: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "Retrying download of %s, retry count: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "Skipped processing item %s",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "No se pudo analizar el cuerpo de la respuesta: %s. Error: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "Descargando %s en %s",
|
|
5
5
|
"loc.messages.DownloadedTo": "%s descargado en %s",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "La ruta de acceso del artefacto %s se resuelve fuera del directorio de descarga.",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "La ruta de acceso del artefacto %s ya existe como vínculo simbólico y se rechazó.",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "La ruta de acceso del artefacto %s ya existe como archivo con vínculo físico y se rechazó.",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "La ruta de acceso del artefacto %s ya existe como archivo no habitual (por ejemplo, un dispositivo, una canalización o un socket) y se rechazó.",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "No se puede leer el directorio %s. Error: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "Reintentando la descarga de %s, número de reintentos: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "Procesamiento de %s omitido",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "Échec d’analyse du corps de la réponse : %s, erreur : %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "Téléchargement de %s à %s",
|
|
5
5
|
"loc.messages.DownloadedTo": "Téléchargé de %s à %s",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "Le chemin d’accès de l’artefact %s se résout en dehors du répertoire de téléchargement.",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "Le chemin d’accès de l’artefact %s existe déjà en tant que lien symbolique et a été rejeté.",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "Le chemin d’accès de l’artefact %s existe déjà en tant que fichier à liens physiques et a été rejeté.",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "Le chemin d’accès de l’artefact %s existe déjà en tant que fichier non standard (par exemple, un périphérique, un tube ou un socket) et a été rejeté.",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "Impossible de lire le répertoire %s. Erreur : %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "Nouvelle tentative de téléchargement de %s, nombre de tentatives : %s",
|
|
9
12
|
"loc.messages.SkippingItem": "Traitement de l’élément ignoré %s",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "Non è stato possibile analizzare il corpo della risposta: %s. Errore restituito: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "Download di %s in %s",
|
|
5
5
|
"loc.messages.DownloadedTo": "%s scaricato in %s",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "Il percorso dell'artifact %s viene risolto all'esterno della directory di download.",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "Il percorso dell'artifact %s esiste già come collegamento simbolico ed è stato rifiutato.",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "Il percorso dell'artifact %s esiste già come file con collegamento fisico ed è stato rifiutato.",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "Il percorso dell'artifact %s esiste già come file non normale (ad esempio un dispositivo, una pipe o un socket) ed è stato rifiutato.",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "Non è possibile leggere la directory %s. Errore: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "Nuovo tentativo di download di %s. Conteggio dei tentativi: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "Elaborazione dell'elemento %s ignorata",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "応答本文を解析できませんでした: %s、エラー発生: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "%s を %s へダウンロード中",
|
|
5
5
|
"loc.messages.DownloadedTo": "%s を %s へダウンロード済み",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "アーティファクト パス %s はダウンロード ディレクトリの外部に解決されます。",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "アーティファクト パス %s は既にシンボリック リンクとして存在するため、拒否されました。",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "アーティファクト パス %s は既にハード リンクされたファイルとして存在するため、拒否されました。",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "アーティファクト パス %s は既に特殊ファイル (デバイス、パイプ、ソケットなど) として存在するため、拒否されました。",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "ディレクトリ %s を読み取ることができません。エラー: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "%s のダウンロードを再試行しています。再試行回数: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "項目 %s の処理をスキップしました",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "응답 본문 %s을(를) 구문 분석하지 못했습니다. 오류: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "%s을(를) %s에 다운로드하는 중",
|
|
5
5
|
"loc.messages.DownloadedTo": "%s을(를) %s에 다운로드함",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "아티팩트 경로 %s이(가) 다운로드 디렉터리 외부로 확인됩니다.",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "아티팩트 경로 %s이(가) 이미 심볼릭 링크로 존재하여 거부되었습니다.",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "아티팩트 경로 %s이(가) 이미 하드 링크된 파일로 존재하여 거부되었습니다.",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "아티팩트 경로 %s이(가) 이미 일반 파일이 아닌 파일(예: 장치, 파이프 또는 소켓)로 존재하여 거부되었습니다.",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "디렉터리 %s을(를) 읽을 수 없습니다. 오류: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "%s 다운로드를 다시 시도하는 중, 다시 시도 횟수: %s회",
|
|
9
12
|
"loc.messages.SkippingItem": "항목 %s의 처리를 건너뜀",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "Не удалось проанализировать текст ответа: %s. Ошибка: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "Идет скачивание %s в %s",
|
|
5
5
|
"loc.messages.DownloadedTo": "Скачано %s в %s",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "Путь к артефакту %s указывает за пределы каталога скачивания.",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "Путь к артефакту %s уже существует как символическая ссылка и был отклонен.",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "Путь к артефакту %s уже существует как файл с жесткой ссылкой и был отклонен.",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "Путь к артефакту %s уже существует как нестандартный файл (например, устройство, канал или сокет) и был отклонен.",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "Не удается считать каталог %s. Ошибка: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "Повторная попытка скачать %s, всего попыток: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "Пропущена обработка элемента %s",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "未能分析响应正文: %s,显示错误: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "正在将 %s 下载至 %s",
|
|
5
5
|
"loc.messages.DownloadedTo": "已将 %s 下载至 %s",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "项目路径 %s 解析到下载目录之外。",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "项目路径 %s 已作为符号链接存在,已被拒绝。",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "项目路径 %s 已作为硬链接文件存在,已被拒绝。",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "项目路径 %s 已作为非常规文件(例如设备、管道或套接字)存在,已被拒绝。",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "未能读取目录 %s。错误: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "重新尝试下载 %s,重试计数: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "已跳过处理项目 %s",
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"loc.messages.FailedToParseResponse": "無法剖析回應主體: %s,收到錯誤: %s",
|
|
4
4
|
"loc.messages.DownloadingTo": "正在將 %s 下載到 %s",
|
|
5
5
|
"loc.messages.DownloadedTo": "已將 %s 下載到 %s",
|
|
6
|
-
"loc.messages.InvalidArtifactPath": "
|
|
6
|
+
"loc.messages.InvalidArtifactPath": "成品路徑 %s 解析到下載目錄外部。",
|
|
7
|
+
"loc.messages.ArtifactPathIsSymlink": "成品路徑 %s 已作為符號連結存在,已遭拒絕。",
|
|
8
|
+
"loc.messages.ArtifactPathIsHardLinked": "成品路徑 %s 已作為硬連結檔案存在,已遭拒絕。",
|
|
9
|
+
"loc.messages.ArtifactPathIsSpecialFile": "成品路徑 %s 已作為非一般檔案 (例如裝置、管道或通訊端) 存在,已遭拒絕。",
|
|
7
10
|
"loc.messages.UnableToReadDirectory": "無法讀取目錄 %s。錯誤: %s",
|
|
8
11
|
"loc.messages.RetryingDownload": "正在重試下載 %s,重試次數: %s",
|
|
9
12
|
"loc.messages.SkippingItem": "已跳過處理項目 %s",
|
package/lib.json
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
"DownloadingTo": "Downloading %s to %s",
|
|
6
6
|
"DownloadedTo": "Downloaded %s to %s",
|
|
7
7
|
"InvalidArtifactPath": "Artifact path %s resolves outside the download directory.",
|
|
8
|
+
"ArtifactPathIsSymlink": "Artifact path %s already exists as a symbolic link and was rejected.",
|
|
9
|
+
"ArtifactPathIsHardLinked": "Artifact path %s already exists as a hard-linked file and was rejected.",
|
|
10
|
+
"ArtifactPathIsSpecialFile": "Artifact path %s already exists as a non-regular file (e.g. a device, pipe, or socket) and was rejected.",
|
|
8
11
|
"UnableToReadDirectory": "Unable to read directory %s. Error: %s",
|
|
9
12
|
"RetryingDownload": "Retrying download of %s, retry count: %s",
|
|
10
13
|
"SkippingItem": "Skipped processing item %s",
|