NAV 2013 RTM DE: "New-NAVDatabase" is not recognized as the name of a cmdlet ...

Hello to all,
I'm trying to set up NAV 2013 RTM de (DVD fresh from Partnersource) with this great tool and the great instructions from Freddy - but it doesn't work.
NAV2013R2 RTM de, NAV2015 RTM de or CU43 de, all are no problem (with NET3). But NAV2013RTMde doesn't want to install.
I copied NET3-Install to Prerequisite-folder, and copied the folders \Webclient\Inetpub and \WindowsPoswerShellScripts from the NAV2013R2-DVD to the NAV2013-DVD-folder, as the installer/script requires them (and stops if they are missing).
But then the script stops with this error message:

I use the following script:
install-module navcontainerhelper -force
Import-Module navcontainerhelper
Update-Module navcontainerhelper -force
$adminPassword = (convertTo-SecureString -String 'xxxxx' -AsPlainText -Force)
$credential = New-Object System.Management.Automation.PSCredential('admin', $adminPassword)
$sqlcredential = New-Object System.Management.Automation.PSCredential('sa', $adminPassword)
$licensepath = 'c:\xxx\Dev-NAV2013.flf'
$containername = 'nav2013test'
New-NavContainer
-accept_eula
-containerName $containername
-navDvdPath "c:\DVD\2013RTMDE"
-navDvdCountry de
-includeCSide
-Credential $credential
-memoryLimit 4G
-updateHosts
-auth NavUserPassword
-doNotExportObjectsToText
-licenseFile $licensepath
-shortcuts Desktop
-myScripts @("c:\DVD\nav-docker-master\Run\70") (fresh copy from github)
Any ideas what's going wrong?
Best regards,
Wolfram

I think the cmdlets for creating a database was added in some CU of NAV 2013 - and the powershell scripts very much rely on those.
I am sorry, but I will not have time to look into this issue with a version which is long overdue.
You can try to install the DVD and check out whether the powershell cmdlets are available and try to debug the issue yourself - the source for the docker image is available right here.

Dear Freddy,
tnx for your tipp for some CU in NAV2013. I tried to install NAV2013CU58de, and the error above is gone - but I have some other errors (missing directories \WindowsPowerShellScripts, ...). I changed the script 70/navinstall.ps1 for debugging, and solved some problems, but now I got an error I don't know to handle, so I have to stop (The service could not add service principal names ...).
We want to use NAV2013 on docker for an update from 2013 to 2018(R2). I will try the NAV2013-DB to import in NAV2013R2-Docker, because NAV2013R2 works without problems.
If I have some time I will invetigate again in this problem.
Tnx to all for help - also the tipp from richardrobberse helped me to find out wich dlls were missing.

The service principal name thing is just a warning - should not be an issue I think.
If I get some time left over I might give it a shot some day.

Found one problem of NVA2013cu58:
The error is:
Importing CRONUS license file
A Parameter cannot be found that matches parameter name 'LicenseFile'
The cmdlet "Import-NAVServerLicense" of NAV2013cu58 doesn't know the parameter 'LicenseFile', it only accepts 'LicenseData', wich expects System.Byte and not a filename. I'm not very familar with powershell, so the solution is not easy for me. I'll try to find a way to give Import-NAVServerLicense a System.Byte(-Stream).

Found the solution (tnx Internet):
Import-NAVServerLicense -LicenseData ([Byte[]]$(Get-Content -Path $licensefile -Encoding Byte)) -ServerInstance 'NAV' -Database NavDatabase -WarningAction SilentlyContinue
But now another error occurs: Modifying Service Tier Config File
The property 'value' cannot be found in this object.
I will check later / another time and write about the result(s).

Result: some more errors because the settings of NAV2013 are named different than NAV2015 and above - or unknown.
SetupLicense.ps1: see above (LicenseData instead of LicenseFile).
SetupConfiguration.ps1: Keys "DefaultClient", "Multitenant", "PublicSOAPBaseUrl", "PublicODataBaseUrl", "PublicWinBaseUrl" are unknown in NAV2013. "ServicesCertificateThumbprint" and "ServicesCertificateValidationEnabled" has to be "ClientServices...".
SetupNavUsers.ps1: New-NavServerUser does not know "-AuthenticationEMail"
But now I have a problem with AdditionalSetup.ps1. This file is filled by a script or program, and it uses "ServicesCertificateValidationEnabled", but for NAV2013 it has to be "ClientServicesCertificateValidationEnabled". OK, i can make a own AdditionalSetup.ps1 with correct parameter, but the program/script filling AdditionalSetup.ps1 writes all settings at the end, icluding "ServicesCertificateValidationEnabled", so the process is stopped here.
Which program/script filles AdditionalSetup.ps1? Where do I have to change "ServicesCertificateValidationEnabled" in "CleintServicesCertificateValidationEnabled"? If I get the answer, i can continue with testing.
P.S.: I don't know much about Powershell and Docker, so maybe there is an easier way to skip this line, but at the moment I don't know it, and I have only very limited access to internet.

Summary (at the moment): I copy the attached modified scripts "navinstall.ps1", "SetupConfiguration.ps1", "SetupLicense.ps1", "SetupNavUsers.ps1" and "AdditionalSetup.ps1" to c:\myscripts and start "CreateContainer2013-cu58-de.ps1".
It nearly works fine, except any program/script modifies "AdditionalSetup.ps1" and adds the not working settings to the end of "AdditionalSetup.ps1". Then the process stops.
So I need a little help, and then I hope it will be possible to create a NAV2013CU58 docker container.
NAV2013CU58-Modifications-01.zip

Thanks
I am travelling this week, but will have a look at this when I get back (sometime next week probably).

I have created a new version of the generic image, you can test it using the imagename: microsoft/dynamics-nav:generic-<IP_ADDRESS>
This should be able to run your NAV 2013 as well.
Thanks for your effort.
Within the next few days, this will become default (meaning that you can remove -<IP_ADDRESS>)

Dear Freddy,
tnx for the new generic image <IP_ADDRESS>. It works fine except the last error I described:
I used "New-NavContainer ..." without -myScripts, so I used all scripts from the image. Everythings runs fine till "AdditionalSetup.ps1". This file should be empty, but is has content - and here is the reason for the error. This script tries to set "ServicesCertificateValidationEnabled", but NAV2013 expects "ClientServicesCertificateValidationEnabled". Which program modifies "AdditionalSetup.ps1" - which programm adds lines to this file? If "AdditionalSetup.ps1" would be empty, I think the complete process would run without errors.

Where does "AdditionalSetup.ps1" come from - I don't use "-myScripts".

The additionalsetup comes from NavContainerhelper, which will be updated tomorrow probably.
For now, you can clone the github repo to your machine, uninstall and remove the module and run navcontainerhelper.ps1 from the cloned folder - then you will have the changes now.

Dear Freddy,
tnx for modifying NavContainerHelper. With cloned folder, install runs without error, and it's possible to connect to the Dev-Environment. Win-Client doen't want to work at the moment, I'm looking for the reason. And after this, I'll try NAV2013RTM (with DLLs from 2013cu58).

Dear Freddy,
with Cronus license NAV2013cu58 works! Great! So I will test NAV2013RTM and, after finishing everything, I'll write a complete solution. Thank you for fast and great support.


fix(frontend): add audio config template

:tada: This PR is included in version 3.0.0-alpha.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


fix(ingest/tableau): warn with better error message

Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

vulnerability scan failiure is unrelated to change


Could we get more info about GPS?

I saw we only get 2 info: num_satellites and fix_type of GPS in telemetry. But the qgroundcontrol is can get hdop, vdop, Course Over Ground image
So I wonder that we get more info about GPS like qgroundcontrol?
Thanks

Yes, that would be possible. Feel free to make a PR describing the data here: https://github.com/mavlink/MAVSDK-Proto/blob/85b5f7f270372b8395f86af50b608544a0cd455f/protos/telemetry/telemetry.proto#L422-L426

@julianoes I want to question that currently, could we get more info GPS and how to get its?

Currently you can't get it. You need to change the API and then we can add the functionality that you need.

@julianoes Oh. Thanks your support. I will try update the API .

There is no more information available, see https://github.com/mavlink/MAVSDK/pull/1333/commits/87895b22d3ee6b121ef67b117c08493182d72fda.


Update bfe_callback.go

需求6: 把这里的单词 改为 驼峰式 风格 ，例如 HANDLERS_ACCEPT --> HandlesAccept

Codecov Report

Merging #462 into develop will increase coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #462      +/-   ##
===========================================
+ Coverage    53.01%   53.06%   +0.05%
===========================================
  Files          257      257
  Lines        23684    23684
===========================================
+ Hits         12556    12568      +12
+ Misses        9642     9633       -9
+ Partials      1486     1483       -3

Impacted Files
Coverage Δ

bfe_util/fixed_pool.go
83.33% <0.00%> (-16.67%)
:arrow_down:

bfe_spdy/server_conn.go
78.53% <0.00%> (+0.88%)
:arrow_up:

bfe_http2/writesched.go
80.91% <0.00%> (+1.52%)
:arrow_up:

...e_modules/mod_trust_clientip/mod_trust_clientip.go
46.15% <0.00%> (+3.29%)
:arrow_up:

bfe_websocket/server_conn.go
78.03% <0.00%> (+3.78%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa3e9c2...c56f2f6. Read the comment docs.


fix: pass images to css styles from js

:tada: This PR is included in version 1.11.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


creating service attributes test cases

Separating service_attributes test case in k8s into 4 test cases to test for:

Loadbalancer
NodePort
ClusterIP
ExternalP

the PR should work on k8s image 1.2.4 and 1.3.0, you should specify KUBECTL_VERSION to "v1.3.0" before running these tests on k8s 1.3.0

LGTM


Validate a blueprint's top-level "labels" variable

PR Validation is failing. PTAL
Also, please assign Tom as a reviewer since he knows this part of the code better.


Error screen text formatting

Thank you for filing an issue!

Version

Latest develop
Description

The text in the error screen is URL encoded for some reason (although the screen looks great BTW). Pretty meta that I used the "Create Issue" button to report an issue about the error page :)

Log

This will be resolved by #572


Include of non-modular header inside framework module 'XMPPFramework.XMPPStream'

Steps:
1 - Creating new project.
2 - Adding pod to pods file
and I have an error on "XMPPStream" interface.
#import "CocoaAsyncSocket/GCDAsyncSocket.h"
**I tried --deep clean Xcode (command+alt+shift+k)

Problem solved by updating my cocoapods gem

Getting problem at Line 5 - #import "CocoaAsyncSocket/GCDAsyncSocket.h"
Tried deep clean also , and my podfile is also Ok. Please help me out on this one


openmpi: 4.0.0 -> 4.0.1

Motivation for this change
regular update
Changelog: https://github.com/open-mpi/ompi/blob/v4.0.x/NEWS
Things done

remove upstream patch

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build scalapack
@GrahamcOfBorg build python3Packages.mpi4py
@GrahamcOfBorg build lammps-mpi
@GrahamcOfBorg build dl-poly-classic-mpi
@GrahamcOfBorg build siesta-mpi

mpi4py fails again due to outdated symbols.
openmpi now fails on darwin:
server/pmix_server_ops.c:3432:19: error: use of undeclared identifier 'CLOCK_MONOTONIC'
    clock_gettime(CLOCK_MONOTONIC, &tp);

status?

@FRidh I did not have time to work on this lately. The main blocker here is the build failure on darwin (which I can not really debug). I may put this on hold until 4.0.2 is out, which hopefully solves the darwin problem.

Darwin should have CLOCK_MONOTONIC since d69cc779b520ea74a5b52fa5691f3f8fd7fe9cf3 which updates its Libc package from 1082.50.1 to 1158.50.2 (https://reviews.llvm.org/D27429).

@GrahamcOfBorg build python3Packages.mpi4py

Did a rebase (unfortunatley the ofborg darwin builders seem to have a general issue right now).
@orivej thanks for clearing up the darwin question. With that the PR is ready to be merged.


System.IO.Compression.ZipArchive missing in 4.7.2

In an ASP Core project, targeting 4.7.2, System.IO.Compression.ZipArchive is missing. Downgrading to 4.7.1 brings it back, but going back up to 4.7.2 breaks it again.

can you please share a binlog with the error so that we can diagnose what is happening here? In order to produce a binlog, simply build your project from the command prompt like: msbuild yourProject.csproj /t:rebuild /bl which will drop a msbuild.binlog file on your current directory.

@mariocatch can you also clarify what you mean by it 'missing'?

I can confirm the issue reported as well.  We were using System.IO.Compression.ZipArchive but it is no longer accessible in 4.7.2.  We were forced to down grade to 4.7.1 where it is accessible.

Can you share a repro with us? Does it happen every time, during a specific type of project? Can you share more about the environment you are running in?

We were able to repro this in house and we can confirm that this is the same issue as this one.
@joperezr is going to update the known issue with a workaround for when you are using packages.config as well.
@dsplaisted is working on a fix that will address this class of issues.

Sharing the workaround through here while I write the PR to update that issue:
Add this to your .csproj
<ItemGroup>
  <Reference Include="System.IO.Compression" />
</ItemGroup>

That should fix the issue.

The fix for this just went in here: https://github.com/dotnet/sdk/pull/2250

To use the ZipFile class, you must reference the System.IO.Compression.FileSystem assembly in your project.
https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.zipfile?view=netframework-4.8


Fixed beatmap parsing after version 20191106

Adjusted beatmap parsing by omitting beatmap memory length for versions 20191106 onwards.

Thanks!
Merged for 0.2.


version_checker is running on too many CI tasks

A version update failure fails the following presubmit tasks:

analyze
build-apks+java-test+firebase-test-lab
build-apps+drive-examples
build-ipas+drive-examples
format
test

It should only fail a single presubmit task

I'm not sure what the current state is; I think it's worth keeping open to re-test and see if we're doing the same check in too many places.

As f as I know this is only running on one task now.


refactor: move different cognitive services into sub packages

Related Issues/PRs

#xxx
What changes are proposed in this pull request?
Briefly describe the changes included in this Pull Request.
How is this patch tested?

[ ] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[ ] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[ ] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/documentation/estimators/cognitive/_MAD.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AnomalyDetection.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AzureSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_BingImageSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_ComputerVision.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Face.md

link
:warning:

website/docs/documentation/transformers/cognitive/_FormRecognizer.md

link
:warning:

website/docs/documentation/transformers/cognitive/_SpeechToText.md

link
:warning:

website/docs/documentation/transformers/cognitive/_TextAnalytics.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Translator.md

link
:warning:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/documentation/estimators/cognitive/_MAD.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AnomalyDetection.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AzureSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_BingImageSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_ComputerVision.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Face.md

link
:warning:

website/docs/documentation/transformers/cognitive/_FormRecognizer.md

link
:warning:

website/docs/documentation/transformers/cognitive/_SpeechToText.md

link
:warning:

website/docs/documentation/transformers/cognitive/_TextAnalytics.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Translator.md

link
:warning:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/documentation/estimators/cognitive/_MAD.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AnomalyDetection.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AzureSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_BingImageSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_ComputerVision.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Face.md

link
:warning:

website/docs/documentation/transformers/cognitive/_FormRecognizer.md

link
:warning:

website/docs/documentation/transformers/cognitive/_SpeechToText.md

link
:warning:

website/docs/documentation/transformers/cognitive/_TextAnalytics.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Translator.md

link
:warning:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Codecov Report

Merging #1746 (d66a5e8) into master (b6ef511) will decrease coverage by 7.80%.
The diff coverage is 21.73%.

@@            Coverage Diff             @@
##           master    #1746      +/-   ##
==========================================
- Coverage   86.02%   78.22%   -7.81%
==========================================
  Files         271      271
  Lines       14126    14140      +14
  Branches      737      735       -2
==========================================
- Hits        12152    11061    -1091
- Misses       1974     3079    +1105

Impacted Files
Coverage Δ

...ynapse/ml/cognitive/anomaly/AnomalyDetection.scala
81.73% <ø> (ø)

.../ml/cognitive/anomaly/AnomalyDetectorSchemas.scala
100.00% <ø> (ø)

...gnitive/anomaly/MultivariateAnomalyDetection.scala
89.91% <ø> (ø)

...e/anomaly/MultivariateAnomalyDetectorSchemas.scala
100.00% <ø> (ø)

...re/synapse/ml/cognitive/bing/BingImageSearch.scala
89.28% <ø> (ø)

...crosoft/azure/synapse/ml/cognitive/face/Face.scala
81.37% <ø> (ø)

...ynapse/ml/cognitive/form/FormOntologyLearner.scala
89.79% <ø> (ø)

...ure/synapse/ml/cognitive/form/FormRecognizer.scala
84.04% <ø> (ø)

...apse/ml/cognitive/form/FormRecognizerSchemas.scala
84.61% <ø> (ø)

...e/synapse/ml/cognitive/form/FormRecognizerV3.scala
88.00% <ø> (ø)

... and 76 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/documentation/estimators/cognitive/_MAD.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AnomalyDetection.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AzureSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_BingImageSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_ComputerVision.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Face.md

link
:warning:

website/docs/documentation/transformers/cognitive/_FormRecognizer.md

link
:warning:

website/docs/documentation/transformers/cognitive/_SpeechToText.md

link
:warning:

website/docs/documentation/transformers/cognitive/_TextAnalytics.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Translator.md

link
:warning:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Lovely work! I dont see the python backcompat stuff in the PR yet but everything else looks great. Especially liked how you remembered to update the test matrix in pipeline.yml

In PyCodegen file, I made a change to init.py file so that it also imports subpackages in cognitive namespace :D

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/documentation/estimators/cognitive/_MAD.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AnomalyDetection.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AzureSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_BingImageSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_ComputerVision.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Face.md

link
:warning:

website/docs/documentation/transformers/cognitive/_FormRecognizer.md

link
:warning:

website/docs/documentation/transformers/cognitive/_SpeechToText.md

link
:warning:

website/docs/documentation/transformers/cognitive/_TextAnalytics.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Translator.md

link
:warning:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/documentation/estimators/cognitive/_MAD.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AnomalyDetection.md

link
:warning:

website/docs/documentation/transformers/cognitive/_AzureSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_BingImageSearch.md

link
:warning:

website/docs/documentation/transformers/cognitive/_ComputerVision.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Face.md

link
:warning:

website/docs/documentation/transformers/cognitive/_FormRecognizer.md

link
:warning:

website/docs/documentation/transformers/cognitive/_SpeechToText.md

link
:warning:

website/docs/documentation/transformers/cognitive/_TextAnalytics.md

link
:warning:

website/docs/documentation/transformers/cognitive/_Translator.md

link
:warning:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run


[PasscodeLock] can't unlock

my original passcode is empty, but when i updated the plugin, it just stuck at the lock page and i can't unlock.

Delete the PasscodeLock.config.json from plugins folder and restart the Discord

Delete the PasscodeLock.config.json from plugins folder and restart the Discord

i delete it, and try reinstall it, but it's still not wokring.

I have to clarify the issue now. Is the problem that you can't unlock or is the plugin not working?

can't unlock

In case you forgot your password:
Delete the PasscodeLock.config.json from plugins folder and restart the Discord


Dynamic alternate urls

Hi all,
I have a project in which certain routes are collected from a rest api. This is an example of a route:
ES: /camino-frances-sarria-grupo/
EN: /en/french-way-from-sarria-in-group/
IT: /it/cammino-francese-da-sarria-in-gruppo/
I have created a component that collects all the root routes [slug].vue since in the same root route there can be different types of content. I know it is not a good practice but I do not have the decisive power to change this.
The route as seen is the same since only the language code is placed before it but the slugchanges depending on the language
<template>
    <component
        :is="component.component"
        v-for="(component, index) in components"
        v-once
        v-bind="component.payload"
        :key="index"
    />
</template>

<script setup lang="ts">
    import { defineAsyncComponent } from 'vue'
    import { useCms } from '@/modules/calltek/cms'

    const route = useRoute()
    const i18n = useI18n()
    const cms = useCms()
    const components: any[] = []

    try {
        const slug = route.params.slug.toString()
        const currentLang = i18n.locale.value

        const result = await cms.get(currentLang, ['ROUTE', 'PRODUCT'], slug)

        // alternate slugs
        const alernateUrls: Record<string, string> = {}
        result.data.slug.forEach((slug) => {
            alernateUrls[slug.code] = `/${slug.text}`
        })

        defineI18nRoute({
            paths: alernateUrls
        })

        components.push({
            component: defineAsyncComponent(
                () =>
                    import(`../partials/${result.type.toLowerCase()}/index.vue`)
            ),
            payload: {
                data: result.data,
                lang: result.locale
            }
        })
    } catch (error) {
        throw createError({
            statusCode: 404,
            statusMessage: 'Página no encontrada',
            fatal: true
        })
    }
</script>

<style scoped lang="scss"></style>

From what I see defineI18nRoute does not work with dynamic routes. How can I address this?

I try to do a hack like this:
route.params.slug_en = 'example-slug-en'
route.params.slug_it = 'example-slug-it'

defineI18nRoute({
    paths: {
        es: '/[slug]',
        en: '/[slug_en]',
        it: '/[slug_it]'
    }
})

But didn't work

@kazupon
in my opinion it would be great to have a composable or compiler macro to define custom paths for ALL dynamic routes at once, that can be called, e.g. at the start of app.vue.
e.g.:
defineI18nRoutes({
    paths: {
      about: {
        fr: '/a-propos',
      },
      me: {
        fr: '/je',
      },
      services: {
        fr: '/offres',
      },
      'services/advanced': {
        fr: '/offres/avancee',
      }
    }
})

this is practically a necessity with headless CMS, which are getting major traction and are a perfect fit for Nuxt.
this way, one could fetch all routes incl. their translated paths from the CMS and tell the i18n-module about it.
this would also enable linking to other pages using the useLocalePath cmposable, since i18n now has info about all the translated paths.

I'm facing a similar issue with wrong alternate dynamic routes when using static generation with nuxi generate and using the strategy prefix_except_default.
The generated routes and translations seem fine but when trying to navigate via useSwitchLocalePath() from let's say the english page en/test-page to it's default route in german test-seite, nuxt tries to fetch the json payload that still includes the old locale /en/test-seite/_payload.json and fails because it doesn't exist. It should load test-seite/_payload.json without the en prefix.
On SSR this works fine, only facing this issue when generated staticly. It looks like the locale is not being updated fast enough only after nuxt is handling the GET for the payload.json file.
Thanks for any help in advance!

In my case I currently perform a predefined query to my backend in the paths /:slug and /:parent_slug/:slug
It happens that by hierarchy inherited from the old project i have different entities in those routes and I need to make a mandatory query to the backend so that it tells me which entity is the one I'm visiting and give me the data. The backend also returns me the routes of the alternative languages.
To probe all the routes at the beginning of the call would not be efficient in my case and at the moment I have a problem to generate the alternative links since as I commented previously I believe that it is not possible to define them in a dynamic way.

This is an issue, how can we define alternative routes for dynamic parameter when loading data from an API?
Using defineI18nRoutes cannot solve this issue since it's compile time micro.

This is an issue, how can we define alternative routes for dynamic parameter when loading data from an API? Using defineI18nRoutes cannot solve this issue since it's compile time macro.

I think that right now the only method is to delegate the route management to nitro or another backend.

This is an issue, how can we define alternative routes for dynamic parameter when loading data from an API? Using defineI18nRoutes cannot solve this issue since it's compile time macro.

Did you ever find a solution to this? I'm getting my routes from an API and the alternate tags are wrong. I'm using
const setI18nParams = useSetI18nParams();
setI18nParams({
  en: {
   slug: data.en.slug
  },
  nl: {
    slug: data.nl.slug
})

To dynamically set the route slugs, but I suppose the alternate tags have already been set by the time this runs?

@notflip
You're using setI18nParams correctly, please open a new issue with a minimal reproduction so we can take a closer look at your issue!
This issue should have been closed by https://github.com/nuxt-modules/i18n/pull/2580, so I'll be closing and locking it now (to prevent pinging the other participants in this and other very similar closed issues).


release: 1.0.4 🔧

CHANGELOG

Current coverage is 88.90% (diff: 100%)

Merging #524 into master will decrease coverage by 0.05%

@@             master       #524   diff @@
==========================================
  Files           170        170
  Lines          1847       1847
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           1643       1642     -1
- Misses          204        205     +1
  Partials          0          0

Powered by Codecov. Last update 7d2ff0d...8dd3f30


issue-826: write to log offset ranges for OnReaderSendCommitMessage

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?
Start and end offset omitted in logs
Issue Number: issue-826
What is the new behavior?

Add new fields for each commit message (topic, partition, start offset, end offset)
Log each commit range in message separetly (for consistency with TopicReaderCommitStartInfo and easier log investigation)

Codecov Report
Patch coverage: 25.64% and project coverage change: -26.92% :warning:

Comparison is base (2ed2056) 66.52% compared to head (de91a9f) 39.61%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #828       +/-   ##
===========================================
- Coverage   66.52%   39.61%   -26.92%
===========================================
  Files         238      180       -58
  Lines       23290    19783     -3507
===========================================
- Hits        15494     7837     -7657
- Misses       6990    11605     +4615
+ Partials      806      341      -465

Flag
Coverage Δ

?

go-1.17.x
39.61% <25.64%> (-26.79%)
:arrow_down:

go-1.20.x
?

go-1.21.x
?

integration
?

macOS
?

ubuntu
39.61% <25.64%> (-0.21%)
:arrow_down:

unit
39.61% <25.64%> (-0.30%)
:arrow_down:

windows
?

ydb-22.5
?

ydb-23.1
?

ydb-23.2
?

ydb-23.2-slim
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

log/topic.go
0.00% <0.00%> (-5.03%)
:arrow_down:

internal/topic/topicreaderinternal/commit_range.go
80.00% <100.00%> (+9.52%)
:arrow_up:

internal/topic/topicreaderinternal/committer.go
87.24% <100.00%> (-0.68%)
:arrow_down:

... and 177 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Not worth it.


Make indexing.rank() work without given_name/family_name

Currently indexing.rank() fails if given_name/family_name is None. But the fields should be optional per PFIF.
To reproduce the issue, create person records without filling given_name/family_name, and search for a query which matches multiple records.

We can remove this workaround if this is fixed: https://github.com/nworden/personfinder/commit/7c3dae3721dc66a26215c5050611fdb915c2f9c6


[FEATURE REQ] Add China North 3 and China East 3 to region list

Hi,
Now new region China North 3 and China East 3 are now available, see
Microsoft Azure expands to new region in the China market and
Azure cross-region replication pairings for all geographies (According to Azure support, China North 3 allow unrestricted access by customers while China East 3 needs additional application).
That's a good thing.
However, for now, even the latest SDK does not yet have these 2 regions, see api docs and github
Can you pls add these 2 regions ASAP because info from Microsoft is that China North 2 is about to be too occupied, and we are asked and planning to start use new regions.
We are utilizing sdk version 1.41.2 and the com.microsoft.azure:azure-mgmt-resources artifact.

Library dependency is:
<dependency>
                <groupId>com.microsoft.azure</groupId>
                <artifactId>azure</artifactId>
                <version>1.41.2</version>
            </dependency>
            <dependency>
                <groupId>com.azure.resourcemanager</groupId>
                <artifactId>azure-resourcemanager-eventgrid</artifactId>
                <version>1.1.0</version>
                <exclusions>
                    <!-- avoid picking up older azure-core version! -->
                    <exclusion>
                        <groupId>com.azure</groupId>
                        <artifactId>azure-core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.azure</groupId>
                        <artifactId>azure-core-management</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

So can we also have this patch to version 1.41.2?
BR,
Hoya

@weidongxu-microsoft could you please follow up?

@hoya1101
com.microsoft.azure:azure is deprecated on 2022 March, so there is no new feature to it.
Please use https://aka.ms/azsdk/java/mgmt if you can migrate.
Is China North 3 and China East 3 on Azure Global or Azure China? Ask because I probably checked it last month that there is no new region (according to my test subscription which is Global).

Hi @weidongxu-microsoft ,

Is China North 3 and China East 3 on Azure Global or Azure China?

It's Azure China.

Please use https://aka.ms/azsdk/java/mgmt if you can migrate.

Migrating lib would need a lot additional testing and maybe codebase adaptation... We would rather an upgrade if it's possible.
BTW, you mean in the new lib both "chinanorth3" and chinaeast3 are ready there to be used?

you can use the region by Region.create("chinanorth3", "China North 3")

This is what we are now doing for development testing, but from our point of view, it's kind of workaround.

@hoya1101
No, "chinanorth3" is not in azure-resourcemanager either, but we will only add them there in next release (as old lib was deprecated). This is the same place of the azure-resourcemanager-eventgrid lib you are using.
Trying to find my Azure China subscription.
Actually Region.create("chinanorth3", "China North 3") is not a workaround. The pre-defined value in Region class is for ease of use in compile time.
The actual values of region is from /subscriptions/<subscription-id>/locations endpoint at runtime, which is same when you call az account list-locations on CLI to find out available regions.

Hi @weidongxu-microsoft
Then what's the ETA of your next release?
Before that we actually have no option but to use Region.create("chinanorth3", "China North 3").

Next release will be 2.15.0 on May (azure-core-management at 1.6.0).

Hi @weidongxu-microsoft
Info shared from azure support is that China North 3 is a new region available since this March, and China East 3 is a hidden region there which is available when additionally applied.
"China North 3 是2022年3月最新开放的区域(微软Azure将扩展到中国市场的新区域，|Azure 博客和更新|Microsoft Azure), China East 3  需要通过工单的形式申请"

I'm afraid probably we need China East 3 ready, too. Because it is the paired failover region to China North 3, see Azure cross-region replication pairings for all geographies
We would use them together, as paired regions.

@hoya1101
Could you paste the output of either az account list-locations or data of azure.getCurrentSubscription().listLocations() with China East 3?
Since I cannot test on my site, I would like to have the detail to confirm the region name as "chinaeast3".

So far, our ops team have applied for China East 3 region availability for both development and production subscriptions, not yet completely done by Microsoft. From our side, before that only 5 regions are visible chinanorth, chinaeast, chinaeast2, chinanorth2, chinanorth3.

@hoya1101
OK. I've get the confirmation of chinaeast3 from Yang Zhao. PR updated for East 3 as well.

Good to know that!
Can we get a more specific date for your ETA of release😀? On which day in May?

@hoya1101
The azure-core-management (that have the change) will be about end of first week of May.

Hi @weidongxu-microsoft , thanks a lot for all you've shared and done :)

azure-core-management 1.6.0 released
https://github.com/Azure/azure-sdk-for-java/releases/tag/azure-core-management_1.6.0


fixed the typo about epsilon

lgtm. For next time maybe you can squash such commits into one (there is no need to have two separate commits for a change like this).
Is the error in the second Travis job unrelated?

the error is not related to this PR.
I merge this.


[frontend] add starkdefi

@0xChqrles

@0xChqrles anything in particular you want me to change for this PR? The current one should easily handle univ2-style AMM.


feat: 🎸 finish delete all listed item

Add delete all items features.
This features is especially convient when you try to delete all node_modules in a monorepo at once

https://user-images.githubusercontent.com/17974631/160784973-d0f89187-79cd-4c64-94b2-c43ab76fa4ac.mp4


set expandable_segments:True in ops_torch.py to reduce memory fragmentation

the current ops_torch.py backend ooms because of memory fragmentation on a 4090 on:
test/models/test_real_world.py::TestRealWorld::test_llama
test/models/test_whisper.py::TestWhisper::test_transcribe_long
examples/beautiful_mnist.py
setting the envvar PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True fixes it for now.
setting it in runtime/ops_torch.py because its a torch-runtime specific tweak

We don't really care about the torch backend.


Updating package into newer version 0.1.13

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin please rerender

@conda-forge/help-python Please kindly review this PR, thanks!


Generating incorrect md5sum

Search first

[X] I searched and no similar issues were found

Description
We migrated from version 4.9.1 to version 4.25.0 without issues, but in a certain situation, it was necessary to perform the clear-checksums, and after recalculating the md5sum by 4.25.0, it started reporting inconsistencies in the generated md5
Steps To Reproduce
Steps to reproduce:

Have this changeSet executed in your database by version 4.9.1 where the md5sum 8:3b06ccdb23f1b15752104130a7d5e3d6 was generated
Execute the liquibase update command in version 4.25.0, it will upgrade the md5sum generating the following value: 9:a4f08e5d093fb1cb5061048413e6f954
Execute the liquibase clear-checksums command, which will set the md5sum to null
Execute the liquibase update command again in version 4.25.0. In this case, it will update the md5sum value incorrectly and execute normally. Value found in our tests: 9:d41d8cd98f00b204e9800998ecf8427e
Execute the liquibase update command again in version 4.25.0, and from then on, it will always give an error indicating that the md5sum is incorrect

Additional details:

We used Java OpenJDK version "1.8.0_312".
To execute this and other files, we have another XML db-update file that includes it

Changelog where the problem occurred:
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.6.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.6.xsd">
	<changeSet author="automation" id="123">
		<preConditions onFail="MARK_RAN">
			<not>
				<sqlCheck expectedResult="0">
					<![CDATA[
						select count(*) from flex_registration_config
						where ds_content_persistence_layout not like '%<DataSource>%'
					]]>
				</sqlCheck>
			</not>
       	</preConditions>
		<sql  dbms="oracle" splitStatements="false">
		<![CDATA[
			DECLARE
				p xmlparser.parser;
				doc xmldom.DOMDocument;
				v_replace CLOB;
				nl xmldom.DOMNodeList;
				len number;

				CURSOR c is
					select id_flex_registration_config, ds_content_persistence_layout from flex_registration_config;

				procedure clob_replace( i_src CLOB, i_match VARCHAR2, i_rep VARCHAR2 , i_result IN OUT CLOB) IS
				  MAX_VARCHAR2 NUMBER DEFAULT 15000;  -- depending on your character set, 32767 may not be your actual number of available characters

				  l_ret_clob CLOB;                    -- temporary CLOB to be returned
				  l_next_idx NUMBER;                  -- used to traverse the source CLOB, captures the next instance of the match string
				  l_search_begin NUMBER DEFAULT 1;    -- used to traverse the source CLOB, indicates the starting point of the next search
				  l_parse_begin NUMBER DEFAULT 1;     -- used to copy date from the source CLOB, indicates the beginning of the copy window
				  l_parse_end NUMBER;                 -- used to copy date from the source CLOB, indicates the beginning of the end window

				BEGIN

				  -- Create a temporary CLOB to be returned
				  DBMS_LOB.CREATETEMPORARY( l_ret_clob, TRUE );

				  LOOP

					l_next_idx := DBMS_LOB.INSTR( i_src, i_match, l_search_begin, 1 );

					-- Exit once we do not find another occurance of the match string
					EXIT WHEN l_next_idx = 0;

					-- Special handling if we find a match at the first character of the source string
					IF l_next_idx = 1 THEN

					  l_parse_begin := LENGTH( i_match ) + 1;

					  IF LENGTH( i_rep ) > 0 THEN
						DBMS_LOB.APPEND( l_ret_clob, i_rep );
					  END IF;

					ELSE

					  -- Copy source data up to the match
					  l_parse_end := l_next_idx - 1;
					  DBMS_LOB.COPY( l_ret_clob, i_src, ( l_parse_end - l_parse_begin + 1 ), DBMS_LOB.GETLENGTH( l_ret_clob ) + 1, l_parse_begin );

					  -- Replace the match string
					  IF LENGTH( i_rep ) > 0 THEN
						DBMS_LOB.APPEND( l_ret_clob, i_rep );
					  END IF;

					  -- Move the beginning of the next parse window past our match string
					  l_parse_begin := l_parse_end + LENGTH( i_match ) + 1;

					END IF;

					-- Move the beginning of the search window past our match string
					l_search_begin := l_next_idx + LENGTH( i_match );

				  END LOOP;

				  -- Special handling for the trailing final characters of the source CLOB
				  IF DBMS_LOB.GETLENGTH( i_src ) > ( l_parse_end  + LENGTH( i_match ) ) THEN

					l_parse_begin := l_parse_end  + LENGTH( i_match ) + 1;
					l_parse_end := DBMS_LOB.GETLENGTH( i_src );
					DBMS_LOB.COPY( l_ret_clob, i_src, ( l_parse_end - l_parse_begin + 1 ), DBMS_LOB.GETLENGTH( l_ret_clob ) + 1, l_parse_begin );

				  END IF;

				  IF DBMS_LOB.GETLENGTH(l_ret_clob) = 0 THEN
					i_result := i_src;
				  ELSE
					i_result := l_ret_clob;
				  END IF;

				END clob_replace;

			BEGIN
				--DBMS_OUTPUT.ENABLE(1000000);
				FOR r IN c
				LOOP
					-- new parser
					p := xmlparser.newParser;

					-- set some characteristics
					xmlparser.setValidationMode(p, FALSE);

					-- parse input
					xmlparser.parseclob(p, r.ds_content_persistence_layout);
					-- get document
					doc := xmlparser.getDocument(p);
					-- get elements DataSource
					nl := xmldom.getElementsByTagName(doc, 'DataSource');
					len := xmldom.getLength(nl);

					if len = 0 then
					 DBMS_OUTPUT.PUT_LINE(' Incluindo a tag DataSource no  flex_registration_config id [' || r.id_flex_registration_config || ']');
					 clob_replace(r.ds_content_persistence_layout,'</LayoutPersistenciaCadastroFlexivel>', '<DataSource>java:/datasource/SAFCommons_DS</DataSource></LayoutPersistenciaCadastroFlexivel>',v_replace);

					 update flex_registration_config
						 set ds_content_persistence_layout = v_replace
					 where id_flex_registration_config = r.id_flex_registration_config;

					 dbms_lob.freetemporary(v_replace);
					 v_replace := null;
					end if;

					dbms_xmldom.freedocument(doc);
					xmlparser.freeparser(p);
					p := null;
					doc := null;

				END LOOP;
			   COMMIT;
			END;
		]]>
		</sql>
		<rollback>
			<sql  dbms="oracle" splitStatements="false">
			<![CDATA[
				DECLARE
					p xmlparser.parser;
					doc xmldom.DOMDocument;
					v_replace CLOB;
					nl xmldom.DOMNodeList;
					len number;

					CURSOR c is
						select id_flex_registration_config, ds_content_persistence_layout from flex_registration_config;

					procedure clob_replace( i_src CLOB, i_match VARCHAR2, i_rep VARCHAR2 , i_result IN OUT CLOB) IS
					  MAX_VARCHAR2 NUMBER DEFAULT 15000;  -- depending on your character set, 32767 may not be your actual number of available characters

					  l_ret_clob CLOB;                    -- temporary CLOB to be returned
					  l_next_idx NUMBER;                  -- used to traverse the source CLOB, captures the next instance of the match string
					  l_search_begin NUMBER DEFAULT 1;    -- used to traverse the source CLOB, indicates the starting point of the next search
					  l_parse_begin NUMBER DEFAULT 1;     -- used to copy date from the source CLOB, indicates the beginning of the copy window
					  l_parse_end NUMBER;                 -- used to copy date from the source CLOB, indicates the beginning of the end window

					BEGIN

					  -- Create a temporary CLOB to be returned
					  DBMS_LOB.CREATETEMPORARY( l_ret_clob, TRUE );

					  LOOP

						l_next_idx := DBMS_LOB.INSTR( i_src, i_match, l_search_begin, 1 );

						-- Exit once we do not find another occurance of the match string
						EXIT WHEN l_next_idx = 0;

						-- Special handling if we find a match at the first character of the source string
						IF l_next_idx = 1 THEN

						  l_parse_begin := LENGTH( i_match ) + 1;

						  IF LENGTH( i_rep ) > 0 THEN
							DBMS_LOB.APPEND( l_ret_clob, i_rep );
						  END IF;

						ELSE

						  -- Copy source data up to the match
						  l_parse_end := l_next_idx - 1;
						  DBMS_LOB.COPY( l_ret_clob, i_src, ( l_parse_end - l_parse_begin + 1 ), DBMS_LOB.GETLENGTH( l_ret_clob ) + 1, l_parse_begin );

						  -- Replace the match string
						  IF LENGTH( i_rep ) > 0 THEN
							DBMS_LOB.APPEND( l_ret_clob, i_rep );
						  END IF;

						  -- Move the beginning of the next parse window past our match string
						  l_parse_begin := l_parse_end + LENGTH( i_match ) + 1;

						END IF;

						-- Move the beginning of the search window past our match string
						l_search_begin := l_next_idx + LENGTH( i_match );

					  END LOOP;

					  -- Special handling for the trailing final characters of the source CLOB
					  IF DBMS_LOB.GETLENGTH( i_src ) > ( l_parse_end  + LENGTH( i_match ) ) THEN

						l_parse_begin := l_parse_end  + LENGTH( i_match ) + 1;
						l_parse_end := DBMS_LOB.GETLENGTH( i_src );
						DBMS_LOB.COPY( l_ret_clob, i_src, ( l_parse_end - l_parse_begin + 1 ), DBMS_LOB.GETLENGTH( l_ret_clob ) + 1, l_parse_begin );

					  END IF;

					  IF DBMS_LOB.GETLENGTH(l_ret_clob) = 0 THEN
						i_result := i_src;
					  ELSE
						i_result := l_ret_clob;
					  END IF;

					END clob_replace;

				BEGIN
					--DBMS_OUTPUT.ENABLE(1000000);
					FOR r IN c
					LOOP
						-- new parser
						p := xmlparser.newParser;

						-- set some characteristics
						xmlparser.setValidationMode(p, FALSE);

						-- parse input
						xmlparser.parseclob(p, r.ds_content_persistence_layout);
						-- get document
						doc := xmlparser.getDocument(p);
						-- get elements DataSource
						nl := xmldom.getElementsByTagName(doc, 'DataSource');
						len := xmldom.getLength(nl);

						if len >= 1 then
						 DBMS_OUTPUT.PUT_LINE(' Removendo a tag DataSource no  flex_registration_config id [' || r.id_flex_registration_config || ']');
						 clob_replace(r.ds_content_persistence_layout,'<DataSource>java:/datasource/SAFCommons_DS</DataSource>', '',v_replace);

						 update flex_registration_config
							 set ds_content_persistence_layout = v_replace
						 where id_flex_registration_config = r.id_flex_registration_config;

						 dbms_lob.freetemporary(v_replace);
						 v_replace := null;
						end if;

						dbms_xmldom.freedocument(doc);
						xmlparser.freeparser(p);
						p := null;
						doc := null;

					END LOOP;
				   COMMIT;
				END;
			]]>
			</sql>
		</rollback>
	</changeSet>
</databaseChangeLog>

Expected/Desired Behavior
When executing the liquibase clear-checksums followed by the liquibase update the md5sum should be generated correctly and in subsequent executions of liquibase update there should be no validation of the md5sum
Liquibase Version
4.25.0
Database Vendor & Version
Oracle <IP_ADDRESS>.0
Liquibase Integration
CLI
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
Debian GNU/Linux 11
Additional Context
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR (Thank you!)

Hi @cristianoprause, thank you for reporting this issue.
I've been able to replicate this bug with Liquibase v4.25.0 and 4.26.0, so I can confirm it's still an issue.
It is not replicable with H2 nor with PostgreSQL, so it's an Oracle-specific problem, though it might happen with other databases as well.
The problem itself is with the automatic update of the checksum to the newest version. The second scenario (clearing the checksums and re-running liquibase update) generates the correct checksum value, but it's taken as incorrect for following runs.
I'll leave this ticket open for the community to fix. Our development team will be available to provide guidance to whoever submits a PR.
In the meantime, a workaround would be to use the validChecksum tag

I've been analysing this bug in our codebase before I found this ticket.
It seems that on the first run in ChangeSet.generateCheckSum() Scope.getCurrentScope().getDatabase() will result in null. This will cause the if-statement to resolve to false and nothing gets appended to the stringToMd5. The computed checksum for an empty string is 9:d41d8cd98f00b204e9800998ecf8427e.
On consecutive runs it will properly resolve the database to a oracle and the stringToMd5 actually contains content resulting in a proper hash. I assume this is the expected behavior.

I'm experiencing a similar issue while upgrading to 4.28.0. The checksum validation error occurs only for changesets that include sql dbms="postgresql" or sqlFile dbms="postgresql".
Steps to Reproduce:

Clear the checksums using clearCheckSums.
Perform an update (successful).
Perform another update without making any changes (fails due to checksum validation error).

Observation:
If I remove the dbms="postgresql" attribute and retry all the steps, everything works perfectly.

@BartCaro @shubham-rohatgi thank you for the valuable insight!
Would any of you be willing to submit a PR?

We have similar issues, up to and including Liquibase 4.29.2.
As others before have noted, these changeset checksum differences seem to occur for statements of such a structure:
   <changeSet id="...">
      <comment>Blablabla</comment>
      <sql dbms="oracle"> whatever_sql_for_oracle </sql>
      <sql dbms="mssql"> whatever_sql_for_mssql </sql>
   </changeSet>

While we suspect the issue stems from the xml-node restrictions (like dbms="oracle") being incorrectly evaluated before computing the checksum, we we unable to find the issue in your codebase and are thus waiting on a fix from the Liquibase team.
What we can add to the discussion however is the following: If you add another restricted xml-node, like the PostgreSQL-one in my abstract example below, the changeset's checksum does indeed change (which means, if it is already deployed, that forces you to use a ` and that is correct).
This leads us to believe the root cause of the checksum computation problem is likely related to the handling of individual xml-nodes instead of the changeset at large.
   <changeSet id="...">
      <comment>Blablabla</comment>
      <sql dbms="oracle"> whatever_sql_for_oracle </sql>
      <sql dbms="mssql"> whatever_sql_for_mssql </sql>
      <sql dbms="postgresql"> whatever_sql_for_psql </sql>
   </changeSet>

@BartCaro you are right, we are missing Database from scope. Adding it to scope fixes the problem : https://github.com/liquibase/liquibase/pull/6590
Could someone test the builds from that PR and confirm that it's fixed for you too?

Clear the checksums using clearCheckSums.
Perform 2+ updates


new route /:slug/donate

e.g. https://opencollective.com/sustainoss/donate

Merging because I have a need for it now for a collective in Brussels. @aseem please review when you can, we can always roll back.


Status

"Status" should show only status of DB, Inlcuding staged coins
"Status staged" should highlight which ones are staged
"Status Diff Date1 Date2" should show the diff

Closed via #45


Add elementContent to JSON path and schema

Element content is missing from the JSON path and schema for link_click_1. This property was added in the 1-0-1 JSON schema.
I've set the length at 255 but happy to change to whatever would be more appropriate.

Related to https://github.com/snowplow/snowplow/issues/1149, I'll close this as it sounds like this will break loads for users using the existing 1-0-0 schema.

Yep, I'm going to write a Discourse post to clarify all this soon...


can't instantiate abstract class EventSource

I got the following error when I executed EventSource.
>>> from ctapipe.io import EventSource
>>> eventsource=EventSource("~/Work/CTA/Realdata/LST-1.1.Run01575.0000.fits.fz")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nozaki/Install/anaconda3/envs/cta-dev/lib/python3.7/site-packages/traitlets/traitlets.py", line 955, in __new__
    inst = new_meth(cls)
TypeError: Can't instantiate abstract class EventSource with abstract methods _generator, is_compatible, subarray

I think it came from that there is no codes in those definition(_generator, is_compatible, subarray) of io/eventsource.py.
But I'm not sure what is expected for those functions...
(I found this error because I got similar error when I executed LSTEventSource on cta-lstchain.)
Please have a look?

Did you try:
from ctapipe.io import event_source
eventsource = event_source("~/Work/CTA/Realdata/LST-1.1.Run01575.0000.fits.fz")

Hello Seiya, thanks for reporting.
I think @sizun is right. You might also want to have a look at this tutorial again:
https://cta-observatory.github.io/ctapipe/tutorials/ctapipe_handson.html#Part-1:-load-and-loop-over-data
@cta-observatory/cta-devs do you think one could remove EventSource from io/__init__.py so that EventSource is not part of the public interface anymore?

You can also instance it using the factory method EventSource.from_url() . The base class is not meant to be instantiated, rather one of the factory methods should be used to return an automatically selected sub-class based on the input.

@cta-observatory/cta-devs do you think one could remove EventSource from io/init.py so that EventSource is not part of the public interface anymore?

No, it is part of the public interface: the EventSource base class allows event sources to be configured in a Tool.  The event_source() helper function is just for interactive use, and shouldn't be used in a Tool (since it will not be properly configured from a config file )

For examples of using the EventSource, look in ctapipe/tools/*.py, and for a really detailed example, see #554

The idea, is that you should never instantiate a subclass (like LSTEventSource) yourself - those should not be public. Rather, you should use one of the factory methods in EventSource itself to get what you want (either: EventSource.from_url( filename ) → autodetect type from input file, .from_config(config): get type from user configuration dictionary).  The former is preferred, since normally you want your tool to support any input based on its file type.

Sorry, but when I executed:
event_source("LST-1.1.Run01531.0000.fits.fz")
I got following error
ValueError: Cannot find compatible EventSource for
	url:LST-1.1.Run01531.0000.fits.fz
in available EventSources:
	['SimTelEventSource']

The same EventSource.from_url( filename )

Do you have ctapipe_io_lst installed? Looks like you do not. conda list or pip freeze

Hi @MaxNoe
Thank you,
I think, I have
conda list gave me:
...
coverage                  4.5.4            py37h516909a_0    conda-forge
cryptography              2.8              py37h72c5cf5_0    conda-forge
ctapipe                   0.6.2            py37ha8d69ae_2    cta-observatory
ctapipe                   0.5.3.post505             <pip>
ctapipe-extra             0.2.14               h1f2461a_0    cta-observatory
ctapipe-io-lst            0.2                       <pip>
cycler                    0.10.0                     py_2    conda-forge
cython                    0.29.14          py37he1b5a44_0    conda-forge

...

That ctapipe version looks rather old, there was a 0.6.1, 0.6.2 and 0.7 release since 0.5.3. Also you seem to have two ctapipe instalations. That's weird.
Try
pip uninstall ctapipe
conda uninstall ctapipe

And then reinstall.

I think you should be using at least ctapipe=0.7, since the older ones were not compatible with LST data.  You can install it via conda install -c cta-observatory -c conda-forge ctapipe=0.7 (but as Max said, uninstall the old ones first, since it's strange to have 2 installed at once). Or better yet, create a new environment (follow the developer guide instructions, but then install ctapipe via conda)

When I tried conda install -c cta-observatory -c conda-forge ctapipe=0.7
I got the following output:
Fetching package metadata ...............
Solving package specifications:

PackageNotFoundError: Packages missing in current channels:

  - ctapipe 0.7* -> astropy ~=3.0
  - ctapipe 0.7* -> bokeh ~=1.0
  - ctapipe 0.7* -> matplotlib ~=3.0
  - ctapipe 0.7* -> pytables ~=3.4
  - ctapipe 0.7* -> scipy ~=1.2

We have searched for the packages in the following channels:

  - https://conda.anaconda.org/cta-observatory/linux-64
  - https://conda.anaconda.org/cta-observatory/noarch
  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.continuum.io/pkgs/main/linux-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/linux-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/linux-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/linux-64
  - https://repo.continuum.io/pkgs/pro/noarch

@SeiyaNozaki are you able to read data with new version of ctapipe?
(Maybe problem is with my env/computer)

The default channel seems to be missing?

I think this is an old installation related issue, so I'll close this.
Feel free to reopen, if you still have issues.


Provide standalone template to get access to pages

Fix for #30

How to test this? When I reproduce the steps from #30 (running just the Content) app, I get the following error (see screenshot), which I think starts from the fact that Content app tries to use a session but never creates one.
I think that caching a single response in the Session does not make sense, because there might be multiple responses (contents) needed.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Content.ContentHandlers.GetCachePage() in C:\www\Content\src\Content\Api\ContentHandlers.cs:line 52
   at Content.ContentHandlers.HandleWebContent(WebContent Item) in C:\www\Content\src\Content\Api\ContentHandlers.cs:line 65
   at Content.ContentHandlers.<Register>b__0_0(Request req, String query) in C:\www\Content\src\Content\Api\ContentHandlers.cs:line 21
   at lambda_method(Closure , Request , IntPtr , IntPtr )
   at Starcounter.Rest.UserHandlerInfo.RunUserDelegate(Request req, IntPtr methodSpaceUriSpaceOnStack, IntPtr parametersInfoOnStack) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter.Rest\UriHandlersManager.cs:line 346
   at Starcounter.Internal.Web.AppRestServer.RunDelegateAndProcessResponse(IntPtr methodSpaceUriSpaceOnStack, IntPtr parametersInfoOnStack, Request req) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter.Apps.JsonPatch\AppRestServer.cs:line 98
   at Starcounter.Internal.AppsBootstrapper.ProcessExternalRequest(Request req) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter.Apps.JsonPatch\AppsBootstrapper.cs:line 765
HResult=-2147467261

More information about this error may be available in the server error log.

How to test this? When I reproduce the steps from #30 (running just the Content) app, I get the following error (see screenshot), which I think starts from the fact that Content app tries to use a session but never creates one.

I see that my description was lacking. The issue was that if you went from the cms page to one of the content pages, it would be blank. It's now possible to go to /content/cms and then access /content/dynamic/index/header. Before, you'd get a blank page no matter what since there was no way to stamp out model.Pages.Html.
There are also the issues of caching and the use of sessions in this app. I think that should be handled separately.

When I go to /content/cms, I only get "Access denied". Can you pls post full reproduction instruction, like the one here?

I don't have access to a machine right now where I can run Starcounter, I'll take care of it when I get back to the office tomorrow.
The steps should be:

Build and run Content and SignIn
Create SignIn user
Sign in
Go to /content/cms
Go to /content/dynamic/index/header

Before, there would be a blank page when going to the page. Now, the page is actually sent and stamped out.

For some strange reason, at the step 4, I am getting an exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at SignIn.CommitHooks.RefreshSignInState() in c:\www\SignIn\src\SignIn\Api\CommitHooks.cs:line 27
   at SignIn.CommitHooks.<Register>b__0_0(Object s, SystemUserSession a) in c:\www\SignIn\src\SignIn\Api\CommitHooks.cs:line 15
   at Starcounter.RuntimeInstalledHookDelegate`1.Invoke(Object triggeringObject) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter\Hooks\RuntimeInstalledHookDelegate.cs:line 37
   at Starcounter.InvokableHook.InvokeAllWithKey(HookKey key, Object instance) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter\Hooks\InvokableHook.cs:line 72
   at Starcounter.Internal.TransactionManager.InvokeHooks() in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter\TransactionManager.cs:line 806
   at Starcounter.Internal.TransactionManager.Commit(UInt64 handle, Int32 free) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter\TransactionManager.cs:line 704
   at Starcounter.Db.TransactAsync(Action action, UInt32 flags, TransactOptions opts) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter\Db.cs:line 283
   at Starcounter.Db.Transact(Action action, UInt32 flags, TransactOptions opts) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter\Db.cs:line 340
   at Simplified.Ring3.SystemUser.SignInSystemUser(String AuthToken) in C:\TeamCity\BuildAgent\work\sc-4704\Simplified\Ring3\User\SystemUser.Static.cs:line 310
   at SignIn.MainHandlers.<Register>b__2_0(Request req) in c:\www\SignIn\src\SignIn\Api\MainHandlers.cs:line 48
   at Starcounter.Handle.RunRequestFilters(Request req) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter.Internal\Handle.cs:line 495
   at Starcounter.Internal.AppsBootstrapper.ProcessExternalRequest(Request req) in C:\TeamCity\BuildAgent\work\sc-4704\Level1\src\Starcounter.Apps.JsonPatch\AppsBootstrapper.cs:line 755
HResult=-2147467261

More information about this error may be available in the server error log.

@un-tone is this the error that you fixed in https://github.com/StarcounterApps/Website/pull/83? Why this error suddenly started to appear in our apps?

For the problem expressed in https://github.com/StarcounterApps/Content/pull/31#issuecomment-294874652, I created a new issue as you've requested: https://github.com/StarcounterApps/Content/issues/34

Anyway, step 4 and 5 should never be related.
I have managed to isolate the problem with the following steps:

Build and run Content and SignIn
Create SignIn user
Go to /signin/signinuser and sign in
Go to /content/dynamic/index/header

Now I can review :)

The real problem here is that ContentCachePage.json does not have a Html property nor a .html view that can present the content of the Pages array.

Adding an HTML page for ContentCachePage works. I'm not quite understanding why Pages is an array. I can't seem to make it contain more than one page anyway. On the other hand, it seems reasonable to be able to cache multiple pages.

I'm not quite understanding why Pages is an array. I can't seem to make it contain more than one page anyway.

Me neither, but that's how it works now.


fastclick on div

Is there any way to make a div responsive just like the normal buttons
I made my custom div element which I want to make it clickable, and the performance is so bad now. Should we import fastclick.js by ourselves or is there any better solution already built-in in Ionic ?
Thanks

did u try on-tap ?

I am on Ionic 2 ? Does (tap) exist ?

You can add the attribute tappable to the div


coprocessor: fix bug caused by use box_try instead of try

Hi,
This PR fixed bug caused by using box_try instead of try in index_scan. box_try will change all error into other error, it will make lock into other error.
@BusyJay @andelf @hicqu PTAL

LGTM

LGTM.


Getting rid of the escaping in the model name

Change of double quotes to single quotes in the method setModel() in the generator. Since the model name is specified with a namespace (which contain a backslash), this is recognized by many editors as escaping (for example PhpStorm). Using single quotes allows you to get rid of this.

Hi @votintsev ,
Thanks for the contribution and sorry for the delay. Sounds like a great change, thank you, just merged it.
Cheers!


Permanent delete of branch

How do I permanently delete a branch so that it can no longer be restored?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

 I have same question.

@steved0x This issue has a matching issue assigned to the restore a branch topic. Is there a way to permanently delete the branch so that it doesnt appear in the restore workflow either?

@clisc I believe the answer is no based on this reply to @AlexChongMicrosoft question. https://github.com/MicrosoftDocs/vsts-docs/issues/4295


[Bug] Sanic-ext breaks @app.route(unquote=True)

Describe the bug
Sanic v21.3 adds the unquote arg in @app.route to url-decode parameters in routes. But when sanic-ext is loaded, parameters will not be decoded even unquote is set.
Screenshots
Not related to swagger.
To Reproduce
from sanic import Sanic
from sanic.response import text

app = Sanic("test")
#app.config.AUTO_EXTEND = False

@app.route("/<param:str>", methods=["GET"], unquote=True)
async def handler2(request, param):
    return text("OK2 " + param)

Then visit http://<IP_ADDRESS>:8000/%E5%95%8A and find that it returns OK2 %E5%95%8A.
Expected behavior
The page should return OK2 啊.
Environment (please complete the following information):

OS: Windows 10
Browser: not related
Version sanic==22.9.0, sanic-ext==22.9.0

Additional context
After uncommenting app.config.AUTO_EXTEND = False in the script above, sanic works as expected. So this issue is caused by sanic-ext.

Thanks for the issue. I am going to investigate it.

I found that when the app is extended, for some reason, unquote(basket['__matches__'][0]) isn't injected into the find_route method of the router.
@ahopkins Can you take a look at this issue later? Thanks!

Note: This issue is also reproducible on 21.12.3 which is LTS.

I see what the issue is. I will get a patch out for 22.12 and 21.12.


paste not working all of a sudden

just like the subject says, i cant paste anymore. i'll try changing the keys in the settings file and post back later.

fixed it myself. forgot i made tera run as admin for no reason really.


[bn] Reduce GracePeriod to 300 sec for deploying Cassandra with a Sta…

Closes https://github.com/kubernetes/website/issues/47039
This change is already accepted and issue is resolved, raising the PR for bn
Issue:
The current command waits for the termination grace period of 1800 seconds (30 minutes), causing unnecessary delays for users.
Solution:
Reduced the terminationGracePeriodSeconds value to a shorter duration (e.g., 300 or 500 seconds) to avoid prolonged wait times.
Changes:
Updated the termination grace period from 1800 seconds to 500 seconds in the relevant command.
Impact:
This change will significantly reduce wait times during the execution of the command, improving user experience.

/assign

/approve

/approve


Add miscellaneous notes file

... so it's not so hard to pick things back up after a couple months

:shipit:


[HxPopover] Dismiss on next click is not working

We do not have the required structure:
"Dismissing on next click requires specific HTML for proper cross-browser and cross-platform behavior. You can only use  elements, not s, and you must include a tabindex."

Hmm, its working here: https://havit.blazor.eu/components/HxPopover


Supervisor-script prevents watchdog restart regardless of return value

I tried to implement a script for a supervisor to do some logging about a process that does not met its deadline by sending a SIGUSR2 (logging is done in the programs signal handler).
Unfortunately i disabled the watchdog this way: After calling the script, the Watchdogd did not restart the system.
Due to man page (https://man.troglobit.com/man5/watchdogd.conf.5.html) the watchdogd should do that, as long as the supervisor-script returns non 0. Due to the log, the script does return 1, but the system is not restarted.
23-11-06 06:53:24.641  daemon.emerg watchdogd[932]: Process foo-server[966] failed to meet its deadline, rebooting ...
23-11-06 06:53:24.649  daemon.notice watchdogd[932]: Started script /etc/watchdogd-supervisor.sh, PID 6080
23-11-06 06:53:24.775  user.notice root: script executed!
23-11-06 06:53:24.785  daemon.warn watchdogd[932]: Script (PID 6080) returned error: 1

Any hints?
Here is my script:
#!/bin/sh

if [ "$4" == "foo-server" ]; then
    if [ $(pidof foo-server) ]; then
        kill -n 12 $(pidof foo-server)
    fi
fi
logger "script executed!"
# always return non zero, otherwise watchdogd will not restart system!
exit 1

and my watchdogd.conf
supervisor {
    enabled  = true
    script = "/etc/watchdogd-supervisor.sh"
}

Iam working with master head (33e32f89d4)
PS: the code looks suspicious to me. supervisor_exec() will always return 0. So any supervising will always be released here, if any executable script is given...

Yeah you're right, that's just plain wrong.  The supervisor_exec() function forks the script to background, and like you say, always returns OK(0), which in turn stops the process watcher.

Fixed in 6044fac and refactored in 5490655.  Verified manually in Infix :
    Infix — a Network Operating System v23.12.0 (console)
    infix-00-00-00 login: admin
    Password:
    admin@infix-00-00-00:/> shell
    root@infix-00-00-00:~$ tail -F /log/syslog &
    root@infix-00-00-00:~$ watchdogctl test failed-kick
    watchdogctl: Failed kicking
    root@infix-00-00-00:~$ Dec 15 20:01:05 infix-00-00-00 watchdogd[2161]: watchdogctl[2484] tried to kick with invalid credentials: Invalid
    Dec 15 20:01:05 infix-00-00-00 watchdogd[2161]: Started script /usr/bin/supervisor-script.sh, PID 2485
    Dec 15 20:01:05 infix-00-00-00 root[2485]: process 2484 failed a kick, cause 3, restarting service.
    Dec 15 20:01:05 infix-00-00-00 root[2485]: system recovered, exit 0

    root@infix-00-00-00:~$ watchdogctl test no-kick
    Dec 15 20:01:22 infix-00-00-00 watchdogd[2161]: Started script /usr/bin/supervisor-script.sh, PID 2491
    Dec 15 20:01:22 infix-00-00-00 root[2491]: process 2490 failed to meet its deadline, cause 5
    Dec 15 20:01:22 infix-00-00-00 root[2491]: this cause is unrecoverable, exit 1!
    Dec 15 20:01:22 infix-00-00-00 watchdogd[2161]: Script (PID 2491) returned error: 1
    [ OK ] Saving system time (UTC) to RTC
    [ OK ] Saving random seed
    [ OK ] Stopping Configuration daemon
    [ OK ] Stopping NETCONF server
    [ OK ] Stopping OpenSSH daemon
    [ OK ] Stopping Status daemon
    [ OK ] Advising watchdog, system going down
    [ OK ] Unmounting filesystems ...
    [ OK ] Calling hook/svc/down scripts ...
    [ OK ] Rebooting ...
    [ OK ] watchdog: watchdog0: watchdog did not stop!

will be part of the v3.6 release


[WIP] Refuse to start Velum if a command fails during init

If a command in the Velum container init script fails, we should refuse
to start. Right now, we'll silently ignore failures such as seeding
the database.
Additionally, Use production DB seeds in development - if a seed is useful in
production, we should have the same seed in development, while also allowing for
development specific seeds if necessary. This reduces the likelihood of a
bad change merging and only affecting non-devenv/CI environments.
--
WIP as 1) untested and 2) this will fail CI as the production seeds are broken - see https://github.com/kubic-project/velum/pull/453

And... Despite bundle exec rake db:seed clearly failing in my dev env, it exits with a 0 code.

This has conflicts now @kiall, I think we want to keep the main part of this patch, no?

The ruby changes are all incorporated into master now, and there would be little benefit to adding nounset or pipefail to the current script.  There are four variables, all of which are not going to cause unnoticed bad results if they get typo'd, and there's only one pipeline which is inside of a set +e anyway.
Closing this PR as a result.


How to switch to SSL in an open TCP connection

Answers checklist.

[X] I have read the documentation ESP-AT Programming Guide and the issue is not addressed there.
[X] I have used the latest released firmware or have updated my ESP-AT branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
Hi everybody,
in several situations it is necessary to switch from un unencrypted connection “TCP” to an encrypted connection “SSL”. Two examples for this are the communication with a SMTP server (command STARTTLS) or with a FTP server (-> FTPS command AUTH TLS).
I already tested direct SSL connections e.g. with “implicit” SSL connections successfully. This is possible if the server provides a dedicated port to directly connect via SSL to (e.g. implicit SSL connection to a SMTP server, port 465). This works really good e.g for sending encrypted emails.
In several situations the server does not offer such a dedication port for SSL for implicit SSL, but offers “explicit” SSL (SMTP or FTP(S)). in several documents “implicit” SSL is called the “old” way. In this situation of “explicit SSL” the connection is started without encryption and during the communication with the server a special command e.g. “STARTTLS (SMTP)” or “AUTH TLS (FTPS)” is used to switch to an encrypted connection.
Now to the ESP-AT. “Implicit” SSL works good so far, here the encrypted connection is established from the very beginning. But how can I switch to an encrypted connection while a normal „TCP“ connection is „running“. I must not disconnect from the server first to start a “SSL” connection because I have to initiate the encrypted connection via a command.
Your answers are highly appreciated.
Thomas

@FalconMuc have you tried the multiple connections by AT+CIPMUX=1. You can establish multiple connections by AT+CIPSTART command under multiple connection mode, refer to Examples for more details.

Hi ustccw,
thank you for your thoughts, they are highly appreciated!
I haven't tried that yet, but I’m a bit skeptical if this could work. The SMTP server receives e.g. the command STARTTLS and waits for the negotiation of the encryption key on the same socket. After the successful negotiation the encrypted communication continues on the same socket.
So I’m afraid trying to start a second “encrypted” SSL connection after sending the STARTSSL will not work, because the server will open a brand new socket that always starts unencrypted. The ESP-AT will probably be unable to start the SSL connection.
Thank you again for your thoughts
Thomas

Hi ustccw,
thank you again for your creative help.
The situation is, that I have already implemented a complete SMTP client as well as a complete FTP client on the basis of the ESP-AT command library. Both clients work well and reliable with unencrypted connections. If there would be an AT command or another solution to do a transition from a "TCP" (unencrypted) connection to a "SSL" (encrypted) connection, it would basically be just one more command to implement the complete encrypted functionality.
So implementing a new AT command and using the smtp client solution you suggested would only kind of solve half of the problem (the FTP client would still have not SSL/TLS encryption). On the other hand the smtp client you suggested implements a second complete SSL/TLS functionality with the mbetTLS library it uses. The ESP-AT library already includes such a SSL/TLS functionality for the "SSL" connections, right?
I find your idea of implementing a new AT command interesting. But it would only be necessary to be able to switch from "TCP" to "SSL" during a running "TCP" connection. For this I have no information how the ESP-AT handles such transitions of unencrypted to encrypted sockets and I'm not sure if such a AT command incooperating with the existing AT commands is possible.
Thanks again for your help.
Thomas

Hello @FalconMuc ,
From a code perspective, it is possible to switch from a TCP connection to an SSL connection, theoretically making it compatible with other AT commands.
You can roughly obtain the tcp socket fd by calling the hidden API: int32_t esp_at_get_socket_by_link_id(uint8_t id);, and then further establish the TLS connection by calling mbedtls-related APIs (similar to our esp-tls implement).
However, this is a highly challenging task. You need to be very familiar with the mbedtls process, resource management (especially on resources free), and the protocol switching process of SMTP/FTP. Therefore, it is generally not recommended to use it directly in AT commands.
Alternatively, you can consider running the SMTP/FTP protocol stack in MCU side.

Hi @ustccw,
thank you again for your help.
We have already implemented the complete SMTP stack and FTP stack on the host MCU. The SMTP stack and FTP stack is running on the host MCU. It is working without problems.
The host MCU is communicating with the ESP-C2 (ESP8684) using the ESP-AT and it is working great!
But it only works WITHOUT encryption (SSL/TLS).  For encrypted SMTP and/or FTP it is necessary to switch to SSL/TLS during a running connection.
To develop a complete new AT command with e.g. your "smtp_client example" to send an encrypted email doesn’t really make sense, because we already implemented everything for the SMTP/FTP stack on the host MCU.
Some important additional information: Some SMTP servers offer direct (implicit) SSL/TLS connection via port 465. So when I connect to port 465 via a "AT+CIPSTART="SSL",..." I can already send SSL/TLS encrypted emails. But this approach is NOT RECOMMENDED. It is recommended to use the SMTP command "STARTTLS" to start the encryption. With FTP it is the same.
So the ESP-AT already includes everything to setup a working SSL/TLS connection to a SMTP server. It is only a question of "WHEN" the SSL/TLS negotiation starts. With the "AT+CIPSTART="SSL",..." command the SSL/TLS negotiation starts immediately after the standard "TCP" connection is established. The only thing necessary would be to NO DO the negotiation immediately but at a later point in time (e.g. after sending the "STARTTLS" command for the SMTP server or after the "AUTH TLS" command for the FTP server).
For our project no certificate is necessary but only the encryption.
Thank you for your help.
Thomas

OK, you can try that highly challenging task i mentioned above. or run mbedTLS  protocol stack on MCU.


Update README with new logo banner

Reason/Context
This is to replace the old AsyncAPI logo in this repo's README with the banner attached below that represents the new branding.
Here are a few guidelines for this change as well:

Make sure you are using Markdown syntax only
Be sure to remove the old logo as well as the old title of the repo as this image will replace both elements
Make sure you link this image to the website: https://www.asyncapi.com
If there is any description text below the repo title, let's make it left-aligned if it isn't already, so as to match the left-alignment of the content in the new banner image

Download the image file:
github-repobanner-serverapi.png.zip

Banner preview
Please note that this is only a preview of the image, the contributor should download and use the above zip file

/gfi design

@mcturco i would like to work on this

Awesome @ritik307, thank you! Assigning you


Implement flag permissions

This will allow developers to create flags which require a permission to use.

Sorry for taking so long to look at this, could you throw @since into the JavaDoc of the new functions and possibly add the change to https://github.com/Incendo/cloud/blob/1.6.0-dev/CHANGELOG.md ? 🥺

Sorry for taking so long to look at this, could you throw @since into the JavaDoc of the new functions and possibly add the change to https://github.com/Incendo/cloud/blob/1.6.0-dev/CHANGELOG.md ? 🥺