I wait for the next official release. i have a workaround with disable the permission
philipp.jenni_7195
@philipp.jenni_7195
Best posts made by philipp.jenni_7195
Latest posts made by philipp.jenni_7195
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
I have tested your latest release. Now i can't upload any file. You can reproduce it with the same steps, but now the upload of 7.60.0 will fail.
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
On Docker output i see follow output:
Running Execution Dispatcher... Running Execution Dispatcher... Checking for executions to dispatch... Checking for executions to dispatch... Execution Dispatcher completed. Execution Dispatcher completed. info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 PUT http://localhost:81/upack/Test/upload application/zip 2338404 A 403 error occurred in Test: The Feeds_OverwritePackage task is required to perform this action. A 403 error occurred in Test: The Feeds_OverwritePackage task is required to perform this action. An error occurred processing a PUT request to http://localhost:81/upack/Test/upload: The Feeds_OverwritePackage task is required to perform this action. An error occurred processing a PUT request to http://localhost:81/upack/Test/upload: The Feeds_OverwritePackage task is required to perform this action. info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 PUT http://localhost:81/upack/Test/upload application/zip 2338404 - 403 67 - 34.9552ms info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 POST http://localhost:81/0x44/ProGet.WebApplication/Inedo.ProGet.WebApplication.Controls.Layout.NotificationBar/GetNotifications - 0 info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 POST http://localhost:81/0x44/ProGet.WebApplication/Inedo.ProGet.WebApplication.Controls.Layout.NotificationBar/GetNotifications - 0 - 200 30 - 2.3018ms Running Feed Replication... Running Feed Replication... Feed Replication completed. Feed Replication completed. Running Execution Dispatcher... Running Execution Dispatcher... Checking for executions to dispatch... Checking for executions to dispatch... Execution Dispatcher completed. Execution Dispatcher completed.
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
Here the steps how you can reproduce:
- Create a docker-compose file:
services: proget: container_name: proget_proget deploy: replicas: 1 environment: SQL_CONNECTION_STRING: "Data Source=sql-server-db; Initial Catalog=ProGet; User ID=sa; Password=my-p8ss53rd" expose: - 81 image: proget.inedo.com/productimages/inedo/proget:latest labels: generated: by 8gwifi.org ports: - '81:80' sql-server-db: container_name: sql-server-db image: mcr.microsoft.com/mssql/server:2019-latest ports: - "1433:1433" environment: SA_PASSWORD: "my-p8ss53rd" ACCEPT_EULA: "Y" version: '3' ```
- Run "docker-compose up"
- Connect to the SQL Server with SA and create a db "ProGet"
- Run "docker-compose down"
- Run "docker-compose up
- Connect with browser to "http://localhost:81
- Login with "admin/admin"
- Enter a "Free" Lizence Key
- Create a Universal Package feed "Test"
- Create an API Key with Type "Feed" and Permission "View/Download" anad "Add/Repackage" for all Feeds
- Download upack.exe from https://github.com/Inedo/upack/releases
- Execute
upack.exe push database-schema-7.60.0.upack http://localhost:81/upack/Test/ --user=api:<Your generated API>
- Execute
upack.exe push database-schema-7.61.0.upack http://localhost:81/upack/Test/ --user=api:<Your generated API>
On the second upack command you should receive the error.
I was just able to reproduce the error with this procedure on Windows 10 and Docker Desktop.
- Create a docker-compose file:
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
Yes. That is correct. I can it reproduce with any package.
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
Hi Rich,
I can reproduce this on 2 different systems with the same case over and over again.
- create new feed
- create API key for this feed
- push package with the smaller version. This works.
- create package with the bigger version. This gives an error
Both systems are based on a Docker container (Linux) with MSSQL.
Is there any way to generate a detailed log that I can send to you?
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
I have sent you screenshot of my config and 2 upacks.
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
I have tried it with another installation and have exactly the same problem there. No matter with which upack I tested.
With the following case the problem should be reproduced.
Proget: 2022.18 (Docker version)
UPack: 3.0.1- Create an API key which only has the permission "View/Download" and "Add/Package" on the application feed. The feed type is "Feed
- Create UPack with new version
- Push the package with the following command upack.exe push mypackage-3.0.0.upack http://myserver/upack/jnetwork-applicaton/ --user=api:XAPIKEYXXXXXXXXXXXXXXXXXXXXXX
- Create UPack with new version
- Push the package with the following command upack.exe push mypackage-3.0.1.upack http://myserver/upack/jnetwork-applicaton/ --user=api:XAPIKEYXXXXXXXXXXXXXXXXXXXXXX
The first upload works, but the second upload with an new version to an exisiting package will fail. UPack then gives me the following error:
Unhandled exception. Inedo.UPack.Net.UniversalFeedException: 403 Forbidden: The Feeds_OverwritePackage task is required to perform this action.
In one place it worked for me, but then I found out that the API key was mapped to a user who was in the administrators group.
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
The server is not public, but i can send you a database backup and the docker config.
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
I have tried with V.3.1 of upack. Same result. Upack returns: Inedo.UPack.Net.UniversalFeedException: 403 Forbidden: The Feeds_OverwritePackage task is required to perform this action.