Drachtio-server's log shows an "error enabling tcp keepalive"

Hi Dave,
i'm trying to develop an IVR application in Node.js with Drachtio.
I've a problem with the drachtio-server (either master and dev branches) ;
when i run this testapp.js on a Ubuntu 14.04 server :
var app = require('drachtio')() ;
var Mrf = require('../') ;
var mrf = new Mrf(app) ;
var Srf = require('drachtio-srf') ;
var srf = new Srf(app) ;
var ms  ;

srf.connect({
  host: '<IP_ADDRESS>',
  port: 9022,
  secret: 'cymru',
}, function(hostport) {
  console.log('connected to server listening for SIP messages on ' + hostport) ;
}) ;

mrf.connect({
  address: '<IP_ADDRESS>',
  port: 8021,
  secret: 'ClueCon',
  listenPort: 8085
}, function(mediaServer) {
  ms = mediaServer;
  console.log('successfully connected to media server') ;
});

srf.invite( function(req, res) {

  // connect caller to an endpoint on the media server
  ms.connectCaller(req, res, function(err, ep, dialog) {
    if( err ) throw err ;

    // set up dialog handlers
    dialog.on('destroy', onCallerHangup.bind(dialog, ep)) ;

    // play some prompts
    ep.play(['ivr/8000/ivr-please_reenter_your_pin.wav',
      'ivr/8000/ivr-please_state_your_name_and_reason_for_calling.wav',
      'ivr/8000/ivr-you_lose.wav'], function(err, results){
        console.log('results: ', results) ;
      }) ;
  }) ;
}) ;

function onCallerHangup( ep ) {
  // release endpoint
  ep.destroy() ;
}

The Drachtio-server's log shows an "error enabling tcp keepalive" :
0000003b|2017-May-01 21:59:35.937218| Received connection from client at <IP_ADDRESS>:56774
0000003c|2017-May-01 21:59:35.937374| Client::Client - error enabling tcp keepalive
0000003d|2017-May-01 21:59:35.942937| Client::processAuthentication - validating secret cymru
0000003e|2017-May-01 21:59:35.943664| Client::processAuthentication - secret validated successfully: cymru

The testapp.js log shows an undefined port and the drachtio-srf doesn't seems to work correctly :
connected to server listening for SIP messages on undefined
successfully connected to media server

Can you help me ?
Do you think this problem is related with the c/c++ library ?
Thanks,
Massimo

Hi there!  You can ignore the "error enabling tcp keepalive" -- that's a spurious log message I need to remove.
I will check that script and get back to you shortly -- I expect it may be an error of some kind in my example script, not anything on your side

My bad on the example...the callback to Srf#connect has signature (err, hostport), so change this line:
srf.connect({
  host: '<IP_ADDRESS>',
  port: 9022,
  secret: 'cymru',
}, function(hostport) {
  console.log('connected to server listening for SIP messages on ' + hostport) ;
}) ;

to this:
srf.connect({
  host: '<IP_ADDRESS>',
  port: 9022,
  secret: 'cymru',
}, function(err, hostport) {
  console.log('connected to server listening for SIP messages on ' + hostport) ;
}) ;

also, please use the develop branch of drachtio-server.
Let me know if you still have issues after this

No, i'm sorry, nothing changed.
I still have issues after managing the full signature on the develop branch.
The connectCallback doesn't return the SIP address[:port] drachtio server is listening on for incoming SIP messages :
connected to server listening for SIP messages on undefined
I'm a little confused because following the doc and the code :
http://davehorton.github.io/drachtio-srf/api/Srf.html#~connectCallback
I don't find the callback implementation :
https://github.com/davehorton/drachtio-srf/blob/master/lib/srf.js#L651
http://davehorton.github.io/drachtio-srf/api/srf.js.html#line611
Maybe, if I'm wrong, the problem could be a misconfiguration of my drachtio.conf.xml ?
In the contacts section, i just left the udp,tcp sip tansport.
drachtio.conf.xml
<drachtio>
	<admin port="9022" secret="cymru">localhost</admin>
    <sip>
        <contacts>

            <contact>sip:*;transport=udp,tcp</contact>

        </contacts>
        <spammers action="reject" tcp-action="discard">
            <header name="User-Agent">
                <value>sip-cli</value>
                <value>sipcli</value>
                <value>friendly-scanner</value>
            </header>
            <header name="To">
                <value>sipvicious</value>
            </header>
        </spammers>
    </sip>

    <redis>
        <address><IP_ADDRESS></address>
    </redis>

    <cdrs>true</cdrs>

    <logging>
        <file>
            <name>/tmp/drachtioLogs//drachtio_%Y%m%d_%H%M%S-%N.log</name>
            <archive>/tmp/drachtioLogs/archive</archive>
            <maxSize>5120</maxSize>
            <minSize>10240</minSize>
            <auto-flush>true</auto-flush>
        </file>

        <sofia-loglevel>9</sofia-loglevel>
        <loglevel>info</loglevel>
    </logging>

</drachtio>

Hmm, can you provide the versions of drachtio, drachtio-srf, and drachtio-fsmrf from your app's package.json?

drachtio-server  0.5.0-6-g58d7e64

Node             v6.10.0
drachtio         1.0.16
drachtio-srf     3.0.11
drachtio-fsmrf   0.102.3

I just saw that the latest available version of drachtio is the 1.0.17.
I'm updating this module to see if this is the source of my problem ...

No, I see the problem is that I changed the Srf#connect to not return the hostport information, instead you need to have a connect handler like this:
srf.connect({
  host: '<IP_ADDRESS>',
  port: 9022,
  secret: 'cymru',
})
.on('connect', (err, hostport) => { console.log(`connected to drachtio listening on ${hostport}`) ;})
.on('error', (err) => { console.error(`Error connecting to drachtio at ${err || err.message}`) ; }) ;

I've fully updated and tested this example please have a look at it here:
https://github.com/davehorton/drachtio-example-ivr

Let me know if this works for you.  Meanwhile I will update the docs

Yes, it works!
connected to media server
connected to drachtio listening on tcp/<IP_ADDRESS>:5060,tcp/<IP_ADDRESS>:5060,tcp/[::1]:5060,udp/<IP_ADDRESS>:5060,udp/<IP_ADDRESS>:5060,udp/[::1]:5060

Thank you very much for your help.
Your software is becoming a masterpiece : )


Container downloading issue from Kitematic

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

Get https://registry-1.docker.io/v2/: proxyconnect tcp: dial tcp: lookup gateway.docker.internal on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:42763-><IP_ADDRESS>:53: read: connection refused

Did this problem get resolved? I get the same error for the past 7 days, didn't manage to find a solution for this yet.
Dont know if the origin of the problem is on my network or that of Docker or Kitematic.
Here is a snapshot of the problem:


Upgrade to angular-ui-tree 2.9.0

With >=2.10.0 there is an error "context is null" if start dragging.
see #1717

Travis failed.

Fixed travis error (go back to 2.5.0 in bower to avoid angular version conflics. Ready for review.
Our aim in next issue: use angular-ui-tree>=2.10.0 which official supports angular1.4.x...

Ok.


CORS issues when cordova-plugin-ionic-webview 2.x

cordova-plugin-ionic-webview spec=^2.x
When I try to use mys api  (wordpress) is always rejected generates a blocking error cors.
if only change to cordova-plugin-ionic-webview spec=^1.2.1
It works correctly.

A specific http error would also be useful


[New API] Create String and StringCursor objects (with read-only methods)

What
Start implementation of new API with better ergonomics for library users.
Methods created:

(*CausalTree).StringValue(AtomID) *String: creates a String from a given atom ID, that must be an InsertStr atom;
(*String).IsDeleted() bool: returns whether the string is deleted;
(*String).Snapshot() string: returns the contents of the string, or "" if it's deleted;
(*String).Len() string: returns the length of the string in codepoints, or 0 if it's deleted;
(*String).Cursor() *StringCursor: returns a cursor pointing to the string's head;
(*StringCursor).Index(i int) error: moves the cursor to the i-th char of the string;
(*StringCursor) Value() (rune, error): returns the char pointed by the cursor.

Why
The current cursor field in the CausalTree is not sufficient to represent deeply-nested structures, only individual characters in a string. This API will provide not only cursors to iterate, query and update each container stored in the tree, as well as the objects themselves. We believe this is a more ergonomic and higher-level view for library users, referencing semantic objects instead of raw atoms to manipulate.
Notes
This implemetation proposes a new atom walker with walkCausalBlock2, that expects a function with the signature
func(pos int, atom Atom, isDeleted bool) bool

The function receives the atom position in the weave, the atom itself, and whether it's deleted. It skips over any Delete atoms, which are just used to fill the isDeleted param. The function must return whether iteration should continue or break. Either way, it stops when finding the end of the causal block of the first atom (which is included in the iteration).
Tests
Tests were limited to unit tests that achieve partial coverage for the implementation. They are still missing for cases where there should be two or more strings in the same causal tree, that is, where'd actually reach the end of the causal block before the end of the weave.

https://output.circle-artifacts.com/output/job/e7ede96b-44c4-4e3f-87cc-26728b6dc535/artifacts/0/tmp/test-artifacts/coverage.html#file1
I believe the most bang for the buck is found in writing new property tests, which I'll do once we implement mutable methods ((*StringCursor).Insert, (*StringCursor).Delete, (*String).Delete).

This method in the comment should return an int: (*String).Len() string: returns the length of the string in codepoints, or 0 if it's deleted;
But it is correct in the code.


A few problems in StreamIterator documentation/specification

I've noticed a few problems in the StreamIterator documentation:

"An [Iterable] like interface for the values of a [Stream]." Clearly, StreamIterator is similar to Iterator, not Iterable.

The documentation of "current" implies that calling current is undefined before calling moveNext and after moveNext has returned false. This doesn't match its implementation, and the expectation you get by comparing it to Iterator.current which clearly documents that current will return null in those conditions.

@lrhn could you provide a quick reply as to whether "current" is truly undefined before calling moveNext and after it has returned false?

I think it's safe to say that the value of current is null until moveNext is first called, and it's null after moveNext has returned false.
The undefined case is the time between calling moveNext and the returned future completing. At that time the value may be either the new value or null, and it's not clear when the change takes place.
The current value is set to null when moveNext is called, so it should never be the old value.

I have updated comments on the StreamIterable class


Crash when wearing armor

My game crashes everytime I put on a piece of armour from mods like Mystical Agriculture: Refsbricated or advanced netherite.
Here is the Crash:
crash-2023-09-09_02.13.47-client.txt

having the same issue with tech reborn's sapphire armor. The crash log references chime even though I do not have it installed so I am assuming that it is an imbedded dependency because adding chime does not change anything

having the same issue with tech reborn's sapphire armor. The crash log references chime even though I do not have it installed so I am assuming that it is an imbedded dependency in another mod because adding chime does not change anything

The mod I am using that adds chime by default is Rat's Mischief because it uses requiem and requiem requieres chime.
I hope this gets fixed one day, I went into the creator discord for support but no one answered the issue

Same here. Using Requeim + getting crashed by Tech Reborn and Mutant Monsters armor with same lines of error:
net.minecraft.class_151: Non [a-z0-9_.-] character in namespace of location: textures/models/armor/techreborn:quantum_layer_1.png
net.minecraft.class_151: Non [a-z0-9_.-] character in namespace of location: textures/models/armor/mutantmonsters:mutant_skeleton_layer_1.png

namespace error.txt
namespace error2.txt
Here's my crashlogs. Hope they will help.

Hi - Someone just reported this same crash with Biome Makeover.
It's an issue with here.
With FAPI, If armour is registered as modid:armor_name the location of the texture changes, leading to an invalid location if done the vanilla way.


[Issue 9451] Fix flaky test SimpleProducerConsumerTest.testConcurrentConsumerReceiveWhileReconnect

Fixes #9451
Motivation
Fix flaky test SimpleProducerConsumerTest.testConcurrentConsumerReceiveWhileReconnect
Modifications
Use Awaitility to wait for assertions to pass.

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks


Entity categories and relationships

It would be helpful if there was a summary showing the various categories of entities and if there was an actual entity relationship diagram so that we get a visual overview of the numerous entities that are available

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

ID: d2c43201-4b30-80e5-26d0-1c89327eaffc
Version Independent ID: 3b59f9b7-d9e1-7759-965a-1d0efa5fb4e2
Content: About Entity Reference (Common Data Service for Apps) - PowerApps
Content Source: powerapps-docs/developer/common-data-service/reference/about-entity-reference.md
Service: powerapps
GitHub Login: @JimDaly
Microsoft Alias: jdaly

Thank you for your request to enhance the documentation. This request has been recorded and it will be considered for a future update to the documentation.
Closing issue.


Some tweets have extremely shortened Text

Some tweets, especially retweets, have extremely shortened texts.
Is it possible to get the full text of the tweet, at least in the retweededStatus field?
Examples are:
https://twitter.com/leventkemaI/status/1822012617487192092

https://twitter.com/holmescnn/status/1821992957039517966

It does seem that retweetedStatus actually has the full text in it. I'll close the issue for now.


Adding description in the sign up feature of "Your Booklist For Shopping"

For a better understanding to the user, "Don't have an account yet?" can be added near the Sign Up feature of "Your Booklist For Shopping", as it isn't already mentioned.

Kindly assign me this issue under GSSoC'24.

Kindly assign me this issue under GSSoC'24.

assigned!
work on it 💪!


Add missing permission checks to Manager Thrift API

My comment was more of a prompt that we should check and add tests if needed - that can be done outside of this individual PR.


How to rollback onError

I'm using syncedSupabase and I would live to rollback the changes when transaction fails (onError). Is there an automatic way of doing it?

Oh that's a great idea! I'm working on revamping onError right now so I'll look at adding that.

beta.14 makes some big changes to onError, one of which is a revert() function. But it's still in progress - it currently reverts all of the changes in the batch whereas it should revert only the ones that errored. I'll aim to fix that in beta.15. But for now if you want to play with it please let me know if it works well?

Ok done! The revert function in beta.16 should be correct, rolling back only the change that caused the error. Please let me know if it isn't working right.

@jmeistrich just tested it, everything works as expected! Thanks for fast response!
What do you think about returning .errors along with changes on the $ when there's a revert or throw new Error() happening?


Update to FF 109 on Jan 17th

Firefox 109 has increased the value of wasiRecursionDepthLimit (https://bugzilla.mozilla.org/show_bug.cgi?id=1803438) and the new value would mean we can use debug builds on the regex application. The release for FF 109 is planned for jan 17th — https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/109
When that release happens, let's update js-compute-runtime to FF 109 and enable the debug build for all sdktests in CI.

Done in https://github.com/fastly/js-compute-runtime/pull/420


Question related to the project structure

Hi Jonas,
Good morning.
First, let me thank you for sharing this project example.
I started having a look at the project an I need a couple of clarifications.

If the frontend is served by Vue.js on port 8080, what is the purpose of copying all the static resources in the backend? Asserts will be served by NodeJs and SpringBoot should be used for REST calls only. What am I missing?
However, supposing this approach is ok, it would not make sense to dockerize backend and frontend separately, since te backend will not be decoupled from the frontend. Am I right?

Thanks a lot for your time.
Best regards
Roberto

Hi @robertotru, glad to hear that the project helps you!
The frontend is served by the Spring Boot backend, therefore all the frontend assets are copied to the Spring Boot backend and all together is served on port 8088 (or whatever port you might configure at the application.properties ). Thus you can easily Dockerize the app.
Only for development purposes, the frontend could be launched seperately via webpack with npm run dev, which will serve the Vue-Frontend in a developer-friendly way (hot reloading of the whole toolchain with webpack devserver) on port 8080.
Hope this clarifies things for you. I close this ticket now.


Upgrade UniCase

closes #143

[x] Introduce a new trait FmtConst for printing const exprs of types which delegates to fmt::Debug where applicable instead of always relying on it
[x] Upgrade unicase to ^2.3

[x] Merge seanmonstar/unicase#30

@sfackler this is ready for review

I guess this requires a minimum Rust version bump.

@sfackler, ping 🙂

The generated code doesn't seem to compile:
error[E0597]: borrowed value does not live long enough
  --> /root/project/target/debug/build/phf_codegen_test-0a9712ee5b5deb88/out/codegen.rs:71:36
   |
71 |       entries: ::phf::Slice::Static(&[
   |  ____________________________________^
72 | |         (UniCase::ascii("DEF"), "b"),
73 | |         (UniCase::ascii("abc"), "a"),
74 | |     ]),
   | |_____^ temporary value does not live long enough
75 |   };
   |   - temporary value only lives until here
   |
   = note: borrowed value must be valid for the static lifetime...

error: aborting due to previous error

@sfackler for some reason the initial implementation of const fn didn't allow lifting into static references. I'm not sure which Rust release this was fixed in but the build passes on nightly. Do you care about requiring that new of a release?

Since this'll be a breaking change anyway, I'm happy bumping the minimum Rust version to whatever it needs to be.

@sfackler I think this is a bug in rvalue promotion because I can't get this to work on any stable release but it's fine on nightly https://github.com/rust-lang/rust/issues/54846#issuecomment-497064477

@sfackler fixing this may actually involve switching to 2018 edition, but I think that's only actually required for the project using the generated code.

Oh, nice. Should be fine to migrate all of the phf crates to 2018, which should get this test working as well.

@sfackler build is passing now

Thanks!

Neato, that was my blocker for mime_guess

@sfackler anything blocking a 0.8 release?


add DB2 drivers

Fixes #3749

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi,
We investigated this in the past and didn't choose to bring in any changes. If there is still an issue you would like us to consider we would love to hear from you.


NullPointerException After Message Sends

Jenkins Version: 2.155
Plugin Version: 2.6 (I see 2.7's out, but there doesn't appear to be any changes that are related to this error)
Let me know what other information I can provide.
java.lang.NullPointerException
	at jenkins.plugins.slack.ActiveNotifier.completed(ActiveNotifier.java:146)
	at jenkins.plugins.slack.SlackNotifier.perform(SlackNotifier.java:360)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
	at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
	at hudson.model.Run.execute(Run.java:1857)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)

This exception occurred on the first execution of a job. Haven't tried a new run just yet, but will update it fails on a repeat. As I mentioned in the issue title, the message successfully sent, too.

What's in the config.xml for that job? specifically the SlackNotifier descriptor section?
Could you send a screenshot of your config
Also try make a change to anything in the slack config on the job and then save it too

@timja
job-config xml original:
        <jenkins.plugins.slack.SlackNotifier<EMAIL_ADDRESS>            <baseUrl/>
            <botUser>false</botUser>
            <room>#developers</room>
            <startNotification>false</startNotification>
            <notifySuccess>false</notifySuccess>
            <notifyAborted>false</notifyAborted>
            <notifyNotBuilt>true</notifyNotBuilt>
            <notifyUnstable>true</notifyUnstable>
            <notifyRegression>true</notifyRegression>
            <notifyFailure>true</notifyFailure>
            <notifyBackToNormal>true</notifyBackToNormal>
            <notifyRepeatedFailure>true</notifyRepeatedFailure>
            <includeTestSummary>true</includeTestSummary>
            <includeFailedTests>false</includeFailedTests>
            <includeCustomMessage>false</includeCustomMessage>
        </jenkins.plugins.slack.SlackNotifier>

job-config-xml after a re-save:
    <jenkins.plugins.slack.SlackNotifier<EMAIL_ADDRESS>      <baseUrl></baseUrl>
      <teamDomain></teamDomain>
      <tokenCredentialId></tokenCredentialId>
      <botUser>false</botUser>
      <room>#developers</room>
      <startNotification>false</startNotification>
      <notifySuccess>false</notifySuccess>
      <notifyAborted>false</notifyAborted>
      <notifyNotBuilt>true</notifyNotBuilt>
      <notifyUnstable>true</notifyUnstable>
      <notifyRegression>true</notifyRegression>
      <notifyFailure>true</notifyFailure>
      <notifyBackToNormal>true</notifyBackToNormal>
      <notifyRepeatedFailure>true</notifyRepeatedFailure>
      <includeTestSummary>true</includeTestSummary>
      <includeFailedTests>false</includeFailedTests>
      <commitInfoChoice>NONE</commitInfoChoice>
      <includeCustomMessage>false</includeCustomMessage>
    </jenkins.plugins.slack.SlackNotifier>

job-config Jenkins Job DSL:
        slackNotifier {
            baseUrl('')
            notifyFailure(true)
            notifyAborted(false)
            notifyNotBuilt(true)
            notifySuccess(false)
            notifyUnstable(true)
            notifyRegression(true)
            notifyBackToNormal(true)
            notifyRepeatedFailure(true)
            includeTestSummary(true)
            room('#developers')
        }

After re-saving the settings, there was no NPE. Looking at the line of code that the exception's call stack refers to, it looks like the issue is commitInfoChoice needs to be defined. Right now the Jenkins Job DSL plugin doesn't treat it as required, and it looks like it doesn't get the default of NONE applied via the DSL. I'll go ahead and update my DSL files to include commitInfoChoice('NONE') for now. Also, while I mention the DSL, it appears that some change after version 2.3 has marked baseUrl as a required property. I'm not familiar enough with how the Jenkins Job DSL plugin interacts with other plugins to know if that's more of an issue on their side of the fence or not, though.

I guess there's at least 3 ways to fix this:

Put a null check on that line
Default the commitInfoChoice, nothing else has a default though atm
Update job dsl
Add to your config

@timja For the time being I'm gonna go ahead and update my Job DSL files to include commitInfoChoice. If marking that setting as required is easy, that might be the best approach? In-app, it's a drop down list with no "empty" option, so it's impossible to not have it set, and (assuming that required flag would translate to Job DSL's parsing) would ensure it's set for folks that use the Job DSL. In either case, I've got the issue solved enough to avoid the NPE so I'm honestly OK if we want to chalk this up to user error and then if people in the future hit this NPE they can be pointed to this.

thanks will close then, can reopen if people think a fix here is needed


Livereload: "Uncaught SyntaxError: Invalid regular expression flags"

Using middleman 4.1.3 with middleman-livereload 3.4.6 on OSX. No pages served by middleman are reloading with livereload and all have this error in the javascript console: Uncaught SyntaxError: Invalid regular expression flags
The error is coming from /__rack/livereload.js:493, which is the second line in this code snip:
if (options.liveCSS) {
  if (/__rack/path.match(/\.css$/i)) {
    if (this.reloadStylesheet(path)) {
      return;
    }
  }
}

It appears to be caused by the value /__rack/ being stuck in there, but I can't find the source file to take a look. That extra bit does not exist in the code at https://github.com/livereload/LiveReload/blob/develop/mac/livereload.js#L493. I've tried uninstalling all of the middleman gems manually and reinstalling them, but that did not resolve the issue.

This comes from https://github.com/johnbintz/rack-livereload/blob/master/js/livereload.js
Let me take a look

I manually uninstalled:
gem uninstall rack
gem uninstall rack-livereload
gem uninstall rack-test

and then bundle install to reinstall, but I'm seeing the same behavior after building and running the site. The rack versions are:
rack (1.6.4)
rack-livereload (0.3.16)
rack-test (0.6.3)

I'm doing some issue-gardening 🌿🌷🌾 and came across this issue.
Sorry that this has lingered for quite a while! I'd suggest either closing this issue or submitting a PR with an implementation or at least a failing test.


Implement branch predictor always taken

This is the evaluation for the always taken predictor:

backend flow complete ✅


Connection issues - Cannot connect to local or cloud TM1

I ran the check.py to try to connect to a local tm1 server and I get the error
ERROR:
'NoneType' object has no attribute 'text'
I tried to connect to our cloud version using Jupyter and got the same error:
AttributeError: 'NoneType' object has no attribute 'text'
Describe what's not working the way you expect
Trying to connect to a TM1 sample database GO_New_Stores with usual admin password
(base) C:\TM1py\tm1py-samples-master>python check.py
TM1 User (leave empty if SSO): admin
Password (leave empty if SSO):
CAM Namespace (leave empty if no CAM Security):
Address (leave empty if localhost):
ClientCAMURI (leave empty if no SSO):
HTTP Port (Default 5000): 5010
SSL (Default T or F): F
ERROR:
'NoneType' object has no attribute 'text'
Didn't get the expected result? Describe:

The result you expected.
A clear and concise description of what you are trying to do.

Version
TM1py version
(base) C:\TM1py\tm1py-samples-master>pip show TM1py
Name: TM1py
Version: 1.8.0
Summary: A python module for TM1.
Home-page: https://github.com/cubewise-code/tm1py
Author: Marius Wirtz
Author-email<EMAIL_ADDRESS>License: MIT
Location: c:\programdata\anaconda3\lib\site-packages
Requires: requests-negotiate-sspi, pytz, requests, mdxpy
Required-by:
Python Version:
(base) C:\TM1py\tm1py-samples-master>Python
Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.

TM1 Server Version local: [10.3]
IBM Cloud

Additional context
I have installed Anaconda 64 on my laptop ad well as a python pip install.
I'm not sure if this is a python or TM1py issue

Probably you are providing wrong aguments. Please doublecheck the arugments UseSSL and HTTPortNumber in the tm1s.cfg

Thanks, that was true for the local, I had set SSL incorrect
But I still get an error when trying to connect to the IBM cloud:
from TM1py import TM1Service
with TM1Service(
_base_url="https://server.planning-analytics.ibmcloud.com/tm1/api/tm1servername/",
user="name_tm1_automation",
namespace="LDAP",
password="password",
ssl=True,
verify=True,
async_requests_mode=True) as tm1:
print(tm1.server.get_product_version())
I get the following error:
AttributeError                            Traceback (most recent call last)
 in
1 from TM1py import TM1Service
2
----> 3 with TM1Service(
4         base_url="https://server.planning-analytics.ibmcloud.com/tm1/api/tm1server/",
5         user="name_tm1_automation",
C:\ProgramData\Anaconda3\lib\site-packages\TM1py\Services\TM1Service.py in init(self, **kwargs)
13
14     def init(self, **kwargs):
---> 15         self._tm1_rest = RestService(**kwargs)
16         self.annotations = AnnotationService(self._tm1_rest)
17         self.cells = CellService(self._tm1_rest)
C:\ProgramData\Anaconda3\lib\site-packages\TM1py\Services\RestService.py in init(self, **kwargs)
198             self._s.cookies.set("TM1SessionId", kwargs["session_id"])
199         else:
--> 200             self._start_session(
201                 user=kwargs.get("user", None),
202                 password=kwargs.get("password", None),
C:\ProgramData\Anaconda3\lib\site-packages\TM1py\Services\RestService.py in _start_session(self, user, password, decode_b64, namespace, gateway, cam_passport, integrated_login, integrated_login_domain, integrated_login_service, integrated_login_host, integrated_login_delegate, impersonate)
366
367             response = self.GET(url=url, headers=additional_headers)
--> 368             self._version = response.text
369         finally:
370             # After we have session cookie, drop the Authorization Header
AttributeError: 'NoneType' object has no attribute 'text'

Follow this guide to connect to TM1 in the IBM cloud:
https://code.cubewise.com/tm1py-help-content/connecting-to-the-ibm-cloud-remotely-with-tm1py

I have been getting the same error, and I followed that guide and still got the same error.

I also could not connect using this which is why I raised the original issue. I am using ARC to connect with the Non-Interactive Account users so I know the connection should be valid. I have tried both against my dev and prod servers using both dev and prod accounts. I have tried all my TM1 servers in dev and prod.


minSdk issue after updating to 0.71

MAX Module Version
5.1.0
React Native Version
0.71.3
Device/Platform Info
React native android
Current Behavior
./gradlew build

What went wrong:
Execution failed for task ':react-native-applovin-max:processDebugAndroidTestManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [com.facebook.react:react-android:0.71.3] /Users/obsidianart/.gradle/caches/transforms-3/46f0e7d82bc9d8e12c68b373b5951f8d/transformed/jetified-react-android-0.71.3-debug/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.facebook.react" to force usage (may lead to runtime failures)

Try:

Expected Behavior
compile
How to Reproduce
Probably is enough to install App Lovin to the latest react version
Additional Info
No response

@obsidianart - Should be fixed in 5.2.1: https://github.com/AppLovin/AppLovin-MAX-React-Native/releases/tag/release_5_2_1


Basic integration for Azure Web PubSub Service

Extension for Azure Web PubSub service is under developing.
Add basic integration for it.

@microsoft/vscodeazuretoolsdev

Do you have a link to the source code of the extension?

@alexweininger All comments are resolved. I accidentally updated the branch for my personal test use several days ago.

for the unsolved question I asked you whether the code could be put into our all-in-one repo https://github.com/azure/azure-webpubsub

It's fine if the code is located in an all-in-one repo. Our team probably prefers it to be stand alone, but it's fine either way. For example, the AZD extension is located in an all-in-one repo. https://github.com/Azure/azure-dev/tree/main/ext/vscode


Add ability to generate a sub token with no restrictions

Add a jwt example
Modify jwt test
With this change, users will be able to generate a sub token with no restrictions.
Thank you @jacopomaroli for your help and suggestions for this change.
In addition to modifying the tests, I've also verified through https://jwt.io/ that a jwt generated with this will include in its payload:
"acl": {
    "paths": {
      "/**": {}
    }
}

If it's better that generating a token with no restrictions is optional that you have to enable with a  flag let me know.

It's required for conversation API. Not sure how this will affect Voice API. Maybe @sammachin knows?

@ChrisGuzman but shouldn't we just insist that it's provided as part of the JWT generation rather than setting a default? Would providing a default that gives access to "all paths" be a security concern?

Yes, tokens should be scoped to provide the narrowest path possible and
with the shortest practical TTL, otherwise you are just creating additional
account passwords.
I havnt’ looked at the specifics but in general for VAPI you don’t actually
need to see the token its just generated and used as part of the API call
so the library should be able to set the appropriate path at that point as
it will know what the token is to be used for before its generated.
On Fri, May 12, 2017 at 11:25 PM Phil Leggetter<EMAIL_ADDRESS>wrote:

@ChrisGuzman https://github.com/chrisguzman but shouldn't we just
insist that it's provided as part of the JWT generation rather than setting
a default? Would providing a default that gives access to "all paths" be a
security concern?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Nexmo/nexmo-node/pull/126#issuecomment-301199436, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALc_bFo4zA6d8CSf1J0aayu3MUV8gs2ks5r5NxCgaJpZM4NZjVf
.

Chatted with @sammachin and we agreed this isn't the best way to implement this. Closing the PR


Fix build with system-wide sqlite3 library

This module builds with the internal copy by default; it used to link to the system copy, but most distributions have pretty old sqlite system libraries which lead to lots of errors and difficulties while installing.

@dpaleino - btw, did you see an error when compiling against the internal copy of sqlite? Or are you just wanting to use the external/system as per debian best practices?

Uh Dane, you too are here!
I just wanted to use the external one as per "Debian best practices" :)
Also, I didn't find any error with my system sqlite3 (it's 3.7.8).

@dpaleino - okay, thanks. btw, is the system sqlite built with rtree support? That is not required for this module, but it is required for TileMill/Mapnik2.

Yes, it has rtree :)


[REPOSITORY] New UI Repositories

Name
egeria-ui-core, egeria-ui-components
Owner
sarbull
Deliverable

common functionalities of egeria-ui and egeria-react-ui during the migration and integration

Build, test and CI-CD process

github dependant as in terms of release and github hooks for NPM builds

Dependencies

egeria-js-commons
happi-graph

Justification

extraction and having a bit of more modularity in the UI components

Assumptions
Yes
Additional Information
I also created a Project under ODPI Organization called "Egeria UI Platform" which will tag items and issues for egeria-ui, egeria-react-ui, happi-graph, egeria-js-commons, egeria-ui-core, egeria-ui-components.
Work Plan
Before creating the repo

[x] review overall request & get clarifications
[x] get approval on developer/TSC call from maintainers

Creating the repo

[x] Create the repo under the odpi organization (default gitignore, license, readme)
[x] Setup branch protection rules
[x] Set pull request options (allow merge, squash, rebase, suggest updating, allow automerge, do not delete head)
[x] Update security settings in repo (policy, advisories, alerts)
[x] set up permissions

First steps

[x] Initial code-drop (author)

Getting CI/CD started & refining settings

[ ] Add initial build script for PR (including gradle wrapper if required)
[ ] Add initial build script for merge

Further Refinement

[ ] Add link in egeria docs to new repo describing purpose ( https://github.com/odpi/egeria-docs/blob/main/site/docs/education/tutorials/git-and-git-hub-tutorial/egeria-git-repositories.md )
[ ] Add to connector catalog, if new repo is for connector ( https://github.com/odpi/egeria-docs/blob/main/site/docs/connectors/index.md )
[ ] Add to release process docs ( https://github.com/odpi/egeria-docs/blob/main/site/docs/guides/contributor/release-process/index.md )
[ ] Add required credentials for publishing to container repos, maven central etc
[ ] Add artifact signing if needed
[ ] Add dependabot config
[x] Add CodeQL
[ ] Add to LFX ( https://projectadmin.lfx.linuxfoundation.org/project/a092M00001IV4JtQAL  ) for

[x] LFXSecurity
[ ] LFAnalytics

[x] Add check for stale defects
[ ] Add any required issue tags

Release

[ ] Add release pipeline

This was agreed in the face2face meeting w/c 23 May 2022.

@sarbull I've done the initial steps. We'll keep this issue open to track some of the remaining setup/cataloguing steps.
Should be fine for you to start using for code now.
I've not done anything build/pipeline related - but once you have some code building, we should return to that to make sure we verify PRs, publish artifacts etc.

Further work on the process/scans/build really needs some initial code.
I will continue once there's something to work with checked in.

A collection of remaining work around docs & process. moving to ui repo for now


#40 Broke prompts that utilize the editor_info

There are two issues currently:

Any prompt that utilizes the ${editor_info[keymap]} functionality now loses that part of the prompt. Affected themes:

damoekri
giddie
kylewest
paradox
sorin

When running prompt -p the affected themes now get the >>> from the sorin theme preview. ex with the giddie theme:

To reproduce the issue:

Pull latest
Change your theme to one of the affected themes in your .zpreztorc
Open a new session
set -o vi
Hit esc
See the additional portion of the prompt that was previously hidden

To fix the issue, there are two options:

Update all of the themes.
Revert the change, but reintroduce the "incorrect" functionality.

I'm filing this to get input on which option would be better at this point, but the basic idea would be to do something like this with the themes (sorin theme):
# line 102
  _primary_keymap_prompt="%B%F{1}❯%F{3}❯%F{2}❯%f%b"
<-- snip -->

  # Set editor-info parameters.
  zstyle ':prezto:module:editor:info:completing' format $_primary_keymap_prompt
<-- snip -->
  # Define prompts.
  PROMPT='${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}${_prompt_sorin_pwd}%(!. %B%F{1}#%f%b.)$(coalesce "${editor_info[keymap]}" " $_primary_keymap_prompt") '

However, the issue I have with doing this with all of the themes is that it basically takes out the ability for the editor_info to be used using the above method to recreate it. (ex. with sorin theme)

I tested that PR, but I should have looked at all the prompts individually and didn't and won't be able to work on this until tomorrow at the earliest.

If the option 2 is going to reintroduce a problem is not a happy option :(
I would update the themes.

My instinct is to roll back #40. That would correct the bug as quickly as possible. It reintroduces a problem that's been long standing and was only momentarily fixed. Arguably many more users are affected by and care about seeing the editor state than the busted continuation prompt. If we do this immediately, it's less likely that users will notice.
We should develop an optimal solution to both problems, but there's no need to do that under pressure. Will need to respond tomorrow with fresher eyes. Quick thought is, if we have to edit themes, that means we're breaking other themes that aren't under our control.

See #50.

Quick thought is, if we have to edit themes, that means we're breaking other themes that aren't under our control.

This is a very relevant comment. I agree with you, lets merge #50

Fixed in #50


Reorganize crate into fewer top-level modules

Description
I starting to look at better documenting the Rust crate, but I realized it partly looks complex because the crate has so many top-level modules.
It seems like we could simplify with the following:

[ ] Make schema.rs into a directory module (schema/mod.rs) and move delta_arrow.rs into that directory.
[ ] Merge delta_config.rs and table_properties.rs.
[ ] Move optimize.rs into operations?
[ ] Rename delta.rs to table/mod.rs. Move builder.rs, table_state.rs, and table_arrow_state.rs into this module. And maybe checkpoint.rs?

Use Case
Related Issue(s)

This has been on my mind for a while as well. I think your proposed structure makes a lot of sense. One thing to consider with the checkpoints is, that these are very closely tied to the parquet implementations / features. SO maybe it makes sense, to move checkpoint.rs into the action module.
Also - and this is just an assumption - as we move forward I see us iterating on how we process table state and an even stricter separation of the state related apis and the still low level, but higher level then state apis on the table might be desirable as well. Especially considering the upcoming delta-core discussions.

One thing to consider with the checkpoints is, that these are very closely tied to the parquet implementations / features. SO maybe it makes sense, to move checkpoint.rs into the action module.

That's a good point. The actions module seems like a better place for that 👍


Alternative map sources

If I am understanding correctly, MAPSCII pulls its map data from webAPIs and renders it. Is it possible to host your own mapAPI, update the markers on the map server and then just use MAPSCII as a viewer?
Originally posted by @rcmart3q in https://github.com/rastapasta/mapscii/issues/97#issuecomment-1404700492
Moved to its own issue because it was off-topic. Should be part of a in-tree documentation or wiki.

Theoretically, it does support loading local mbtiles files.
npm install -g mapscii
npm install -g @mapbox/mbtiles
mapscii --source /home/rcmart3q/Documents/Vancouver.mbtiles

Correct, currently the vector tiles are served from https://mapscii.me/{z}/{x}/{y} - in case one uses a different source, the styles and to-be-rendered layers (and their order) might need to be adapted


Is it possible to rename traceId and spanId to custom names

In the microservice system we have in production, we call our correlation-Id  transactionId . We are planning to use spring-sleuth. Is it possible to rename traceId as transactionId?

What do you mean rename? Rename what exactly?

Can you please answer all the required questions described in the issue template? For your convenience let me paste it here

Describe the bug
Please provide details of the problem, including the version of Spring Cloud that you
are using.
Sample
If possible, please provide a test case or sample application that reproduces
the problem. This makes it much easier for us to diagnose the problem and to verify that
we have fixed it.

Spring-boot:  2.6.7
Spring-cloud-sleuth:  3.1.2
I see the traceId and spanId in the log as below which is not according to the standards we have in our organization. So my question is if it is possible to rename traceId in the log to something else.
(traceId=39713c83aa7a6bae, spanId=39713c83aa7a6bae)
To
(transactionId=39713c83aa7a6bae, spanId=39713c83aa7a6bae)

I have no idea who and how sets it in your logs. You can define the logging format in whatever way you please


Downscale batches for delete/update by query requests based on memory

Downscale batches for delete/update by query requests based on memory
We batch many items into a single request to reduce overhead, but this
can cause memory pressure if the items are large.
For example, in statements like
UPDATE tbl SET x = CASE y
  WHEN .. THEN ..
  WHEN .. THEN ..
  ...

With many when .. then conditions, the assignments require quite some
memory due to how we represent the conditions.
(See also https://github.com/crate/crate/issues/12674)
To reduce the memory pressure this adds the dynamic request sizing logic
which we already use for COPY/INSERT INTO statements

retest this please
Gradle license plugin fetch error

retest this please
again Could not resolve com.github.jk1:gradle-license-report:2.1.

I've submitted your observations to https://github.com/jk1/Gradle-License-Report/issues/253. Let's remove the plugin in the meanwhile, I will send a corresponding patch.

multiple KillInregrationTest failures,
https://jenkins.crate.io/job/CrateDB/job/crate_on_pr/4905/testReport/junit/io.crate.integrationtests/KillIntegrationTest/testKillSelectSysTable/
retest this please


Existing mina-slack Gem

https://github.com/TAKAyukiatkwsk/mina-slack
I gem installed and couldn't figure out why it wasn't working. Then I realized that someone already got mina-slack on rubygems.org!

I openend an issue to try to unblock the situation:
https://github.com/TAKAyukiatkwsk/mina-slack/issues/3

Hey, this is still a problem. README incorrectly states that you can install this gem via rubygems even though you can't


Failed to save a key with version 1.12.0

I cannot save my secret key.
How to reproduce

Clean-install version 1.12.0
Click "New profile" to create a new profile
Input a secret key to the "Private key" input field
Click "Save key"
You'll get the error below:

Uncaught (in promise) Error: private key must be 32 bytes, hex or bigint, not string
    normPrivateKeyToScalar moz-extension://f6a8d7e0-020a-4805-b55b-4a8181ba9915/options.js:25675
    schnorrGetExtPubKey moz-extension://f6a8d7e0-020a-4805-b55b-4a8181ba9915/options.js:26512
    schnorrGetPublicKey moz-extension://f6a8d7e0-020a-4805-b55b-4a8181ba9915/options.js:26533
    getPublicKey moz-extension://f6a8d7e0-020a-4805-b55b-4a8181ba9915/options.js:31647
    updateActivePrivateKey moz-extension://f6a8d7e0-020a-4805-b55b-4a8181ba9915/options.js:34723
    savePrivateKey moz-extension://f6a8d7e0-020a-4805-b55b-4a8181ba9915/options.js:34996
    callCallback2 moz-extension://f6a8d7e0-020a-4805-b55b-4a8181ba9915/options.js:5583

Even if I use a new key generated by pressing "Generate key" button, I got the same error.
I think I could save the key when I was using version 1.11.0.
Environment
Firefox Developer Edition 118.0b7 (64bit) / Linux 6.5.2 x86_64
Debugging
I noticed that the original exception thrown by ensureBytes:
private key must be valid hex string, got "(omitted)". Cause: Error: padded hex string expected, got unpadded hex of length 63

The input field accepts npub but the process expects hex format. I think the cause it that.

There is a PR to fix this issue: https://github.com/diegogurpegui/nos2x-fox/pull/20/files
I would like to close this.


Added Sheet primitive

Added the sheet primitive to the collection of Primitive Utilities

@nithinp7 Removed floor implementation, ready for review.


Fix travis builds

running all tests with Trusty seems work for all PHP versions;
removed unused configuration for unsupported PHP versions;
removed unused travis key 'sudo';

@mentalstring Can you take the opportunity to add PHP 7.3 and 7.4 on allow failure as currently nightly is PHP 8.0.0-dev <3
Thank you to take care of this.

@alquerci No need to allow failure for 7.3 as it already passes all tests just fine. I'm planning on submitting a separate PR for adding PHP 7.3 to the list (and documentation)  — I was just trying to get Travis to pass first.
Now it seems that it run and pass on all PHP versions. Can you check?

Sorry, have made another update to the PR: better to specify the distro only for 5.5 and 5.6 that were the ones failing and leave the other versions run on what travis thinks is up to date — might be necessary to run newer/future versions of PHP.

@mentalstring Then let's make it explicit by using dist: xenial (on the top on the file), what do you think?

What's the advantage? The way I see it, it's best not to lock it to a particular distro if we don't have to, as that way we can become aware of other tangent changes (eg: OS, libs, different distros) that can be relevant to run our tests against. We can always lock to a particular distro later if newer ones become incompatible to run these tests (as we are doing now with 5.5/5.6).

What's the advantage?

The control on the infrastructure then to not have the same issue when boinc will be the default distribution.
We should focus on more important things.

Anything missing to get this merged?

@mentalstring Nothing is missing to get this merged except the merger is available.
cc @thePanz


Better inline monospace styling

As of now, the inline monospace styling is not optimal, and could use better contrast (like a greyed background).
GitHub's own styling could be taken as a model.
https://css-tricks.com/considerations-styling-pre-tag/
https://css-tricks.com/styling-code-in-and-out-of-blocks/

Hey @Kleidukos I am willing to work on this issue. I just need some help on understanding which part needs the changes to be done?

@vedant-z Sure! Do you have any experience writing CSS? :)

@Kleidukos Ya I do.

@Kleidukos I would like to work on this issue. Please assign me this.

This has been fixed by https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12660


Not getting the user data and cookies

Describe the Bug
I'm using a Custom Strategy to login via OpenID without the login form:
This is my auth file:
import { type Payload, PayloadHandler, PayloadRequest, User, parseCookies, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult } from 'payload'
import * as openid from 'openid-client'
import jwt from 'jsonwebtoken';
import jwksClient from 'jwks-rsa';

const server: URL = new URL(process.env.OPEN_ID_URL || ''),
    clientId: string = process.env.OPEN_ID_CLIENT || '',
    clientSecret: string = process.env.OPEN_ID_SECRET || '',
    redirect_uri: string = `${process.env.SERVER_URL}/admin/login`,
    scope: string = process.env.OPEN_ID_SCOPE;

const jwks = jwksClient({
    jwksUri: process.env.OPEN_ID_KEYS || ''
});

const config: openid.Configuration = await openid.discovery(server, clientId, clientSecret);

export const decode = (token: string) => new Promise(next => {
    var decoded = jwt.decode(token, {
        complete: true
    });
    const kid = decoded?.header?.kid;
    jwks.getSigningKey(kid, (error, key: any) => !error ? jwt.verify(token, key.publicKey || key.rsaPublicKey, (err: any, decoded: any) => next(!err ? decoded : null)) : next(null));
})

// endpoint: /api/login
export const login: PayloadHandler = async (req: PayloadRequest): Promise<Response> => {
    let code_verifier: string = openid.randomPKCECodeVerifier(),
        code_challenge: string = await openid.calculatePKCECodeChallenge(code_verifier),
        state!: string,
        nonce!: string,
        parameters: Record<string, string> = {
            redirect_uri,
            scope,
            code_challenge,
            code_challenge_method: 'S256',
            response_type: 'id_token'
        }
    if (!config.serverMetadata().supportsPKCE()) {
        state = openid.randomState();
        parameters.state = state;
        nonce = openid.randomNonce();
        parameters.nonce = nonce;
    }
    let redirectTo: URL = openid.buildAuthorizationUrl(config, parameters);
    return Response.redirect(redirectTo.href);
};

const getUser = async (payload: Payload, email?: string): Promise<User | null> => {
    if (!email) return null;
    const find = await payload.find({
        collection: 'users',
        where: {
            email: {
                equals: email
            }
        }
    });
    return !find?.docs?.[0]?.email ? null : {
        ...find.docs[0],
        email: find.docs[0].email || '',
        collection: 'users'
    };
}

// endpoint: /api/login/:token, called in BeforeLogin.tsx, if returns the user, the provided token is set to a cookie
export const check: PayloadHandler = async (req: PayloadRequest): Promise<Response> => {
    if (!req?.routeParams?.token) return Response.error();
    const user = await decode(typeof req.routeParams.token !== 'string' ? '' : req.routeParams.token) as User | null;
    return !user?.email ? Response.error() : Response.json(user)
};

// collection strategy
export const authenticate: AuthStrategyFunction = async ({ payload, headers }: AuthStrategyFunctionArgs): Promise<AuthStrategyResult> => {
    const cookie = parseCookies(headers),
        token = cookie.get('token');
    if (!token) return { user: null }; // /api/users/me stops here
    const data: any = await decode(token);
    if (!data?.email) return { user: null }
    let user: User | null = await getUser(payload, data.email);
    if (!user) {
        await payload.create({
            collection: 'users',
            data: {
                name: data.name,
                email: data.email
            }
        });
        user = await getUser(payload, data.email);
    }
    return {
        user
    };
};

But the response from /api/users/me is this one:
{
   "user":null,
   "message":"Account"
}

With a custom API this also returns null in the user property:
  const payload = await getPayload({ config })
  const requestHeaders = await headers()

  const { user } = await payload.auth({ headers: requestHeaders })

This is the request:
fetch('/api/test', {
    method: 'POST',
    credentials: 'include'
})

Link to the code that reproduces this issue
https://github.com/RPdvtPT/payload-strategy-test
Reproduction Steps

create a sample project based on the blank template
apply the strategy
after login, check /api/users/me responses

Which area(s) are affected? (Select all that apply)
Not sure
Environment Info
- payload: 3.11.0
- react: 19.0.0
- next: 15.1.2
- jsonwebtoken: 9.0.2
- jwks-rsa: 3.1.0
- openid-client: 6.1.7

authenticate: async ({ payload, headers }: AuthStrategyFunctionArgs): Promise<AuthStrategyResult> => {

          const cookie = parseCookies(headers),
            token = cookie.get('token');

          console.log('token', token);

          return { user: null }
};

these cookies are available, except in the /api/users/me.
Working on a sample example project

The repo is this one: https://github.com/RPdvtPT/payload-strategy-test

Hey @RPdvtPT — the me operation is meant to work with Payload's Local API only. If you want to extend it to make it work with your custom strategy, you should use a me hook where you can then return a user from your custom cookie.
https://payloadcms.com/docs/hooks/collections#me
From the docs:
 If you optionally return a value from your hook, the operation will not perform its own logic and continue.

This effectively allows you to override the logic in the me hook with your own. Take a look at the me operation source code for more info about how this all works.
https://github.com/payloadcms/payload/blob/main/packages/payload/src/auth/operations/me.ts
You should be able to wire this up accordingly, but as far as how it is behaving now, that would be expected. I will convert this to a discussion to continue to provide help. I bet this will also be useful for others, too!


modification previous error not cleared.

When modification deployment fails, we store the error as expected.
But when we try the modification again and it is successful, then we are not clearing the previous error. The previous error must be deleted from the DB.

I will fix it.


Cloud Functions

Hello,
I've searched everywhere on Google and here, but I couldn't seem to find how to execute Cloud Functions on PHP.
Is it available here? Can please someone lead me to the correct documentation/implementation.
Thank you!
Edit:
I would really appreciate if you guys can help me out: https://stackoverflow.com/questions/54797672/call-firebase-cloud-function-that-requires-authentication-using-service-account

it is not available in PHP, only on Node (6, 8), Go and Python

Hi @lambasoft,
Cloud Functions are not included in Google Cloud PHP, but are supported by google/api-client.
Here is an example showing how to execute a cloud function:
$projectId = '[YOUR PROJECT ID]';
$locationId = '[LOCATION ID]';
$functionId = '[YOUR FUNCTION ID]';

$client = new Google_Client([
  'retries' => [
    500 => 10
  ]
]);
$client->useApplicationDefaultCredentials();
$client->addScope([
    Google_Service_CloudFunctions::CLOUD_PLATFORM
]);

$functions = new Google_Service_CloudFunctions($client);

$call = new Google_Service_CloudFunctions_CallFunctionRequest();

$name = sprintf(
    'projects/%s/locations/%s/functions/%s',
    $projectId,
    $locationId,
    $functionId
);
$response = $functions->projects_locations_functions->callProjectsLocationsFunctions($name, $call);

print_r($response);

If your function requires data to be provided, you can set that in the Google_Service_CloudFunctions_CallFunctionRequest constructor:
$call = new Google_Service_CloudFunctions_CallFunctionRequest([
    'data' => json_encode([
        'message' => 'Hello World!'
    ])
]);

For people referencing this issue in the future, the solution posed by @jdpedrie can only be used to test your cloud functions. Calling the method repeatedly will quicky result in rate limiting


chore(deps): update terraform terraform-ibm-modules/key-protect-all-inclusive/ibm to v4.8.4

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/key-protect-all-inclusive/ibm (source)
module
patch
4.8.3 -> 4.8.4

Release Notes

terraform-ibm-modules/terraform-ibm-kms-all-inclusive (terraform-ibm-modules/key-protect-all-inclusive/ibm)
v4.8.4
Compare Source
Bug Fixes

deps: update terraform ibm to latest for the deployable architecture solution (#425) (803a7a4)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

:tada: This PR is included in version 1.2.2 :tada:
The release is available on:

GitHub release
v1.2.2

Your semantic-release bot :package::rocket:


rename librust to libldknode to avoid name conflicts

Different packages that use rust code and flutter_rust_bridge will have the rust code in a folder and have it build to native libraries named librust. When importing these libraries in the same project, for example ldk_node_flutter and bdk_flutter, this will give conflicts, since the project will not know which librust file to use. Therefore this PR renames the librust.so and librust.a files to libldknode.so and libldknode.a when they are copied into the respective android and iOS folders.
This would fix part of issue #13 .

@BitcoinZavior Yes, that's indeed a better and more specific name. I just committed the change.


feat(controller): add host header to healthcheck

re: #4585

Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it.
Your Pull Request can earn you credit at DigitalOcean! See http://docs.deis.io/en/latest/contributing/hacking/#digitalocean-credit for details.

Thanks @pmclanahan! Would you mind amending your commit such that it follows the style guide as our bot pointed out? That way your commit will be fetched in the changelog when we cut a new release. Thanks! :)

also @jgmize does have a point with https://github.com/deis/deis/issues/4585#issuecomment-146676337 -- we'll need to add the host header there as well.

Commit message improved. And yes, @jgmize is correct, but I thought I'd go ahead and get this in since I know how to make this change. I'll look at the other as well, but I've not worked with much golang.

Jenkins, add to whitelist.

Unfortunately I don't think there's a way we can get the application's URL from publisher, and I think we need to implement this in both publisher and the controller in one PR. On the plus side, health checks are handled by kubernetes for us in v2, so there is a fix in the future for this as they'll handle all this logic for us, including HTTP and exec health checks which the healthcheck PR was originally inspired by. :)
@pmclanahan would you be okay for closing this PR in favour of v2? You can follow the docs here if you want to play with v2. It's currently in alpha and we're working on a beta release.

Sounds good. Thanks.


Refactor verify_delay_passed and move it under ics03_connection section

Closes: #404
Description
This incorrectly placed verify_delay_passed caused entanglements for some packet validation methods and forced them to accept ctx as an argument, which was unnecessary.
This PR got pushed to the top since the side effect is that we got limited and can't well explore new changes regarding *Context and Router traits. This should make it easier to work on issues like #490
Remark
Upon this change, previous verify_delay_passed tests no longer apply, and appropriate tests for two conditions of having connections with and without delay should be added for appropriate message types like recv_packet. (as a later PR?!)

PR author checklist:

[x] Added changelog entry, using unclog.
[ ] Added tests.
[x] Linked to GitHub issue.
[ ] Updated code comments and documentation (e.g., docs/).
[ ] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

as for the removed tests, could you also create an issue to remind us to add them back?

Glad you liked this change 🤗

as for the removed tests, could you also create an issue to remind us to add them back?

I tried to cover needed tests in this PR, but the changing scope was beyond PR's concern, and I didn't want to wrestle with merge conflicts :)
Here is the opened issue: #505


Missing Pages: 5

:spider_web: The following pages are still missing!
Help us out by contributing to the wiki and create one or more of these pages, it would be awesome! :heart:
We have a detailed guide on how to submit changes to the wiki for you right here:
https://github.com/Slimefun/Slimefun4/wiki/Expanding-the-Wiki
:books: List of missing pages

Makeshift-Smeltery.md
Plastic-Sheet.md
Reinforced-Cloth.md
Solar-Panel.md
Tape-Measure.md

Help is much appreciated :heart:

@TheBusyBiscuit did this just break?

@TheBusyBot Where do you want all these files to be added? I can do this if it's not assigned currently.

@CodeSadhu He won't reply to you, this is an automated program which updates the issue constantly.
We have a detailed guide on what you need to know about contributing to the wiki right here:
https://github.com/Slimefun/Slimefun4/wiki/Expanding-the-Wiki
Since this issue is automatically updated though, I won't be assigning anyone to this, but feel free to write as many wiki pages as you want if you already have experience with using Slimefun on your server.

@TheBusyBiscuit Oh damn! Lol. Thanks for informing me. I'll take a look at that ;)

About compressed carbon, uh its brought up in the carbon page. Do we make a page to redirect or?

@svr333 I still have no idea how to uh make a page redirect or be a duplicate of another. So uh could you PR it so that Solar Panel points to Photovoltaic Cell?


fix(cd): use correct sha for PR based docker build

KAG-3251

Summary
use github.event.pull_request.head.sha instead of github.sha on a PR, as github.sha on PR is the merged commit (temporary commit).
also correctly set the KONG_VERSION env var.
Checklist

[x] The Pull Request has tests
[na] A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[na] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

docker inspect kong/kong:b32b41d93f1e4001ee16006ddca8561021aeedd6-ubuntu|jq .[].Config.Labels
{
  "maintainer": "Kong Docker Maintainers<EMAIL_ADDRESS>(@team-gateway-bot)",
  "org.opencontainers.image.created": "2023-11-29T07:43:19.673Z",
  "org.opencontainers.image.description": "🦍 The Cloud-Native API Gateway",
  "org.opencontainers.image.licenses": "Apache-2.0",
  "org.opencontainers.image.ref.name": "ubuntu",
  "org.opencontainers.image.revision": "b32b41d93f1e4001ee16006ddca8561021aeedd6",
  "org.opencontainers.image.source": "https://github.com/Kong/kong",
  "org.opencontainers.image.title": "kong",
  "org.opencontainers.image.url": "https://github.com/Kong/kong",
  "org.opencontainers.image.version": "b32b41d93f1e4001ee16006ddca8561021aeedd6-ubuntu"
}


The chart keeps loading and loading if user change the color and sele…

…ct log

thanks! manually merged in 28a67ab4207edc89165d0cafe36313f2bb7d097d (flags should be false, false)


how-to: add example bash scripts for backing up stats indices

This PR adds small bash scripts to back up/restore all stats indices in one go to the corresponding how-to section.
It's based on shell scripts that I'm currently writing for our own instances.

does such howtos also need an at least version indicator? since statistics is a v12 feature this script should have a at least v12 is necessary or something like that

strictly speaking, this doesn't really need v12.
you can backup/restore your indices also with previous versions, it's just basically pointless (since everything can be recreated from the DB until v11).
IMO, the first sentence in the page already makes that clear, but I'm open for discussions.

Starting with InvenioRDM v12, not all search indices can be recreated from the database anymore. In order to not lose any data when something goes wrong with the search indices, they should be backed up regularly.

here's a screenshot of the full page, with red annotations:

reading the code of the script i didn't find a line about statistics.

the stats indices are queried on line 154

what is the purpose of the script to backup the statistics or do backup the indices?

the scripts dump/restore the stats indices, which is the primary source for the statistics – as such, it effectively backs up the statistics

but the statistic indices can't be reproduced they are gone if all indices have been destroyed.

i sure hope the backups happen before anything gets destroyed :sweat_smile:
either way, i've added another box mentioning v12, annotated with NEW in the screenshot.

it could make sense if there is a weighting system implemented in the search, or we have some sort of search history and so on

sorry, i don't think i understand this one


keyboard shortcut to add above

What is this PR for?
add a keyboard shortcut to add paragraph above to keep difference with previous add paragraph below
What type of PR is it?
Improvement
Todos
Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-611
How should this be tested?
click into a paragraph and press ctrl+alt+n
Screenshots (if appropriate)

Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

Thanks for the contribution.
How about use shortcut key 'a' for this, like Jupyter/Ipython does?
And I think it's good idea to reserve ctrl-alt-'n' and ctrl-alt-'p' for something related to paragraph focus,
while ctrl-'n', ctrl-'p' moves cursor.

@Leemoonsoo : good point. thanks for pointing that out. it's changed to a now.

Thanks @MikeTYChen I'm merging it if there're no more discussions


Ruby 2.2 fix for #13802

Ruby 2.2 URI required port to be integer, 2.3 admits strings.
Specs were failing on 2.2:
$ bundle exec rspec ./spec/lib/embedded_ansible_spec.rb
...

Failures:

  1) EmbeddedAnsible with an miq_databases row .alive? when a connection is attempted returns false when a Faraday::ConnectionFailed is raised
     Failure/Error: :base_url => URI::HTTP.build(:host => "localhost", :path => "/api/v1", :port => NGINX_HTTP_PORT).to_s,

     URI::InvalidComponentError:
       bad component(expected port component): "54321"
     # ./lib/embedded_ansible.rb:175:in `api_connection'
     # ./lib/embedded_ansible.rb:37:in `alive?'
     # ./spec/lib/embedded_ansible_spec.rb:136:in `block (5 levels) in <top (required)>'

  2) EmbeddedAnsible with an miq_databases row .alive? when a connection is attempted raises when other errors are raised
     Failure/Error: expect { described_class.alive? }.to raise_error(RuntimeError)

       expected RuntimeError, got #<URI::InvalidComponentError: bad component(expected port component): "54321"> with backtrace:
         # ./lib/embedded_ansible.rb:175:in `api_connection'
         # ./lib/embedded_ansible.rb:37:in `alive?'
         # ./spec/lib/embedded_ansible_spec.rb:157:in `block (6 levels) in <top (required)>'
         # ./spec/lib/embedded_ansible_spec.rb:157:in `block (5 levels) in <top (required)>'
     # ./spec/lib/embedded_ansible_spec.rb:157:in `block (5 levels) in <top (required)>'

  3) EmbeddedAnsible with an miq_databases row .alive? when a connection is attempted returns false when an AnsibleTowerClient::ConnectionError is raised
     Failure/Error: :base_url => URI::HTTP.build(:host => "localhost", :path => "/api/v1", :port => NGINX_HTTP_PORT).to_s,

     URI::InvalidComponentError:
       bad component(expected port component): "54321"
     # ./lib/embedded_ansible.rb:175:in `api_connection'
     # ./lib/embedded_ansible.rb:37:in `alive?'
     # ./spec/lib/embedded_ansible_spec.rb:147:in `block (5 levels) in <top (required)>'

  4) EmbeddedAnsible with an miq_databases row .alive? when a connection is attempted returns false when a Faraday::SSLError is raised
     Failure/Error: :base_url => URI::HTTP.build(:host => "localhost", :path => "/api/v1", :port => NGINX_HTTP_PORT).to_s,

     URI::InvalidComponentError:
       bad component(expected port component): "54321"
     # ./lib/embedded_ansible.rb:175:in `api_connection'
     # ./lib/embedded_ansible.rb:37:in `alive?'
     # ./spec/lib/embedded_ansible_spec.rb:142:in `block (5 levels) in <top (required)>'

  5) EmbeddedAnsible with an miq_databases row .alive? when a connection is attempted returns false when an AnsibleTowerClient::ClientError is raised
     Failure/Error: :base_url => URI::HTTP.build(:host => "localhost", :path => "/api/v1", :port => NGINX_HTTP_PORT).to_s,

     URI::InvalidComponentError:
       bad component(expected port component): "54321"
     # ./lib/embedded_ansible.rb:175:in `api_connection'
     # ./lib/embedded_ansible.rb:37:in `alive?'
     # ./spec/lib/embedded_ansible_spec.rb:152:in `block (5 levels) in <top (required)>'

  6) EmbeddedAnsible with an miq_databases row .alive? when a connection is attempted returns true when no error is raised
     Failure/Error: :base_url => URI::HTTP.build(:host => "localhost", :path => "/api/v1", :port => NGINX_HTTP_PORT).to_s,

     URI::InvalidComponentError:
       bad component(expected port component): "54321"
     # ./lib/embedded_ansible.rb:175:in `api_connection'
     # ./lib/embedded_ansible.rb:37:in `alive?'
     # ./spec/lib/embedded_ansible_spec.rb:162:in `block (5 levels) in <top (required)>'

This fixes the specs, didn't review code in detail but seems
api_connection and alive? theselves would crash on 2.2.
cc @carbonin @jrafanie

Good find @cben!  Yes, I believe we've gone too far without enforcing 2.3.  We've got a 2.4 PR ready to go, so maybe it's time to force 2.3 but start to allow developers to use 2.4 also.


Add typing to the library

Codecov Report
Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (cfc070b) 99.22% compared to head (91cc3b1) 98.01%.

Files
Patch %
Lines

serializer_prefetch/typing.py
66.66%
8 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
- Coverage   99.22%   98.01%   -1.21%
==========================================
  Files          10       11       +1
  Lines         774      807      +33
==========================================
+ Hits          768      791      +23
- Misses          6       16      +10

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


more info about JohnRDOrazio/LiturgicalCalendar

thanks for mentioning my project in this list! if it's alright I'd like to add a little bit more info...

Sure! Thanks, merging.


add docker push image step in derrick up for kubernetes clusters

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Codecov Report

Merging #32 into master will decrease coverage by 0.18%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master     #32      +/-   ##
=========================================
- Coverage   55.59%   55.4%   -0.19%
=========================================
  Files          45      45
  Lines        1207    1211       +4
=========================================
  Hits          671     671
- Misses        536     540       +4

Impacted Files
Coverage Δ

derrick/engines/kubernetes_engine.py
23.52% <0%> (-3.14%)
:arrow_down:

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 4b79e0c...26b2134. Read the comment docs.


Announcing WinUI 3 Preview 3! ✨🎉

WinUI 3 Preview 3
As mentioned in this morning's App Development Community Standup, we've just released WinUI 3 Preview 3! This release consists of a few key new features, improvements on existing functionality, and bug fixes.
WinUI is going to be released in a series of previews through 2021, when we expect to ship the WinUI 3.0 GA release.
New features in Preview 3
Here are some capabilities that are new since Preview 2:

ARM64 Support
Drag and drop inside and outside of apps
RenderTargetBitmap (currently only XAML content - no SwapChainPanel content)
Improvements to our tooling/developer experience:

Live Visual Tree, Hot Reload, Live Property Explorer and similar tools
Intellisense now working for WinUI 3

MRT Core Support

This makes apps faster and lighter on startup and provides quicker resource lookup.

Custom cursor support
Off-thread input
New, succinct Grid definition syntax, which was a community-driven feature request. 🎉

Please keep in mind that Preview 3 is still an early release product, and has a number of known issues and limitations that our team will be working on throughout upcoming releases. This preview is not intended for production apps.
Getting started with Preview 3
First, you'll need to set up your dev environment with the appropriate technologies. See our documentation for installation instructions and more information on project types:
Install WinUI 3 Preview 3
We've recently published a whole new suite of API reference documentation for all of the new and lifted WinUI 3 APIs, which you can check out here: WinUI 3 API Reference. Make sure the version selector on the left displays "3.0-preview3".
Also, take a look at the walk-through documentation on building a UWP app with WinUI 3 Preview 3 and building a Desktop app with WinUI 3 Preview 3.
We love feedback! We encourage you to file any bug, big or small, on our repo using this template. Knowing which issues and features are important and/or critical to our customers highly influences which ones we tackle.
For upgrading Preview 2 apps to Preview 3, carefully follow the instructions laid out here.
Using WinUI 3 Preview 3 with our ecosystem partners
Preview 3 is in the process of being integrated into several other important ecosystem technologies. To test out and follow that progress, check out some of our partner technologies below:

Windows Community Toolkit (Microsoft): The latest version of the WCT supports Preview 3, and provides tons of new controls and capabilities for use in your WinUI app. You can check out their open source repo here.

Uno Platform: Developers using WinUI have an option to take WinUI-built applications to WebAssembly, Linux, macOS, Android and Linux via community-driven open source project Uno Platform. To set up your environment and get started with Uno Platform follow instructions laid out here.

Telerik: Telerik UI for WinUI is an early experiment for the UI component suite, targeting WinUI 3 UWP apps. The Telerik UI preview includes several feature-rich controls including Charts, Gauges, DataGrid, and more.

SyncFusion: The SyncFusion WinUI controls preview includes a large variety of high performance and modern controls for WinUI 3 UWP apps. The initial preview includes a suite of controls for data visualization, notifications, navigation, and content editing.

DevExpress: : The entire suite of DevExpress UWP controls is now available for WinUI 3 UWP apps. Some example controls include Scheduler, chart controls, Navigation, DataGrid, and more.

What's next
To keep up with progress being made on WinUI 3, please see our feature roadmap which gets updated regularly. We also give monthly updates on our WinUI Community Calls, where you can directly ask the team any questions you have.
Issues and workarounds
There have been a few issues identified by our developer community, along with workarounds to solve them. Please take a look at the following before filing a new bug on Preview 3:
#3649 - Setting tooltip using attached method syntax in resw no longer works in WinUI 3 Preview 3
#3635 - Cannot build WinUI3 Preview3 desktop package project in fresh installed VS
#3648 - WinUI3 Preview 3 package misses globbing pattern for PRIResource
#3954 & #3815 - Apps created with WinUI3 Preview 3 will not run on the latest Windows Insider builds

Great news! When do we get to see the code? (I'll not ask latest timing of WinUI 3.0 as that gets mentioned in almost every community call)

Installed VS 2019 preview
Installed vsix for WUI project templates
Created a WinUI Packaged desktop app
Won't build.
Error	MSB3774	Could not find SDK "Microsoft.VCLibs.Desktop, Version=14.0".	WUI (Package)	C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets	2395
Error	MSB3774	Could not find SDK "Microsoft.VCLibs, Version=14.0".	WUI (Package)	C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets	2395

Upgraded Nuget for Microsoft.VCRTForwarders.140 but that didn't help.

@VagueGit It successes on one of my machine, and fails on another. I suspect it requires "C++ tools for UWP" workload. Comfirming.

@huoyaoyuan I have Windows SDK 10.0.19041.1. In C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs I have Microsoft.VCLibs.Desktop.110 and Microsoft.VCLibs.Desktop.120 but not version 14. Do you know where it comes from?

@VagueGit After trying, Microsoft.VCLibs.Desktop comes with C++ UWP tools workload. But Microsoft.VCLibs still doesn't come. I've confirmed it's not included in minimal C++ desktop workload, nor UCRT SDK.
I have versioned Microsoft.VCLibs.120, Microsoft.VCLibs.Desktop.110, and Microsoft.VCLibs.Desktop.120.

Commenting out the SDKReference in package project works for my application upgraded from Preview 2, but doesn't work for template project.
My project can run, but will fail with Can't find ResourceMap when loading any page with localization.

@stevenbrix @alwu-msft any insight on the issues mentioned above?

Many folks have been hitting this issue. For some, doing a repair of their VS install fixed it, for others it didn't.
I will reply back if I learn any more than that.

Encountered the same issue for my own UWP app. While doing a a repair in visual studio installer fixes the VC lib not found issue, I get the same ResourceMap not found problem as @huoyaoyuan . Here are some relevant logs:
'App.exe' (Win32): Loaded 'C:\Windows\System32\winnsi.dll'.
D:\a\1\s\dev\MRTCore\mrt\Core\src\MRM.cpp(674)\MRM.dll!00007FFB45BD422B: (caller: 00007FFB65B5A068) ReturnHr(1) tid(4a78) 80073B1F ResourceMap Not Found.
Exception thrown at 0x00007FFBD2953E49 (KernelBase.dll) in App.exe: WinRT originate error - 0x80073B1F : 'ResourceMap Not Found.'.
'App.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'App.exe' (Win32): Loaded 'C:\Windows\System32\wldp.dll'.
Exception thrown at 0x00007FFBD2953E49 in App.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x000000B1694FA870.

Looks like MRTCore is the culprit?

@huoyaoyuan @roxk Would it be possible for you to share the project where you're seeing the "ResourceMap not found" error?

@alwu-msft It's a private repository for now, just invited you as collaborator. It's the main branch.
Thanks for the quick response!

@roxk The exception is non-fatal and execution can be continued past it. You're seeing it because you specified an x:Uid (on line 58 of MainPage.xaml) that does not have any matching string resources.

@alwu-msft Thanks! I see 2 points here:

IIRC missing resources would not throw any exception in preview 2, is it an intended new behavior to throw for missing resources? (Not that I am against it, since it safe guards devs)
The reason why those resources are missing is to avoid a bunch of XXX.ToolTipService.ToolTip exception. You should be able to reproduce it in the commit with the message upgrade to winui 3 preview 3. The same commit compiles just fine with preview 2.

@anawishnoff Can you create a highlighted issue for collections of known issues of preview 3?
I've found three (#3635, #3648, #3649). After doing workaround for them, my project is running well.
During the lifetime of preview 2, I've seen several times people creating duplicated issues for the known issues.
And they should be also added to here.

Thanks @huoyaoyuan for filing these and finding workarounds! I'll add these issues to this post as it's pinned and the central space to discuss Preview 3.

I still experience Issue #2704 in preview 3.

I don't see Xaml-less rendering (eg Swapchain from CoreWindow) - are games and custom rendering not being considered?

Infragistics is also engaging WinUI :
https://www.infragistics.com/products/winui

@anawishnoff  please can you update the "Issues and workarounds" section in the OP to include that apps created with WinUI3 Preview 3 will not run on the latest Windows Insider builds. (#3954 & #3815)

@anawishnoff  please can you update the "Issues and workarounds" section in the OP to include that apps created with WinUI3 Preview 3 will not run on the latest Windows Insider builds. (#3954 & #3815)

Check out #6172 to see bug fixes and features from this release in Windows App SDK 1.0.


VSCode fails to publish branch after using git sparse-checkout

I encountered a problem with VSCode’s git integration when I tried to use git sparse-checkout to clone a subset of a large repository. After creating and switching to a new branch in VSCode, I was unable to publish the branch to the remote repository. However, I could still push the branch using the command line. Even after pushing the branch successfully, VSCode still showed the branch as unpublished. This is a very serious issue that affects my workflow.

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: Version: 1.77.3(user setup)

Commit: 704ed7od4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:02.548Z (1 wk ago)

OS Version: Windows 10 21H2

Steps to Reproduce:

git clone --depth=1 --filter=blob:none --sparse  https://github.com/TieWay59/gccrs.git
cd .\gccrs\
git sparse-checkout set gcc/rust
open vscode and create & switch to a new branch, that branch won't be able to be published by vs code.

The commit has been uploaded to the remote by terminal git push, but vs code can't recognize it no matter how I reload or reset it.

Hi @lszomoru, I see the bot assigned this issue to you, if you need any details to locate the error, feel free to ping me, I'd love to follow up on this issue.

@TieWay59, could you please share the error that you get when you try to publish the branch? I also want to call out that the "Commits" view is being contributed by the GitLens extension so in case there are issues with that, you would have to reach out to the extension author. Thanks!

This is all I can get from the GitOutput and DevTools, this log is updated after I click the button Publish Branch. I have disabled the GitLens extension.

Git Output:
2023-04-25 13:33:05.211 [info] > git push -u origin test-sparse [3524ms]
2023-04-25 13:33:05.211 [info] Everything up-to-date
2023-04-25 13:33:05.226 [info] > git config --get commit.template [1ms]
2023-04-25 13:33:05.236 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/test-sparse refs/remotes/test-sparse [2ms]
2023-04-25 13:33:05.254 [info] > git status -z -uall [11ms]
2023-04-25 13:33:06.333 [info] > git config --get commit.template [10ms]
2023-04-25 13:33:06.334 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/test-sparse refs/remotes/test-sparse [3ms]
2023-04-25 13:33:06.350 [info] > git status -z -uall [9ms]
2023-04-25 13:33:06.465 [info] > git ls-files --stage -- /root/github/github-analysis-report/python/README.md [2ms]
2023-04-25 13:33:06.475 [info] > git cat-file -s 324e7a436e12f180a93ba2f6b6b921d1d901c809 [3ms]
2023-04-25 13:33:06.535 [info] > git show --textconv :python/README.md [6ms]

workbench.desktop.main.js:90 [Extension Host] updated if enabled= true
workbench.desktop.main.js:90 [Extension Host] setting decorations after delay
workbench.desktop.main.js:90 [Extension Host] Dimming now!
workbench.desktop.main.js:90 [Extension Host] EOF Reached
workbench.desktop.main.js:90 [Extension Host] topLine: {a: 4, b: '2023-04-25 13:33:05.254 [info] > git status -z -uall [11ms]', c: false}
workbench.desktop.main.js:90 [Extension Host] botLine: {a: 5, b: '', c: true}
workbench.desktop.main.js:90 [Extension Host] else clause
workbench.desktop.main.js:90 [Extension Host] first range
workbench.desktop.main.js:90 [Extension Host] HLRange: (2) [Array(2), Array(2)]
workbench.desktop.main.js:90 [Extension Host] setting range to: (2) [Array(2), Array(2)]
3workbench.desktop.main.js:90 [Extension Host] updated if enabled= true
workbench.desktop.main.js:90 [Extension Host] setting decorations after delay
workbench.desktop.main.js:90 [Extension Host] Dimming now!
workbench.desktop.main.js:90 [Extension Host] EOF Reached

Sorry @lszomoru , I have found the cause is --depth=1 and --single-branch after when I read https://stackoverflow.com/questions/23708231/git-shallow-clone-clone-depth-misses-remote-branches
When I use git shallow clone, remote branches won't be updated so VSCode would not recognize the branch as published. So the result is that it will constantly ask the user to publish the branch.
I suppose that we should rename this issue as VSCode publish branch behave confusingly after git shallow clone.
Anyone who will run into this situation is mostly not unexpected, so I suggest VSCode at least give some feedback on this case, and not constantly display the publish branch button which would be confusing.
What do you think about it @lszomoru?

@TieWay59, thanks for the clarifications.
I will take a look at this to see if we can improve anything.

Thanks, I'll keep following this issue. ♥


[Bug] - Manage Environments not letting me edit existing environments

Insomnia Version: <IP_ADDRESS>1
Operating System: Macos High Sierra 10.13.1 (17B48)

Details
I have 4 environments. When I click on Manage Environments all I get now is Base Environment, Sub Environments as if there are none. Please help!!!!

See this https://github.com/getinsomnia/insomnia/issues/591#issuecomment-346515327

That should work for you, but I'm going to try getting an official release out early this week.

This fix is now live in the latest stable release 5.12.0


silence of IterationEnd failures

Migrated from rt.perl.org#126163 (status was 'open')
Searchable as RT126163$

I'll try to summarize it here. Since IterationEnd marks the end of a loop, anything that contains it will silently end the loop when it bumps into it.
.say for ["foo",IterationEnd, "baz"] # foo

It does not happen in map, however.


Error on setting handle colour

HI
I keep getting the error :
"  java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.GradientDrawable
at com.turingtechnologies.materialscrollbar.Indicator.linkToScrollBar(Indicator.java:74)
at com.turingtechnologies.materialscrollbar.MaterialScrollBar$2.onLayoutChange(MaterialScrollBar.java:547)
at android.view.View.layout(View.java:16645)"
What am i missing - the code is almost identical to the demo code
Thanks

In the Indicator class it always seems to find Bitmap drawable as the background though it is setting the same one in the demo app as in my app

It's ok i had a duplicate name drawable


HAWQ-629. Insert into table select generate_series free resource too …

…early.
If exception happends, we also need to free the resource in catch.

+1


and version 4.0 will be hivebus? :D

i actually use your config on my mac since version 1 and migrated to version 2 as well.
have you seen https://github.com/tao3k/hivebus ? looks like the successor of hive

Thanks! I will take a look of hivebus.

@luxus I think snowfall lib is a better flake framework for system configurations and modules, which I just found some days ago. And I'm trying to migrate to snowfall. Maybe you want to give it a try too. 😊

I migrated to srid's config just some days ago https://github.com/srid/nixos-config
This hive stuff got way to complex :) thanks for giving me a update

mhh not so happy how the srid config is structured..
i just moved my main desktop to linux (from macOS)
i'm checking out https://github.com/DarkKronicle/nazarick it was a snowfall lib config before and now got based on
https://github.com/ryan4yin/nix-config
i will close this for now :D but i will follow your journey hehe

i will stay with srid/nixos-config after years finally a very good "config framework"


Add action confirmation on "postNewMessage"

Add a popup which asks the user if he/she meant to actually perform the publish action.

This issue is a duplicate which slipped between the cracks because it wasn't linked to this project. Closing it as it already has been implemented.


Client sometimes reports "No block with hash ..." while waiting for valid transaction to be committed

Bug Description
The client waits for transactions to be committed and finalized by default.
If a transaction is valid and eventually included in a finalized block, this waiting behavior should always succeed (as far as I know).
But apparently, that is (no longer) the case.
Steps to Reproduce
Not sure as it happened once while making some smart contract-related transactions.
But it occurred during a contract update.
Expected Result
Transaction '18c2c67d50186e10c017bb911dfafcb33daed9fd9d2b697970533a2d35c65adb' sent to the baker.
Waiting for the transaction to be committed and finalized.
You may skip this step by interrupting the command using Ctrl-C (pass flag '--no-wait' to do this by default).
The transaction will still get processed and may be queried using
  'concordium-client transaction status 18c2c67d50186e10c017bb911dfafcb33daed9fd9d2b697970533a2d35c65adb'.
[13:51:21] Waiting for the transaction to be committed.....
Transaction is finalized into block 9418830e27ad7d557e29dbbe8a260c1e9829ec47641c6a617750ab639922b41a with status "success" and cost 4.639231 CCD (1838 NRG).
[13:51:26] Transaction finalized.
Successfully updated contract instance {"index":4190,"subindex":0} ('fibwasm') using the function 'receive'.

Actual Result
Transaction '617f2c80ba896cce7f8a7ec26102f0f8b70fa3d1c8bfeddbf544985d64e7d521' sent to the baker.
Waiting for the transaction to be committed and finalized.
You may skip this step by interrupting the command using Ctrl-C (pass flag '--no-wait' to do this by default).
The transaction will still get processed and may be queried using
  'concordium-client transaction status 617f2c80ba896cce7f8a7ec26102f0f8b70fa3d1c8bfeddbf544985d64e7d521'.
[14:18:42] Waiting for the transaction to be committed....
Error: No block with block with hash ee758c2aa8b75c5278e953ffbdea3de37bb0c1c94a5de5cd2637dcf00f94853f exists.

Also, the error message here is slightly off. Should have been: No block with hash:.
Versions

Software Version: 5.1.1
OS: macOS 13.2.1
Processor: Apple M2 Pro

The cause of this is that when the transaction gets committed we then try to get schemas in all the blocks in which it is committed.
And some of those blocks might no longer exist since they can be pruned.
We can probably revise getTxContractInfoWithSchemas, where this error is caused, to not fail, but rather to not return the schema in the case it cannot find the block.


'import party from "party-js"' not working in TypeScript

Describe the bug
This does NOT work:
import "./styles.css";
import party from "party-js";
// const party = require("party-js");

export default function App() {
  return (

 party.confetti(e.target)}>Party!

  );
}

This WORKS:
import "./styles.css";
// import party from "party-js";
const party = require("party-js");

export default function App() {
  return (

 party.confetti(e.target)}>Party!

  );
}

The error you get is:
TypeError
can't access property "confetti", _partyJs.default is undefined

To Reproduce
Steps to reproduce the behavior:

Go to https://codesandbox.io/s/nostalgic-breeze-s5uwv?file=/src/App.tsx
Click on the H1 heading
See error

Expected behavior
An error shouldn't happen.  :)
Note, if you change the import to const party = require("party-js"); instead, then it works.
But if I do that my eslint is barking at me. :)
error  Require statement not part of import statement  @typescript-eslint/no-var-requires

Enviroment

[x] Browser
[ ] Node.js
[ ] Other

Additional context
Test and experiment on: https://codesandbox.io/s/nostalgic-breeze-s5uwv?file=/src/App.tsx:56-90
My project where this came up was a Preact-cli TypeScript app but the above sandbox fully demonstrates it too.

Try:
import * as party from "party-js";

I may have forgotten to change that somewhere in the docs, which guide did you follow?
Do you think that the library should use the default export instead?

I may have forgotten to change that somewhere in the docs, which guide did you follow?

I have no idea. Perhaps I assumed.
https://party.js.org/docs/#browser clearly demonstrates the form you suggested.

Do you think that the library should use the default export instead?

Not sure. I know with React you can do import React from 'react' and import * as React from 'react'.
Not sure how that works but it would be nice to get both forms working to avoid confusion like my own.
When I look at my various JS projects that uses modules, the common form is almost always import thing from 'name'.

I know so very little about UMD and all the hacks that poor library-creators have to copy and paste. But, at the moment, I can no longer server-side render my preact-cli and TypeScript project because of the  import * as party from "party-js"; line.
With preact-cli, it can Node SSR render a couple of pages from the single-page-app so that they render a bit faster. The code that actually calls party.confetti(...) is never called during this but the complaint I get is on the import * as party from "party-js"; line :(

I don't know how other projects solve this but perhaps we can find a standard export block blob that we can use.

I'll take a look, maybe I can get both to work without any major tradeoffs. I agree that the following just looks nicer than a wildcard import:
import party from "party-js";

I know so very little about UMD and all the hacks that poor library-creators have to copy and paste.

Me neither actually, the TypeScript compiler handles most of it, but it seems like there's still some stuff left for me to do! :)

But, at the moment, I can no longer server-side render my preact-cli and TypeScript project [...]

SSR was something that I didn't think of at first, and I only stumbled over it while actually writing the docs for the library, as those are a SSR SPA aswell. I actually wrote a fix for it a bit ago (using Lazy<T>s, so the feature set is only activated once used), but it's not deployed to npm yet, since I wanted to wait with the proper 2.0.0 release until #39 and #29 are done.
As a general workaround when using SSR, you can use the following:
let party = {}; // you can mock any calls you might need here.
if (document && window) {
    const party = require("party-js");
}

// lateron you can use the import here, but make sure none of the code is called at SSR time.

If I use require("party-js") my eslint will yell at me :)
But, yeah, I can use that as a desperate work-around for now.

Yeah, I'm sorry for that, I should've thought of it earlier.
I'll try to find time to finish up v2 soon, so you can safely import it using ES6 syntax without having it yell at you! :)