Closed Arthurvdv closed 1 year ago
Will be fixed in next version! Thanks for mentioning it!
With v2.0.4270 it seems the compiler-step is resolved.
There seems to be an issue with the publish-step
2023-06-26T09:51:39.6101142Z ##[error]A potentially dangerous Request.Path value was detected from the client (:).
Note 4 myself: If I every start a company, don't include special characters in the name of the company :-D
Full log below
2023-06-26T09:51:32.5240924Z ==============================================================================
2023-06-26T09:51:32.5241099Z Task : ALOps App Publish
2023-06-26T09:51:32.5241198Z Description : Publish AL Extension to Business Central
2023-06-26T09:51:32.5241310Z Version : 1.457.4270
2023-06-26T09:51:32.5241403Z Author : Hodor
2023-06-26T09:51:32.5241551Z Help : Publish Business Central extension to service tier.
2023-06-26T09:51:32.5241675Z ==============================================================================
2023-06-26T09:51:33.1369879Z *** Validate configuration
2023-06-26T09:51:33.1759640Z *** Task Inputs:
2023-06-26T09:51:33.1822722Z
2023-06-26T09:51:33.1963010Z name value
2023-06-26T09:51:33.1965960Z ---- -----
2023-06-26T09:51:33.1968581Z usedocker True
2023-06-26T09:51:33.1971030Z fixed_tag
2023-06-26T09:51:33.1971935Z installpublishedapps True
2023-06-26T09:51:33.1975656Z installaltesttool False
2023-06-26T09:51:33.1977777Z install_al_app_names Tests-TestLibraries...
2023-06-26T09:51:33.1980328Z strictappnames False
2023-06-26T09:51:33.1982988Z nav_serverinstance BC140
2023-06-26T09:51:33.1984965Z artifact_path C:\vsts-agent-alops-warp10\_work\2\a
2023-06-26T09:51:33.1986845Z nav_artifact_app_filter *.app
2023-06-26T09:51:33.1989234Z skip_verification True
2023-06-26T09:51:33.1991372Z forceinstall False
2023-06-26T09:51:33.1993854Z forcesync False
2023-06-26T09:51:33.1996706Z publish_scope Global
2023-06-26T09:51:33.1998254Z tenant default
2023-06-26T09:51:33.1999915Z batch_publish_folder
2023-06-26T09:51:33.2002708Z publisherazureactivedirectorytenantid
2023-06-26T09:51:33.2005971Z blocksymbolsonly False
2023-06-26T09:51:33.2006129Z
2023-06-26T09:51:33.2027691Z
2023-06-26T09:51:33.2036065Z
2023-06-26T09:51:33.2198694Z *** For documentation, please visit : https://www.alops.be/documentation
2023-06-26T09:51:33.2203197Z
2023-06-26T09:51:33.4650544Z *** ALOps License:
2023-06-26T09:51:33.4705651Z * Licensed To: Van Roey (Collection License)
2023-06-26T09:51:33.4715567Z
2023-06-26T09:51:33.4936894Z *** Importing required PS-Functions
2023-06-26T09:51:33.6062592Z *** Initiate Docker Session
2023-06-26T09:51:33.8507398Z *** Set Docker Container ErrorActionPreference = Stop
2023-06-26T09:51:34.0370912Z *** Install AL TestTool: False
2023-06-26T09:51:34.0385339Z *** Working folder: C:\vsts-agent-alops-warp10\_work\2\s
2023-06-26T09:51:34.0394693Z *** Artifact folder: C:\vsts-agent-alops-warp10\_work\2\a
2023-06-26T09:51:34.0403495Z *** Pipeline workspace: C:\vsts-agent-alops-warp10\_work\2
2023-06-26T09:51:34.0411008Z ***
2023-06-26T09:51:34.0432780Z *** Copy Artifacts to Docker Container: 14982483f1bfbf35a7e7477368ddca526b6ca0e0c202a36320cccd7e0d4d3e5e
2023-06-26T09:51:34.0460777Z *** Docker Artifacts Folder: c:\Run\DevOps\Artifacts
2023-06-26T09:51:34.0524162Z *** Resolve App file in [C:\vsts-agent-alops-warp10\_work\2\a]
2023-06-26T09:51:34.0602689Z *** Multiple App files found with filter [*.app].
2023-06-26T09:51:34.0661316Z * C:\vsts-agent-alops-warp10\_work\2\a\VanRoey.be_res_harmonics_22.0.92058.0_sandbox_22.2_base.app
2023-06-26T09:51:34.0683214Z *** Resolved App File: [C:\vsts-agent-alops-warp10\_work\2\a\VanRoey.be_res_harmonics_22.0.92058.0_sandbox_22.2_base.app].
2023-06-26T09:51:34.1186960Z *** Copy Artifact: [C:\vsts-agent-alops-warp10\_work\2\a\VanRoey.be_res_harmonics_22.0.92058.0_sandbox_22.2_base.app]
2023-06-26T09:51:34.6810637Z *** Import NAV/BC Management DLL's [False]
2023-06-26T09:51:34.6849995Z *** Loading assemblies for ServiceTier [BC].
2023-06-26T09:51:34.8228059Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\220\service]
2023-06-26T09:51:34.8672408Z *** Selected module: [C:\program files\microsoft dynamics nav\220\service\Management\Microsoft.Dynamics.Nav.Management.dll]
2023-06-26T09:51:34.8698160Z *** Loading module: [C:\program files\microsoft dynamics nav\220\service\Management\Microsoft.Dynamics.Nav.Management.dll]
2023-06-26T09:51:34.9419978Z *** Selected module: [C:\program files\microsoft dynamics nav\220\service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-06-26T09:51:34.9433744Z *** Loading module: [C:\program files\microsoft dynamics nav\220\service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-06-26T09:51:35.0010175Z
2023-06-26T09:51:35.0053687Z **************************************
2023-06-26T09:51:35.0063391Z * App File = [c:\Run\DevOps\Artifacts\VanRoey.be_res_harmonics_22.0.92058.0_sandbox_22.2_base.app]
2023-06-26T09:51:35.0064360Z
2023-06-26T09:51:35.3068678Z * App.ID = 96843938-0179-47d7-9795-c40fc8855376
2023-06-26T09:51:35.3099839Z * App.Name = res:harmonics
2023-06-26T09:51:35.3124806Z * App.Publisher = VanRoey.be
2023-06-26T09:51:35.3165018Z * App.Version = 22.0.92058.0
2023-06-26T09:51:35.5765119Z => Publishing App 'res:harmonics v22.0.92058.0'
2023-06-26T09:51:36.1615398Z *** Get Tenants
2023-06-26T09:51:36.4701035Z *** Tenant Info:
2023-06-26T09:51:36.4825488Z
2023-06-26T09:51:36.4826050Z
2023-06-26T09:51:36.4828035Z ServerInstance : MicrosoftDynamicsNavServer$BC
2023-06-26T09:51:36.4828672Z DatabaseName : CRONUS
2023-06-26T09:51:36.4829195Z DatabaseServer : localhost\SQLEXPRESS
2023-06-26T09:51:36.4829574Z DatabaseUserName :
2023-06-26T09:51:36.4829790Z State : Operational
2023-06-26T09:51:36.4829988Z DetailedState :
2023-06-26T09:51:36.4830179Z DeletionState : Not deleted
2023-06-26T09:51:36.4830370Z IsInExclusiveAccessMode : False
2023-06-26T09:51:36.4830614Z TenantDataVersion : 22.2.56969.58209
2023-06-26T09:51:36.4830824Z Compression : Unspecified
2023-06-26T09:51:36.4831007Z Id : default
2023-06-26T09:51:36.4831212Z AlternateId : {}
2023-06-26T09:51:36.4831398Z ValidAudiences : {}
2023-06-26T09:51:36.4831557Z AllowAppDatabaseWrite : True
2023-06-26T09:51:36.4831683Z NasServicesEnabled : False
2023-06-26T09:51:36.4832652Z RunNasWithAdminRights : False
2023-06-26T09:51:36.4832863Z EncryptionProvider : LocalKeyFile
2023-06-26T09:51:36.4833061Z AzureKeyVaultSettings :
2023-06-26T09:51:36.4833229Z DefaultCompany :
2023-06-26T09:51:36.4833411Z DefaultTimeZone : (UTC) Coordinated Universal Time
2023-06-26T09:51:36.4833588Z ExchangeAuthenticationMetadataLocation : https://outlook.office365.com/
2023-06-26T09:51:36.4833846Z AadTenantId : common
2023-06-26T09:51:36.4834038Z ApplicationInsightsConnectionString :
2023-06-26T09:51:36.4834220Z DisplayName :
2023-06-26T09:51:36.4834515Z EnvironmentName :
2023-06-26T09:51:36.4834635Z EnvironmentType : Sandbox
2023-06-26T09:51:36.4834749Z EnvironmentSettings :
2023-06-26T09:51:36.4834800Z
2023-06-26T09:51:36.4834839Z
2023-06-26T09:51:36.4834877Z
2023-06-26T09:51:36.4834909Z
2023-06-26T09:51:36.4835016Z *** Published App:
2023-06-26T09:51:36.4967486Z
2023-06-26T09:51:36.4967852Z
2023-06-26T09:51:36.4968280Z ServerInstance : MicrosoftDynamicsNavServer$BC
2023-06-26T09:51:36.4968730Z ExtensionDataVersion : 22.0.91189.0
2023-06-26T09:51:36.4968966Z IsInstalled : False
2023-06-26T09:51:36.4969190Z SyncState : NotSynced
2023-06-26T09:51:36.4969378Z NeedsUpgrade : False
2023-06-26T09:51:36.4969568Z IsPublished : True
2023-06-26T09:51:36.4969811Z Brief : Connect Business Central with res:harmonics PMS
2023-06-26T09:51:36.4970112Z Description : Streamline your operations and achieve unparalleled efficiency with our
2023-06-26T09:51:36.4970412Z integration app. Seamlessly connect Microsoft Dynamisc 365 Business Central
2023-06-26T09:51:36.4970711Z with res:harmonics PMS, empowering you to handle customers, invoicing,
2023-06-26T09:51:36.4970972Z payments, and general postings all in one place.
2023-06-26T09:51:36.4971392Z CompatibilityId : 1.0.0.0
2023-06-26T09:51:36.4971635Z PrivacyStatement : https://www.vanroey.be/voorwaarden/#tab4
2023-06-26T09:51:36.4971902Z Eula : https://www.vanroey.be/voorwaarden/
2023-06-26T09:51:36.4972103Z Help : https://www.vanroey.be/support/
2023-06-26T09:51:36.4972316Z Url : https://www.vanroey.be/
2023-06-26T09:51:36.4972432Z Logo :
2023-06-26T09:51:36.4972541Z DeveloperTenantId :
2023-06-26T09:51:36.4972652Z ScreenShots : {}
2023-06-26T09:51:36.4972787Z Dependencies : {Application, Microsoft, 22.0.0.0, False}
2023-06-26T09:51:36.4972919Z Capabilities : {}
2023-06-26T09:51:36.4973046Z PackageId : abf606bc-8903-4cfd-a5af-653b1e6009fc
2023-06-26T09:51:36.4973180Z PublisherAzureActiveDirectoryTenantId :
2023-06-26T09:51:36.4973318Z AppId : 96843938-0179-47d7-9795-c40fc8855376
2023-06-26T09:51:36.4973455Z Name : res:harmonics
2023-06-26T09:51:36.4973578Z Publisher : VanRoey.be
2023-06-26T09:51:36.4973704Z Version : 22.0.92058.0
2023-06-26T09:51:36.4973831Z ExtensionType : ModernDev
2023-06-26T09:51:36.4973945Z Scope : Global
2023-06-26T09:51:36.4974052Z Tenant :
2023-06-26T09:51:36.4974095Z
2023-06-26T09:51:36.4974134Z
2023-06-26T09:51:36.4974323Z
2023-06-26T09:51:36.4974365Z
2023-06-26T09:51:36.4977086Z *** Sync Tenant default
2023-06-26T09:51:36.5595665Z *** Sync App [res:harmonics] on tenant [default]
2023-06-26T09:51:36.7669108Z *** App Already installed, doing upgrade default
2023-06-26T09:51:36.7678702Z * Current version: 22.0.91189.0
2023-06-26T09:51:36.7688234Z * New version: 22.0.92058.0
2023-06-26T09:51:36.7696875Z *** Sync App default
2023-06-26T09:51:36.7892906Z *** Tenant Dataupgrade default
2023-06-26T09:51:37.2999228Z
2023-06-26T09:51:37.3020874Z **************************************
2023-06-26T09:51:37.3021098Z
2023-06-26T09:51:37.3058662Z
2023-06-26T09:51:37.3079351Z *** Disconnect Docker session.
2023-06-26T09:51:37.3113704Z *** Remove Docker session.
2023-06-26T09:51:37.3123243Z *** Docker session removed.
2023-06-26T09:51:37.3131817Z *** AL-Extension Published to ALOps Repository
2023-06-26T09:51:37.3197787Z *** Cleanup VSTS Environment: True
2023-06-26T09:51:39.5835180Z ##[section]Async Command Start: Add Build Tag
2023-06-26T09:51:39.5835386Z ##[section]Async Command End: Add Build Tag
2023-06-26T09:51:39.6101142Z ##[error]A potentially dangerous Request.Path value was detected from the client (:).
2023-06-26T09:51:39.6112799Z ##[section]Finishing: Publish App
Solved in next release!
Resolved, thanks!
Implemented in v1.458
Describe the bug I have a App with the name res:harmonics, where the ALOps App Compiler throws an error.
2023-05-24T08:32:34.0645703Z error AL1100: File name 'C:\azure-vsts-agent-build\_work\635\a\VanRoey.be_res:harmonics_1.0.87771.0_sandbox_22.1_be.app' is empty, contains invalid characters, has a drive specification without an absolute path, or is too long
Notice that the colon is also included in the filename
VanRoey.be_res:harmonics_1.0.87771.0_sandbox_22.1_be.app
. Local on my DEV-machine in VS Code the colon is automagically remove and the filename build asVanRoey.be_resharmonics_1.0.0.0.app
.In the command of ALOps the /out is defined with the colon included, which causes this error I think.
##[command]& C:\bcartifacts.cache\sandbox\22.1.55890.56917\VSIX\extension\bin\win32\alc.exe /packagecachepath:"C:\azure-vsts-agent-build\_work\635\s\app\.ALOPSCache" /project:"C:\azure-vsts-agent-build\_work\635\s\app" /out:"C:\azure-vsts-agent-build\_work\635\a\VanRoey.be_res:harmonics_1.0.87771.0_sandbox_22.1_be.app" /fullpaths /ruleset:"C:\azure-vsts-agent-build\_work\635\s\app\ruleset.json" /parallel+ /maxDegreeOfParallelism:2 /assemblyprobingpaths:"C:\Windows\assembly","C:\Windows\Microsoft.NET\assembly","C:\bcartifacts.cache\sandbox\22.1.55890.56917\platform\Test Assemblies\Mock Assemblies","C:\bcartifacts.cache\sandbox\22.1.55890.56917\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service"
the app.json
the used yaml please provide the yaml that you used. It helps you put the yaml like this:
the output Also the complete output is necessary for us to see what is going on. Also use backtics:
Expected behavior Special, non supported characters, are removed from the filename in the /out param.