Add HSTS, submit to HSTS preload list

[x] Merge #730
[x] Add the HSTS header
[ ] Submit bootstrapcdn.com to https://hstspreload.org/?domain=bootstrapcdn.com

@XhmikosR is HSTS for the website or the CDN? I think we should consider separating the marketing site from the CDN assets. Thoughts?

This is for the website only.
On Aug 12, 2016 19:29, "Justin Dorfman"<EMAIL_ADDRESS>wrote:

@XhmikosR https://github.com/XhmikosR is HSTS for the website or the
CDN? I think we should consider separating the marketing site from the CDN
assets. Thoughts?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MaxCDN/bootstrap-cdn/issues/700#issuecomment-239493636,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVVtQw-Wjn_atb-9a0ncsqt4kZWqnwtks5qfJ9XgaJpZM4JW8U_
.

@XhmikosR word. damn your fast haha

For reference, I raised a ticket for enabling HSTS on CDN assets: https://github.com/MaxCDN/bootstrap-cdn/issues/750

@jdorfman @jmervine: in order for us to comply with HSTS List Submission prerequisites we need to have both naked and normal domain on the same machine so that we handle the redirect ourselves.
What needs to be done to get things going in that regard?

To add support for the root domain with Heroku, we'll need to setup the dns correctly. There's a Heroku help article on it here...
https://devcenter.heroku.com/articles/custom-domains#add-a-custom-root-domain
Also worth looking at...
https://devcenter.heroku.com/articles/apex-domains

You could speak with Lucas directly to see if they can make an exception to the standard submission process to get you on the preload list with less friction.

@jmervine @jdorfman: Who has access to the DNS site?
I'm not familiar with Heroku and the implications, and generally I just use naked domains (why type more?), but I'm wondering, can't we just add a CNAME pointing to the Heroku IP?
Or otherwise, as @ScottHelme points out, maybe we could bug the HSTS list guys.

Given the size and nature of your site, along with the obvious benefits, I'm sure an exception could be made. Let me know if you'd like a direct intro.

@jdorfman Has the contacts for the DNS changes, I believe. Otherwise, I can bug my contact at StackPath.

@jmervine @jdorfman: so, what do we do with this?

Are you ready to preload? :)

Well, I am but I'm not in control of the www domain myself :)
We really need to solve this once and for all and just comply with the
requirements.
On Oct 14, 2017 15:10, "Scott Helme"<EMAIL_ADDRESS>wrote:

Are you ready to preload? :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/MaxCDN/bootstrap-cdn/issues/700#issuecomment-336630969,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVVtSrCQok8zXsTpgM8JQ7kpdIx6-Wbks5ssKTGgaJpZM4JW8U_
.

@XhmikosR @ScottHelme @jmervine on the fence. I see this possibly affecting SEO which might seem silly, it really isn't because I don't personally pay the bills, in fact, I would be broke beyond belief. I also don't want to bug StackPath to hire an SEO consultant. Bottom line, at this time, the trade-off isn't worth it to me.

This is just wrong. How on earth do you think it affects SEO?

Everything is indexed and linked to www.* If we redirect properly should be fine, if not we lose search rank. I have experienced this in the past, to me I don't think it is worth the risk. If I was paying the bills sure, but I'm not. SEO is an important business value which funds the $30k+ a month needed to sustain this project. Not risking it for HSTS on www.
Willing to revisit this in the future, but now, we have bigger issues.

Again, you do NOT need to change the redirect.
Please don't close this and be serious with security for once.

Maybe I can provide input, I just want to make sure I understand the situation properly.
Using HSTS (with or without preloading) would only have an impact on http:// -> https:// redirects in that they'd never take place as a compliant client would simply not make the http:// request in the first instance. If you're already redirecting http:// -> https:// then there's really no difference in deploying HSTS or preloading.
I'm not sure what the worries around the www.* are, perhaps you could explain those a little more and I will provide some input. Unless I've missed something, which could well be the case, if you're already redirecting all traffic to https:// for the entire domain (inlcluding all subdomains), preloading won't have an impact on SEO.
It might be worth noting that Cloudflare recently deployed HSTS preloading for their CDN too: https://twitter.com/grittygrease/status/925538203330682881

The problem here is that for some unknown reason to me, due to the way things have been set up, the naked domain isn't on the same server as the www domain. Thus we can't do the http://bootstrapcdn.com/ --> https://www.bootstrapcdn.com/ redirect here.
Now, the HSTS site's error, not sure why it happens, it might be this issue or it's a bug somewhere.
At any case, HSTS should be enabled. I can't emphasize this enough how bad is not to use it.
Thanks @ScottHelme for backing me up here.

So basically, the redirect chain currently is:
C:\Users\XhmikosR\Desktop>curl -ILl http://bootstrapcdn.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.12.1
Date: Sat, 25 Nov 2017 16:37:34 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: http://www.bootstrapcdn.com/

HTTP/1.1 301 Moved Permanently
Server: Cowboy
Connection: keep-alive
Location: https://www.bootstrapcdn.com/
Vary: Accept
Content-Type: text/plain; charset=utf-8
Content-Length: 63
Date: Sat, 25 Nov 2017 16:37:21 GMT
Via: 1.1 vegur

HTTP/1.1 200 OK
Server: Cowboy
Connection: keep-alive
X-Hello-Human: Say hello back! @getBootstrapCDN on Twitter
Cache-Control: public, max-age=0
Last-Modified: Sat, 25 Nov 2017 16:37:22 GMT
Accept-Ranges: bytes
X-Frame-Options: DENY
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Download-Options: noopen
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Content-Security-Policy: default-src 'none'; base-uri 'self'; frame-ancestors 'none'; script-src 'self' 'unsafe-inline' maxcdn.bootstrapcdn.com www.google-analytics.com code.jquery.com platform.twitter.com cdn.syndication.twimg.com/timeline/ api.github.com cdn.carbonads.com srv.carbonads.net adn.fusionads.net 'nonce-MjA3ZWQ0NjItZWRiMC00YWY1LWJlNjMtZDAxMTI5ZGRjODYy'; style-src 'self' 'unsafe-inline' maxcdn.bootstrapcdn.com fonts.googleapis.com *.twimg.com platform.twitter.com; img-src 'self' data: www.google-analytics.com bootswatch.com syndication.twitter.com *.twimg.com platform.twitter.com analytics.twitter.com stats.g.doubleclick.net srv.carbonads.net assets.servedby-buysellads.com ad.doubleclick.net *.convertro.com *.c3tag.com *.2mdn.net launchbit.com www.launchbit.com; font-src 'self' maxcdn.bootstrapcdn.com fonts.gstatic.com; frame-src 'self' platform.twitter.com syndication.twitter.com ghbtns.com; child-src 'self' platform.twitter.com syndication.twitter.com ghbtns.com; manifest-src 'self'; report-uri https://d063bdf998559129f041de1efd2b41a5.report-uri.com/r/d/csp/enforce
X-Content-Security-Policy: default-src 'none'; base-uri 'self'; frame-ancestors 'none'; script-src 'self' 'unsafe-inline' maxcdn.bootstrapcdn.com www.google-analytics.com code.jquery.com platform.twitter.com cdn.syndication.twimg.com/timeline/ api.github.com cdn.carbonads.com srv.carbonads.net adn.fusionads.net 'nonce-MjA3ZWQ0NjItZWRiMC00YWY1LWJlNjMtZDAxMTI5ZGRjODYy'; style-src 'self' 'unsafe-inline' maxcdn.bootstrapcdn.com fonts.googleapis.com *.twimg.com platform.twitter.com; img-src 'self' data: www.google-analytics.com bootswatch.com syndication.twitter.com *.twimg.com platform.twitter.com analytics.twitter.com stats.g.doubleclick.net srv.carbonads.net assets.servedby-buysellads.com ad.doubleclick.net *.convertro.com *.c3tag.com *.2mdn.net launchbit.com www.launchbit.com; font-src 'self' maxcdn.bootstrapcdn.com fonts.gstatic.com; frame-src 'self' platform.twitter.com syndication.twitter.com ghbtns.com; child-src 'self' platform.twitter.com syndication.twitter.com ghbtns.com; manifest-src 'self'; report-uri https://d063bdf998559129f041de1efd2b41a5.report-uri.com/r/d/csp/enforce
X-Webkit-Csp: default-src 'none'; base-uri 'self'; frame-ancestors 'none'; script-src 'self' 'unsafe-inline' maxcdn.bootstrapcdn.com www.google-analytics.com code.jquery.com platform.twitter.com cdn.syndication.twimg.com/timeline/ api.github.com cdn.carbonads.com srv.carbonads.net adn.fusionads.net 'nonce-MjA3ZWQ0NjItZWRiMC00YWY1LWJlNjMtZDAxMTI5ZGRjODYy'; style-src 'self' 'unsafe-inline' maxcdn.bootstrapcdn.com fonts.googleapis.com *.twimg.com platform.twitter.com; img-src 'self' data: www.google-analytics.com bootswatch.com syndication.twitter.com *.twimg.com platform.twitter.com analytics.twitter.com stats.g.doubleclick.net srv.carbonads.net assets.servedby-buysellads.com ad.doubleclick.net *.convertro.com *.c3tag.com *.2mdn.net launchbit.com www.launchbit.com; font-src 'self' maxcdn.bootstrapcdn.com fonts.gstatic.com; frame-src 'self' platform.twitter.com syndication.twitter.com ghbtns.com; child-src 'self' platform.twitter.com syndication.twitter.com ghbtns.com; manifest-src 'self'; report-uri https://d063bdf998559129f041de1efd2b41a5.report-uri.com/r/d/csp/enforce
Content-Type: text/html; charset=utf-8
Content-Length: 35135
Vary: Accept-Encoding
Date: Sat, 25 Nov 2017 16:37:22 GMT
Via: 1.1 vegur

OK so you jump from http://bootstrapcdn.com/ straight to https://www.bootstrapcdn.com/ in one redirect. If you want an ideal deployment of the HSTS header in the longer term I'd recommend:
http://bootstrapcdn.com --> https://bootstrapcdn.com -->https://www.bootstrapcdn.com

You'd set HSTS on the 2nd redirect with includeSubDomains to catch all subdomains.
But anyway, I digress, even in the current setup HSTS (and preloading) wouldn't have any impact but you do seem to have a problem in that I can't connect to bootstrapcdn.com on 443 right now:
scott@Middle-Earth:~$ curl -I https://bootstrapcdn.com
^C

scott@Middle-Earth:~$ openssl s_client -connect boostrapcdn.com:443
connect: Connection refused
connect:errno=111

https://securityheaders.io/?q=https%3A%2F%2Fbootstrapcdn.com
Is that supposed to be the case?

It's the same technical reasons that this fails as far as I know.
Everything would be much simpler if we handled all redirects ourselves on one host.

Redirects and splitting across hosts aside right now, that's a pretty big issue. You aren't answering for your bare domain on https:// at all as far as I can see. You really need to fix that and it's a blocker for preloading too.

Unfortunately, it's not something I'm in control of, otherwise the issue wouldn't exist...
Previously it worked with random tools/services being used to make the redirect IIRC. And it was dropped because if I remember correctly, "Who visits the non-www site?". Not my action either.

@jdorfman: can we get this sorted with StackPath too? It's really important that we fix the redirect issue; it's not an issue of SEO.

Added headers and submitted for inclusion at https://hstspreload.org/

Perfect, closing then !


QGB state machine remove invalid validator set check

closes https://github.com/celestiaorg/celestia-app/issues/638

Depends on https://github.com/celestiaorg/celestia-app/pull/645


Feat: Add BackboneLambdaFinetunningCallback

What does this PR do?
This PR adds a Fine-tuning Callback + a new callback on_before_accelerator_backend_setup + update fine-tuning example to use the new Callback. The example was broken and didn't converge.

Fixes # (issue) <- this links related issue to this PR
Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified
[ ] Check that target branch and milestone match!

Did you have fun?
Make sure you had fun coding 🙃

Hello @tchaton! Thanks for opening this PR.

In the file pytorch_lightning/callbacks/finetunning.py:

Line 121:1: E731 do not assign a lambda expression, use a def

Do see the Hitchhiker's guide to code style

Hello @tchaton! Thanks for opening this PR.

In the file pytorch_lightning/callbacks/finetunning.py:

Line 121:1: E731 do not assign a lambda expression, use a def

Do see the Hitchhiker's guide to code style

Looks good to me, I just would also expose the BaseFineTuningCallback as we also expose ProgressbarBase

Looks good to me, I just would also expose the BaseFineTuningCallback as we also expose ProgressbarBase


Windows support

It's mostly working by now, it has been effortlessly updated and should work well with MSys, allowing one to develop and run WRPG on Windows.
 A lot of code should be shared between the Unix and Windows ports.

I know about the code duplication (breaks a lot the DRY pinciple) but as we put down the code organization, it's the closest to what it should have looked like.
I can also see just windows' rules.mk to use sfml's and add a define to make it work.

Yes that could work.


Can Index be made to accept String types?

I've gotten this error a few times while constructing DataFrames on the fly in the ODBC and SQLite packages.
 ERROR: no method Index(Array{String,1},)

Is there a reason Index doesn't accept an array of Strings? My workaround is to try and make sure these arrays end up as ASCIIStrings or UTF8String's, but it crops up every so often when I throw a String in somewhere. Not a major concern, but I just wanted to bring it up, because it's unexpected.

No longer relevant since the move from strings to symbols.


{feat} Adding support to the Create function to override apim service…

Related to the following issue
#203
Since we need to template out the apim service name and replace at deployment time this template would be used the name the file which conflicted with our CD/CI script to find the specific file.

 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.:x: hylander0 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@lucashuet93 I have made the requested changes and ensured the my branch is updated from master.

@lucashuet93 Sure.. Understood. Let me get that feature in and I will update the PR.  Thanks again.


Codec option

option and docs update

Looks good. I am guessing we want to only use msgpack for request persistence in HBase queue?

I think this is improbable, because HBase is used when user is interested in large scale deployment and performance, msgpack provides both. If someone would need JSON, or even some custom format, I believe this is very custom and we shouldn't care about this.


add move to maintenance feature

Add a new button "move to maintenance" which will:

if the engine is configured and running, call the REST call
if not, show a big warning and gently turn all the VMs running on the host off

Implemented


Number of gaps allowed for stream receive window is too small

As of #244, the maximum number of ranges that is retained by quicly_ranges_t is limited to 63. When the number of ranges goes above that threshold, the connection blows up.
It was our assumption that we would never see that much of gaps in practice. I think that the assumption has been incorrect.
When I run a quicly/cli server on my linux box connected to my MacBook through a 1Gb ethernet link, then run a client with these options -M 16777216 -p /500000000 (i.e. stream-level flow control window=16MB, request object=500MB), I repeatedly see the connection closed due to the number of gaps on the stream receiver side exceeding the limit.
One likely scenario that we are hitting is as follows:

During slow start, CWND builds up to something like 200*MTU.
The server emits 400 packets or something in one RTT.
When the bottleneck of the path is capable of only forwarding 200 packets, 200 packets are lost.
This loss can be distributed randomly within the 400-packet window, that ends up in the receiver  having more than 63 gaps.

The event log of the error case (taken on the receiver side) can be found here.

Looking back, I think the correct solution is to set the maximum number of gaps relative to the stream-level receive window.
Receive window represents the amount of memory that can be allocated for reassembly. There is no problem in capping the maximum amount of memory used by quicly_ranges_t relative to the window size.
Maybe a equation like max_gaps = max(63, receive_window_in_bytes / 1024) would be a good idea. This allows one gap per every 512 bytes being sent, and the maximum memory associated to quicly_ranges_t would be 1.5625% of the receive window (i.e. 2 * sizeof(uint64_t) / 1024).
We also need to think what to with the maximum number of gaps on the send side. Maybe the right answer here would be to have no limit, as the size of quicly_ranges_t would be relative to  the amount of stream data provided by the application.

We also need to think what to with the maximum number of gaps on the send side. Maybe the right answer here would be to have no limit, as the size of quicly_ranges_t would be relative to the amount of stream data provided by the application.

Thinking a bit more, I am tempted to reconsider this.
Consider the case of an attacker sending many MAX_STREAM_DATA frames (or MAX_DATA) frames, each of them providing one byte of additional window. When the peer acts as such, quicly would emit packets, each of them carrying a STREAM frame with one byte of data. Then, if the attacker acks every one of two packets being sent by quicly, we'd end up with a quicly_ranges_t with as many gaps as 2 / send_window_size.
Maybe the correct answer here would be to merge the ranges when the number exceeds certain threshold. The send buffer API of quicly does not have the concept of gaps, and therefore quicly can always ask the application to retransmit data behind the first gap.

Discussed with @janaiyengar, we will limit the number of stream-level gaps that we retain as the sender.


[go_router_builder] : Cannot work with Go router 14.2.9 +

Steps to reproduce
Define a route with child route . all child route contains '/' in their path
ex: "/abc", "/edg"
Expected results
.g.dart file cannot generate correct path for child
Actual results
generate correct path
Code sample
Code sample

TypedGoRoute<ProfileRoute>(
          path: "/profile",
          routes: [
            TypedGoRoute<SettingRoute>(
              path: "/setting",
              ....

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.5 23F79 darwin-arm64, locale vi-VN)
    • Flutter version 3.24.3 on channel stable at /Users/hieucg/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (4 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/hieucg/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = /Users/hieucg/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.15.2

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.94.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.98.0

Hi @CaoGiaHieu-dev
I am using package's simple_example with modified FamilyRoute path as below but I see the generated path is expected:
@TypedGoRoute<HomeRoute>(
  path: '/',
  name: 'Home',
  routes: <TypedGoRoute<GoRouteData>>[
    TypedGoRoute<FamilyRoute>(path: '/family/:familyId')
  ],
)

RouteBase get $homeRoute => GoRouteData.$route(
      path: '/',
      name: 'Home',
      factory: $HomeRouteExtension._fromState,
      routes: [
        GoRouteData.$route(
          path: '/family/:familyId',
          factory: $FamilyRouteExtension._fromState,
        ),
      ],
    );

Please also try the same example and confirm this. If the issue only appears on your code, please provide a minimal sample code. Thanks!

@huycozy  it still get error on my side
Here my example
Router path
static const profile = '/profile';
static const setting = '/setting'; // this getting error

Router define

@TypedStatefulShellRoute<DashboardRoute>(
  branches: [
    TypedStatefulShellBranch(
      routes: [
        TypedGoRoute<ProfileRoute>(
          path: Routes.profile,
          routes: [
            TypedGoRoute<SettingRoute>(
              path: Routes.setting,
            ),
          ],
        ),
      ],
    ),
  ],
)

Result when using setting

Result when using /setting

Thanks for your update. I see you are using StatefulShellRoute instead and it seems your routes are nested.
What is the expected result? Do you mean the location on setting route should be /profile/setting? (the actual and expected results in the original comment is reversed btw)
Can you please leverage package's stateful_shell_route_example and share a complete updated sample code here so that others can quickly review and address this further? Thanks!
Please provide the info in text/code blocks format instead of a screenshot for better readability and investigation, see avoid posting screenshots of text.

@huycozy  https://github.com/CaoGiaHieu-dev/go_route_issue please check this

Thanks for providing a complete sample code. I can reproduce the issue now. This seems to relate to 14.2.9 change: Relaxes route path requirements. Both root and child routes can now start with or without '/'.

go_router_builder was not modified by that change, maybe it needs to be upgraded as well if support for child paths starting with / is needed in go_router_builder too.


Project status

Hello,
Thanks for this very useful project. Last commit was done last year, is it still maintained ?

as it's been over 2 years since the last commit I'd assume this project is essentially unmaintained; whether that will change is yet to be seen

nevermind, looks like there was activity the other day


Pub: Expected a key while parsing a block mapping. path:

My pubspec.yaml contains this:
name: Name1
version: 2015.10.20
dependencies:
test: ">=0.0.0"
Name2: ">=0.0.0"
path: ../Name2-2015-10-21
And I get this error:
Error on line 6, column 5 of pubspec.yaml: Expected a key while parsing a block mapping.
path: ../Name2-2015-10-21
^
I get no error if I remove the version constraint for the Name2 package:
name: Name1
version: 2015.10.20
dependencies:
test: ">=0.0.0"
Name2:
path: ../Name2-2015-10-21

Can you please enclose the yaml content in triple-backticks (`). Formatting matters for yaml.
You can't have a path and a version constraint.

This issue was moved to dart-lang/pub#1347

please find a solution here Flutter Pub: Expected a key while parsing a block mapping. path:

@sovoereign that link doesn't point anywhere useful

Spaces are significant in YAML
assets is indented too far
You Can Find Your Solution at Here


Not able to show Place holder along with default date.

When we set default date the place holder will no show.

Same for me... Why does nobody reply?

This problem still exists


Investigate the test failure https://github.com/chromedp/chromedp/actions/runs/1547690849

What versions are you running?
$ git describe --tags
v0.7.6-2-g875d6f4
$ google-chrome --version
chromedp/headless-shell:96.0.4664.93
$ go version
1.16.10

What did you do? Include clear steps.
The  following step failed in github actions. See https://github.com/chromedp/chromedp/actions/runs/1547690849
docker run \
  --rm \
  --volume=$PWD:/chromedp \
  --entrypoint=/chromedp/chromedp.test \
  --workdir=/chromedp \
  --env=PATH=/headless-shell \
  --env=HEADLESS_SHELL=1 \
  chromedp/headless-shell:latest -test.v

What did you expect to see?
The tests pass.
What did you see instead?
The tests never stopped, and I have to cancel it manually.

I have tried chromedp/headless-shell:95.0.4638.69 and there is not issue. It turns out that chromedp/headless-shell:96.0.4664.93 needs more CPU resource, and it will fail when there is not enough CPU resource. Github hosts Linux runners with this hardware specification (see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources):

2-core CPU
7 GB of RAM memory
14 GB of SSD disk space

I have reproduced the issue on my local machine by limiting the available CPUs (maybe you have to adjust the value according to your hardware specification):
docker run \
  --rm \
  --volume=$PWD:/chromedp \
  --entrypoint=/chromedp/chromedp.test \
  --workdir=/chromedp \
  --env=PATH=/headless-shell \
  --env=HEADLESS_SHELL=1 \
  --cpuset-cpus=0,1 --cpus=0.8 \
  chromedp/headless-shell:96.0.4664.93 -test.v

Note: compile the test binary in advance with: CGO_ENABLED=0 go test -c.
It seems that there is a performance regress in the Chromium project. I will send a PR to reduce the parallel execution of test functions as a workaround.


Provide ordering to configuration settings

Hydrogen has grown to the point where there are 14 configuration settings. Currently, no ordering is provided, so I think they're ordered alphabetically in terms of the config key. I think this is more confusing than it has to be for users.
This PR attempts to group settings logically and then order them with the order value in the dictionary. The idea is "general settings" then "output settings" then "kernel settings", and within each ordered by most used to least used.
The order is:

autocomplete
showAutocompleteFirst
statusBarDisable
debug
autoScroll
outputAreaDefault
outputAreaDock
outputAreaFontSize
globalMode
kernelNotifications
startDir
languageMappings
startupCode
gateways

If you are still up ping me on slack real quick @kylebarron, I can help you get this rebased cleanly. We could do that tomorrow if you are out for the night.


Browser tags font are considered components, [Vue warn]: Failed to resolve component: font

Version
3.1.5
Reproduction link
https://codepen.io/you227/pen/vYmqKGO?editors=1111
Steps to reproduce
Browser tags font are considered components, [Vue warn]: Failed to resolve component: font .
浏览器标签 font 被认为是组件, 然后提示：[Vue warn]: Failed to resolve component: font
What is expected?
Should not prompt
What is actually happening?
Browser tags font are considered components

This is a deprecated element that you really should not use.
If you have to, configure it as a custom element like documented here (see compilerOptions.isCustomElement)
https://v3.vuejs.org/api/application-config.html#compileroptions


Update expiring cards dates and add reminder

References opencollective/opencollective#2940
Just a small change:

Change date to 7th/21st for emails
Adds reminder case to code and to email template

Tested locally and once you update your credit card after the first email, it means you won't get the reminder email during the second run, so no extra code is needed.
Let me know if there are any changes needed and if not, I can move it back to the cron/monthly folder.

Let's merge like that and send the next batches manually.
We'll then activate the job if everything goes well.


Linked accounts doesn't work

Issue Type: Bug
I'm trying to see what Linked accounts does. After I fill in de code on the website, I get the message "Error: Entry not found in cache." in Azure Data Studio.
Azure Data Studio version: azuredatastudio 1.2.4 (1ebfd0235690ad044ed2874a02e65188f5fea01c, 2018-11-02T21:50:52.634Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
7.88GB (1.52GB free)

Process Argv
C:\Program Files\Azure Data Studio\azuredatastudio.exe

Screen Reader
no

VM
0%

Extensions: none

We're tracking this problem with issue https://github.com/Microsoft/azuredatastudio/issues/545.  Thanks for reporting.  We'll take a look and try to figure out what's happening here.


[add] Tzdata to configure timezone on build

Added tzdata which is needed in alpine to configure the timezone based on the docker built in TZ env otherwise the cronjobs run in UTC even when the TZ env has been set
Example usage
docker run -d --name crontab-ui -p 8000:8000 -e TZ=America/Mexico_City alseambusher/crontab-ui:latest

Thanks for the contribution :)

TZ is set but not honored using exact docker command above.
/crontab-ui # echo $TZ America/Chicago


the python's content type should be an enum

Enums are clearly much better than strings (most of which currently come out from the config files). And, essentially, having enum will avoid all the problems we found in existing tools (typos in output format, small variations in output format, typos in MIME types, etc.).
I already have an half-working implementation on this, so I'll take the first stab.

Addressed in new release.


PDF template : important yet simple enhancements needed

In the PDF template  we should

add the publication date and the last compilation date in the PDF template
add the DOI in the final publication  (using published/draft yaml keys)
add a link to the github repository

fixed since commit  d3c5cfd


[Bug]: Logic for ascending sort order on table column for number type dataset is incorrect

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Logic for ascending sort order on table column for number type dataset is incorrect
Steps To Reproduce

Go to sample app attached and sort the order or the first column
Observe that sorting happens based on the first digit and so it goes like, 1, 10, 11, 12.....2, 21, 22,....3, 31 and so on. Not 1, 2, ,3... and so on

Public Sample App
https://app.appsmith.com/applications/63b3ecd95b7acd601d97d319/pages/63b3ecd95b7acd601d97d339?pod=FE Coders Pod
Issue video log
https://www.loom.com/share/e214a65819784e189937fd0c7dd46ea5
Version
Cloud

Affects end user directly, To a point sorting becomes useless. Setting as high.

Hi its seems to be performing a lexicographical sort on the id column value. Can you please change the column type from text to number, then it should sort the rows correctly.


Operator validation library project proposal

Please let us know your thoughts!
FYI @dweepgogia is the intern working on this project this summer
/cc @estroz @ecordell @jpeeler @tkashem

/cc @ecordell @jpeeler @tkashem @njhale @alecmerdler

To review the progress so far, please see this PR: https://github.com/dweepgogia/new-manifest-verification/pull/3.

The doc looks good. I would like to see discussion of how versioning will be handled before merging this. @ecordell correct me if I'm wrong but CSV versions don't change (often) but fields/requirements do within the same version. We could simply enforce whatever field requirements a version, ex. v1alpha1, has at the time.

@ecordell we can get started on those points you raised. Should we just add those to the doc itself?
Just to clarify on 1), it's more important to us that we enable developers to easily write a CLI than actually writing the CLI ourselves if that makes sense. Do you think we should include such a CLI in the OLM code base as well or are you suggesting this for the purposes of flushing out requirements for the library's apis?

@estroz @ecordell @njhale @jpeeler @tkashem @alecmerdler - Please review. Thanks!

@dweepgogia Is this PR still valid?

@dweepgogia Is this PR still valid?

Yes, it is. You can take a look at the  fake readme section to get a sense of how the final cli interface/apis would look like.

/lgtm
Sorry for the delay!


command prompt

Just to run from visual studio, in project properties tab debugger
put --count 1000 --initial One or --count 1000 --initial Zero in application arguments.
else
menu tools -->command prompt
[Enter feedback here]

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

ID: a93695b8-e683-f357-7a64-6a9420641aae
Version Independent ID: e2ac33fb-fb98-45b0-cd6c-23b3e57c0fb8
Content: Explore entanglement with Q# - Azure Quantum
Content Source: articles/tutorial-qdk-explore-entanglement.md
Service: azure-quantum
Sub-service: qdk
GitHub Login: @Bradben
Microsoft Alias: v-benbra

Hi @marco402. Could you be more specific? What is the issue or comment of yours about this page?

Hi Sonia
My message was just to clarify the documentation on the page to launch the program:
by the method specified by specifying menu tools -->command prompt
or by the arguments in project properties->tab debugger zone application arguments
--count 1000 --initial One or --count 1000 --initial Zero
Marc

@marco402 The thing is you can run this program using any IDE of your preference (Visual Studio, Visual Studio Code, Jupyter Notebook, etc) and .NET CLI language, and each environment has different features when it comes to running the code.
This is why the documentation only tells that you need to specify count and initial arguments from the command prompt, but no further details as those will depend on the chosen environment.


Keyboard navigation not working

Issue Type: Bug
Steps to reproduce:

Open Explorer panel
Click anywher inside Explorer panel
Type characters of a file you know exists

Expected result:
Highlight the file in the tree
Actual result:
Apparently random file highlight.
This happens with and without extensions enabled.

Apparently random file highlight.

What does this mean?

@kieferrm Can you point me to instructions on how to do that, please?
@joaomoreno Sorry, my bad use of words - I mean that when I search for (say) "mail" I see the folder "templates" highlighted.

I guess that's because "templates" contains both "m" and "a"?
Also, if I search for "api" nothing gets highlighted:

However, if I then click the filter I see only the "bootstrap" folder and the "routes" folder - where the latter actually contains "api.php":

With this:
a) it would be better if the tree opened to show all instances of "api" files/folders,
b) I don't see why "bootstrap" folder is shown and not "app" too, unless it's because "bootstrap" has "ap" with nothing after it, whereas "app" is clearly not "api" - either way, I wouldn't expect either of them to show!
Thank you both for your follow-up though.

Got it, closing it as a duplicate of #66971
This feature won't change any collapse states. It will also not recurse into unexplored folders for now. We need to polish this feature in the explorer.


Packer introduction.

WIP DO NOT MERGE
Packer (packer.io) is used to create SWAN cached image.
Fixes issue ...
Summary of changes:

Testing done:

@st4nson - how can I use Packer JSON file?

@iwankgb README.md will describe everything.

@st4nson any chance to add it? There is also a need to update the branch from master.

Closing stale PR.


Ability to change or add to site title for tab names/etc.

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
UI Feature
🔖 Feature description
Ability to set the title of the site.  I'd like to at least be able to say "Uptime Kuma - Virginia", "Uptme Kuma - Home", etc.
✔ Solution
I'd like to be able to set the site title to clearly identify separate instances more than just looking at the URL.
❓ Alternatives
No response
📝 Additional Context
I did see another issue submitted where someone was asking to rename the entire site due to the 'Kuma' having an unfortunate translation, but this seems like a more narrowly focused request.

Hey @nneul I am working on this feature, i have done it for the home, dashboard. You want title for all the pages including main pages and nested / child pages like for example settings page we have child page like general appearance etc or you want only for the main pages.
You can see the title is it fine ?

I'm actually less asking for the 'functional tab title labels', but rather more for "I have TWO instances of Kuma, and I can't distinguish between them."
Example in slack notices these two alerts are from two different locations (I've got one at home, and one on a free Oracle cloud instance) to measure from outside and inside.

Yes, I could define two separate slack applications with different names, but much of the content within that is determined by the instance. And here is what I get in my browser when I open them up:

The only distinguishing mark is the URL.

Something like a:
  Site Name: [Uptime Kuma]

Config setting in Apearance, where that would be used in the page titles, notifications, etc. Or if you wanted to "protect branding", have it be something that is just prefixed/suffixed to the site name, like "Site Instance: [US West]", which would cause the titles and notifications to show:
 Uptime Kuma [US West]

or
[US West] Uptime Kuma

Please note - I like your addition of including the functional tab titles, just not the specific use case I was targetting.

Assign this to me . I want to work on this

We don't assign issues to people.
PRs welcome, here is our contribution guide: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

@CommanderStorm #5479  - feedback would be highly appreciated on the general approach/etc.

Screenshots from #5479


Doesn't work on Laravel Vapor

For some reason this isn't working on Laravel Vapor
The below error occurs during bucket creation:
{     "message": "Error: The authorization header is malformed; a non-empty Access Key (AKID) must be provided in the credential.",     "context": {         "aws_request_id": "e16b9054-cf45-58fb-aead-cab8f3dca600"     },     "level": 400,     "level_name": "ERROR",     "channel": "staging",     "datetime": "2022-05-04T08:33:44.397223+00:00",     "extra": {} }

config('filesystems.disks.s3.key') returns null when creating the bucket. Tested via console command. Works on local server but not on Vapor.

    $this->credentials = $credentials ?? new Credentials(             config('filesystems.disks.s3.key'),             config('filesystems.disks.s3.secret')         );
Needs to change to
       $this->credentials = $credentials ?? CredentialProvider::env();
In tenant-buckets\src\Bucket.php

I'm currently using my version on 3 different laravel vapor instances. Working a charm. I have changed the namespace to my own, and also made a few other changes such as setting appropriate CORS permissions on buckets (as on serverless you have to stream large files to S3 which requires adequate CORS permissions set).
Happy to do a merge or branch this off to my own package, as I have further changes to make which kind of make this more of a specialist package for Vapor users.
Let me know your thoughts.

I'm currently using my version on 3 different laravel vapor instances. Working a charm. I have changed the namespace to my own, and also made a few other changes such as setting appropriate CORS permissions on buckets (as on serverless you have to stream large files to S3 which requires adequate CORS permissions set).
Happy to do a merge or branch this off to my own package, as I have further changes to make which kind of make this more of a specialist package for Vapor users.
Let me know your thoughts.

Can you please create a PR if you have a working solution? Many thanks!


Add amending-commits.md

This could help people improve their commits after tests or code reviews complain about them.

@chriscool this is very good +1. couple of comments, otherwise LGTM

Similar external-to-IPFS docs that we may want to consider pointing to
instead:

The maintained-in-git.git guide 1.
The embedded-in-git-scm.com book 2.

thanks @chriscool !


new dataset type and refactoring offline part of interactive_learning_approach

I think this is mostly done, but I may have discovered a bug in interactive_learning_approach that I want to clear up before we merge (checking with @amburger66 offline if my understanding is correct).

confirmed the bug; fixing in #377


Added completeContact, updated package.json to ready for publishing to NPM

Issue #, if available:
Description of changes:

completeContact added
merged w/ internal streams
package.json fields added, including "engines", "directories". Path version changed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Going to update this with the showcase file removed.

This fixes https://github.com/aws/amazon-connect-streams/issues/188.


🐛 A PR with tests to show how transition defined

at abstract class can have problems with at the child models

@kmmbvnr I created this PR it has a test case that shows how I am using django-fsm. I am unsure if this usecase is within scope.
Essentially, the FSMField's state_choices are defined at the child models.
The transition method is defined at the parent abstract model.
When the transition occurs, the state is correctly changed but the wrong proxy was selected.
If I define the transition method at the child model, the situation won't occur. Of course this means repeated definition. Which is not ideal.
let me know how I can make this error more clear via the test cases.


SPM fails to install release 3.0.6 in Xcode 14

STR:

In a new Xcode project, add DittoSwiftPackage; set Dependency Rule to  4.0.0 - Next Major
add DittoSwiftTools; set Dependency Rule to 3.0.6 - Next Major

OBS:
SPM fails to resolve
EXP:
SPM installs DittoSwiftTools v3.0.6 for Dependency Rule 3.0.6 - Next Major

@magicwave can you try 3.0.0? Looks like the tag is 3.0.0 in github releases, despite the heading saying 3.0.6

@magicwave can you try 3.0.0? Looks like the tag is 3.0.0 in github releases, despite the heading saying 3.0.6
Fails for 3.0.0 also

Turns out it is a github configuration issue on my machine. @kndoshn helped by verfiying 3.0.0 - Next Major works on his machine. Closing as "not a bug".


After MM runs for >24 hours, MMM-wiki begins pulling multiple articles per second

After I leave MagicMirror on for >24 hours (haven't been able to pinpoint an exact time at which this starts happening), it appears my update Interval (currently set at one minute) gets bypassed and updates start occuring very frequently, to the point where a snippet isn't even fully loaded before the next one is displayed. This is fixed by stopping and restarting MagicMirror.

See attached video.

See attached video.

Late, but I have a similar issue. In my case - I'm using the pages plugin, and a PIR to suspend the plugins if no one is around - I think it has to do with the used interval. I replaced it with a timeout and so far it seems to avoid multiple clashing calls, when the plugin shows up again.

shin10, can you elaborate on what you exactly did to avoid this problem?

You can have a look at my fork here: https://github.com/mihairinzis/MMM-wiki/compare/master...shin10:MMM-wiki:master
It's working well for me but I hadn't created a pull request, yet, due to the "complexity" of my MM configuration (actually I can't remember why). ;)
I'll do so if you can verify it solves the issue in your setup as well.

Thanks, I will try and report back in a few days from now.

I brought about the changes in the MMM-wiki.js file and restarted. It now fetches two articles and then displays the last one for the given period. I'll wait for another 24h to see if it stays that way.

I am sorry to report that this change did not work well for me. Two times restarted and two times a crash after about one hour. I will revert to the old version that kept working for longer :-)

Strange. Just out of curiousity: have you also removed the setup function like I did? I ask because I don't think two articles should be fetched at startup like you mentioned before.

Hmm, I'm not sure what you mean. I use the standard setup from which I remove the center message (Hello Sexo or so) and switch to Dutch. How do I proceed to now have in the center the wiki messages?
My system is experimental, RPi4 with standard installation. I can do whatever you want me to try as long as it can be done in that environment.

Sorry, I referred to the start function in line 195

Yes, I did.

To be specific, I used the file here.


Create 2021_08_17_120402_alter_translations_table.php

To resolve the problem mentionned here :
https://github.com/the-control-group/voyager/issues/5427

Not sure if I'm wrong, but the translations table references a lot of stuff, not only data_rows.
So when I have an item for any model with the same ID of a data_row and I delete that entry, a random data_row will be deleted.

this is a one way cascading. data_row deletation trigger the deletation inside translations
but if a translation is deleted (by example through a menu_item deletation) then it won't cascade in data_rows
i did a test, everything look fine.

this part should be removed but i can't reedit the file
DB::table('translations')->whereNotIn('foreign_key', DB::table('data_rows')->select('id'))->delete();
this should be replace with something like this
        // to avoid the Illuminate\Database\QueryException :
        // Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
        Schema::disableForeignKeyConstraints();

        Schema::table('translations', function (Blueprint $table)
        {
            $table->foreign('foreign_key')->references('id')->on('data_rows')->onDelete('cascade');
        });

        Schema::enableForeignKeyConstraints();

i think i have found a better solution, some i will close this one

see here now :
https://github.com/Ronan-Lenor/voyager/commit/e6d6c80cb9b660973aa1ac8f667de407d1127620#commitcomment-55720069


Cleanup backend package

Only api that must be exported should be. Only api that must be in the backend package should be, the rest should move to a sub-package.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2174197-cleanup-backend-package?utm_campaign=plugin&utm_content=tracker%2F282001&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282001&utm_medium=issues&utm_source=github).

Any other action items for this?

Not sure, but if there is, lets open up separate issues for any remaining items.


Lifecycle Configurations in Shared Spaces

Hi,
I've configured my user profile with a default KernelGateway lifecycle configuration and I was expecting it to run when launching a notebook from a Shared Space that uses that user profile.
I can see it runs and it's available when launching a Studio instance directly from the user-profile but when launching a Shared Space the "Start-up scripts" dropdown is empty.
Is this by design?

Hi, shared spaces don't support LCC scripts yet. Keeping this open to track it as a feature request.

Hi, the settings (including LCC) are separate for shared spaces vs user profiles so I believe this is by design.
Currently in the AWS Console I see the Domain > Environment tab has a "Lifecycle configurations for personal Studio apps" section where personal LCCs can be configured across the domain; and from each user profile's detail page we can click Edit to configure LCCs for the specific user. However, I don't see any equivalent for setting LCCs for specific spaces or across all shared spaces on the console.
Therefore I believe you'll need to follow a similar process to what we had to for personal user LCCs before the console UI became available: Use the UpdateDomain and/or UpdateSpace APIs to include your LCC in the LifecycleConfigArns of the domain (DefaultSpaceSettings) or space (SpaceSettings) - and configure it to run by default by setting it under DefaultResourceSpec.
Because this Update* process involves merging the old and new configurations (to avoid losing any settings), I usually preferred to do it in Python rather than shell script... With a process something like (untested example for all spaces at domain level):
import boto3
smclient = sess.client("sagemaker")

DOMAIN_ID = ...
SCRIPT_ARN = ...

domain_desc = smclient.describe_domain(DomainId=DOMAIN_ID)
default_settings = domain_desc["DefaultSpaceSettings"]

# The sub-objects may not exist if no LCCs were set up previously:
if not default_settings.get("JupyterServerAppSettings"):
    default_settings["JupyterServerAppSettings"] = {}
if not default_settings["JupyterServerAppSettings"].get("LifecycleConfigArns"):
    default_settings["JupyterServerAppSettings"]["LifecycleConfigArns"] = []

default_scripts = default_settings["JupyterServerAppSettings"]["LifecycleConfigArns"]
if SCRIPT_ARN not in default_scripts:
    print(f"Adding script:\n{SCRIPT_ARN}")
    default_scripts.append(SCRIPT_ARN)
    smclient.update_domain(
        DomainId=DOMAIN_ID,
        DefaultUserSettings=default_settings,
    )
else:
    print("Script already default on domain:\n{SCRIPT_ARN}")

I was previously thinking it might be a good idea to get a proper tested example of this kind of helper script in this repository... But hadn't prioritised it because the Console UI made it easier. Seems like it might be worth revisiting if we still don't have a UI experience for attaching Spaces scripts yet


VpcConfig Parameter Store Issue

Description:
Hello everyone, I found an issue using SubnetIds in VpcConfig section, I set the parameter as:
Sam parameter:
[...]
  VpcSubnetIds:
   Type: String
[...]

Sam code:
[...]
    VpcConfig:
      SubnetIds: !Split [",", !Ref VpcSubnetIds ]
[...]

I don't have problem If I use the value from .json parameter file (I'm using CodePipeline for deploying)
Json file:
{
    "VpcSubnetIds" : "subnet-002f74fddcde6a9b3,subnet-023566b4a79efe445,subnet-0a1eec1f6665bef5a"
}

But I have problems if I get the value from Parameter Store
Json file:
{
   "VpcSubnetIds" : "{{resolve:ssm:VPC-PrivateSubnetsList:1}}"
}

Parameter Store:
VPC-PrivateSubnetsList |  String | subnet-002f74fddcde6a9b3,subnet-023566b4a79efe445,subnet-0a1eec1f6665bef5a
Error occurred while DescribeSubnets. EC2 Error Code: InvalidSubnetID.NotFound. EC2 Error Message: The subnet ID 'subnet-002f74fddcde6a9b3,subnet-023566b4a79efe445,subnet-0a1eec1f6665bef5a' does not exist (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: fbead152-2fbf-11e9-8f01-f76923a568f3)
I've tried using CommaDelimitedList in cloudformation parameter section and to save the parameter as StringList but I have the same issue.
Any opinion?. Thanks

This does not sound like a SAM issue. Please try StackOverflow for questions like these.

Hii, I am facing same issue. @bleiva did you find any solution?


Stuck at "Downloading course information ..."

It seems there Udemy has been doing some sort of changes where you can't download videos like you should anymore. I get the Downloading course information .. | that is stucked.
Please fix this!

you should use --skip-hls switch to avoid fetching hls based streams

hope the above solution solved your problem going to close.


Fixed XSD location in ErnParserController

When setXsdValidation called the following PHP Warning would be thrown:
PHP Warning:  XMLReader::setSchema(): I/O warning : failed to load external entity "xsd/release_notification/382/release-notification.xsd" in */../src/Controller/ErnParserController.php on line 683
This is because the path wasn't valid and needed to drop back a couple of directories, so I changed this to use a relative path, which broke the tests because the path in the test was wrong as an update. I updated the tests to make 2 assertions, one for the test each side of the dynamic part.

Hey @onelazydev , I reviewed this and I approve. It's better this way indeed, thanks.


On Exception only log the email ID at error level and log the whole email at trace level

Only log the whole contents of an Email object on trace log level instead of error. Otherwise the whole email is printed to the logs, which can blow up the amount of logs quite a bit for services sending emails automatically.
Alternatively, the Email.toString() method could be changed to actually not put in all the contents of text/html bodies.

Released in 6.4.4.

You mention only size of logs here. Please let me raise the awareness that this was also quite a serious breach in data confidentiality. In my company, we are not allowed to log personal data (except under very special circumstances), and a whole e-mail naturally contains quite a lot of possibly sensitive data.

Agreed. You could still still suppress this logging using regular log config, but that would have been a workaround. Now this is fixed at the core.


Exclude types from docs who are in nodoc namespaces

Fixes #9816
Also handles a TODO that drops support for nodoc, without colons.

Thanks @Blacksmoke16


Consider using the GitHub Container Registry to store artifacts

The current artifacts are limited to 10gb total per repo and need to be cleaned manually or configured with an expiry.
https://github.com/product-os/node-oci-registry-client could be used to store the versioned source in a registry instead.

Artifacts are now set to expire after 24 hours, so this is not as urgent as before.

Tom has a nice wrapper library with simple push and pull functions: https://github.com/product-os/transformers-core/blob/master/lib/registry.ts


Deprecated options in the concurrent-ruby library

1.0.2/lib/logstash/sized_queue_timeout.rb:15:in initialize' [2015-07-28 09:52:15.968] WARN --
Concurrent::Condition: [DEPRECATED] Will be replaced with Synchronization::Object in v1.0. called on:
/opt/logs/logstash-1.5.3/vendor/bundle/jruby/1.9/gems/logstash-input-lumberjack-1.0.2/lib/logstash/sized_queue_timeout.rb:16:ininitialize'

This warning is show in the Logstash 1.5.3 release.
Taken from https://github.com/elastic/logstash/issues/3657#issuecomment-125477193

fixed in latest 1.0.5


[FEATURE REQUEST] Prepare for upcoming breaking change in Flutter's build directory layout

:speech_balloon: Description
In a future release, Flutter Window's build directory layout will change. This will enable Windows Arm64 support. See: https://flutter.dev/go/windows-arm64
Current layout: ./build/windows/runner/<mode>/<app>.exe
New layout: ./build/windows/runner/<mode>/<architecture>/<app>.exe
Example using new layout: ./build/windows/x64/runner/Release/gallery.exe
This is a breaking change. For example:
https://github.com/YehudaKremer/msix/blob/0b38499a49e59e9169dcf2adfa546924e7e35615/lib/src/configuration.dart#L24-L25
If possible, package:msix should support both the "old" and "new" layout while the Flutter Windows community migrates to the new build layout. Please let me know if you have any questions about this change! /cc @pbo-linaro.
:question: Platform
Windows

Hello @loic-sharma
No problem, I will add support for this.

That was fast! Good work.
We'll keep you updated when the PR is about to be merged.


Latest update just broke everything.

VSCode Version: 1.49.2
OS Version: macOS 11

Errors on launch:

The JSON Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.
failed to run "/usr/local/bin/go version"
Git installation not found.
The TypeScript language service died 5 times right after it got started. The service will not be restarted.

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

Nah nevermind it works now. I guess that's what happens when you write an editor in a web language.
Utter chaos.


[DoNotMerge] Disable SIL debug scope verification for deabstraction.

Debug scope verification was enabled by default in https://github.com/apple/swift/commit/f917c9355764dc6d9308ccf2801776c62e032612.
This caused verification errors as a result of performance inlining during deabstraction.
Eventually, the verifier should be enhanced to handle inline call sites.
Until then, debug scope verification will be disabled.
Addresses SR-8114. Undoes incomplete workaround in https://github.com/apple/swift/pull/17797.
Currently, since debug scope verification is enabled, any Tensor program compiled with -Onone fails verification.

@swift-ci Please test tensorflow

Without this patch, test/TensorFlow/debug_scope fails with:
swift/test/TensorFlow/debug_scope.swift:9:27: error: array input is not a constant array of tensors
  let x: Tensor<Float> = [[1, 2], [3, 4]]
                          ^~~~~
swift/test/TensorFlow/debug_scope.swift:9:35: error: array input is not a constant array of tensors
  let x: Tensor<Float> = [[1, 2], [3, 4]]
                                  ^~~~~
swift/test/TensorFlow/debug_scope.swift:9:26: error: array input is not a constant array of tensors
  let x: Tensor<Float> = [[1, 2], [3, 4]]
                         ^~~~~~~~~~~~~~~
swift/test/TensorFlow/debug_scope.swift:10:9: error: attribute 'transpose_a' requires a constant argument
  print(matmul(x, x) + x)
        ^~~~~~~~~~~~

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

@lattner Unfortunately, test/TensorFlow/deabstraction_finished.swift crashes when -O is removed. I documented the crash at SR-8369.
I think it's reasonable to stage changes: once deabstraction_finished.swift is passes with -Onone,  test/TensorFlow/debug_scope.swift should be removed.

@rxwei Filed a bug for re-enabling debug scope verification: SR-8369.


Is there any way to auto refresh JWT access_token ?

Is your feature request related to a problem? Please describe.
Dear support,
We deployed OpenSearch and enabled SSO by integrating with our keycloak. According to the security policy of our company, the JWT access_token will be expired in 5 minutes. But the refresh_token is 3 hours. Users said that they had to login again every 5 minuts. We checked with the support of keycloak in our company. They said this strategy was required by our security team, and adviced that application using our keycloak should regularly refresh the token by code.
Describe the solution you'd like
So i wonder if OpenSearch already has such strategy to auto refresh the token and i only need enable it in config. if not, please advice how to handle this case?
Thanks a lot for your help

I assume this is something handled by the security-dashboards-plugin, so transferring to that repo. Please transfer back if I'm mistaken.

Hi @pengsili, the security-dashboards-plugin has support for refreshing access tokens for OpenID Connect auth providers like Keycloak. When the current access token expires, security-dashboards-plugin should be calling the token endpoint of the identity provider with grant_type: refresh_token to obtain a new access token.
There is a comment in the code to check with the IdP (keycloak) to make sure the refreshing access tokens in available in the IdP.
// if no id_token from refresh token call, maybe the Idp doesn't allow refresh id_token

I have not personally tested out the refresh token logic before, but I see in the code that it is reading id_token from the token endpoint response and not using access_token which is also being parsed out in:
export async function callTokenEndpoint(
  tokenEndpoint: string,
  query: any,
  wreckClient: typeof wreck
): Promise<TokenResponse> {
  const tokenResponse = await wreckClient.post(tokenEndpoint, {
    payload: stringify(query),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  });
  ...
  return {
    idToken: tokenPayload.id_token,
    accessToken: tokenPayload.access_token,
    refreshToken: tokenPayload.refresh_token,
    expiresIn: tokenPayload.expires_in,
  };
}

@pengsili In keycloak its possible to extend the expiry of the refresh tokens in the Realm Settings -> Sessions tab and increasing SSO Session Idle. The access token lifespan is configured in Realm Settings -> Tokens tab. In the security-dashboards-plugin a new access token is obtained using the refresh token after the access token has expired, but the refresh token is still within its valid window. If they are configured to have the same expiry of if the SSO Session Idle is set to a value lower than the access token expiry then refreshing the access token will not work. I am closing this issue.


beforeFeature() should not run on not selected features

Hi, I have implemented before- and afterFeature() hooks into our tests, they serve us well, thank you for addition. However one minor thing I have realized is that they are being run even on those features, which were not selected by tag. As there are only clean-ups in my case, everything is alright, but it slows the execution of tests a little bit and on bigger projects this could be a more serious issue.
Also it messes my log and so I am going for adding an if check for tags in beforeFeature(), however if this functionality was out of the box from Godog, that would be nice I think.

Hi, yes should be fixed in the near future, thanks for reporting that

@l3pp4rd Thanks for information. I can help if you will be short on time.
Just realized a small thing related to this issue, would be nice if beforeFeature() was run after the Feature header is printed, so the warning messages are graphically part of the Feature block.
Situation now:
Feature: Version command
  Command "minishift version" shows version of minishift binary.

  Scenario: User can get information about version of Minishift                  # features/cmd-version.feature:5
    When executing "minishift version" succeeds                                  # integration_test.go:724 -> executingMinishiftCommandSucceedsOrFails
    Then stdout should match "^minishift v[0-9]\.[0-9]\.[0-9]\+[a-z0-9]{7,8}\n$" # integration_test.go:702 -> commandReturnShouldMatchRegex

Command ssh -- ls returned non-zero exit code: 1, StdOut: , StdErr: Command failed: Machine 'minishift' does not exist. You need to run 'minishift start' first

Feature: Cool Store
  In order to test Minishift under load
  I need to setup a test environment
  Using CentOS and 4G of memory

  Scenario: Starting                 # features/coolstore.feature:9

Proposed:
Feature: Version command
  Command "minishift version" shows version of minishift binary.

  Scenario: User can get information about version of Minishift                  # features/cmd-version.feature:5
    When executing "minishift version" succeeds                                  # integration_test.go:724 -> executingMinishiftCommandSucceedsOrFails
    Then stdout should match "^minishift v[0-9]\.[0-9]\.[0-9]\+[a-z0-9]{7,8}\n$" # integration_test.go:702 -> commandReturnShouldMatchRegex

Feature: Cool Store
  In order to test Minishift under load
  I need to setup a test environment
  Using CentOS and 4G of memory

Command ssh -- ls returned non-zero exit code: 1, StdOut: , StdErr: Command failed: Machine 'minishift' does not exist. You need to run 'minishift start' first

  Scenario: Starting                 # features/coolstore.feature:9

This would make console output more readable.

Hm, this is interesting actually. Basically we have two options.
when we run an empty feature with pretty format

we can still print it, even though there are no scenarios.
we simply exclude all the features, if there are no scenarios there.

But in that case, there might be empty scenarios defined like:
Feature: maybe feature

  Scenario: one

  Scenario: two

Which does not make sense to setup database for example before such a feature, but those scenarios are just pending definition. And it also make sense to print them when running with pretty format (currently needs to be fixed, does not print empty scenarios). But this is valid gherkin and must be properly processed.
So in my opinion, it still makes sense to fire this event, since we actually have a physical feature defined. But you user should check on his own, whether the feature or scenario is empty. Since godog passes the gherkin object to each of the event hooks.
So you could for example have something like this:
package main

import (
	"fmt"

	"github.com/DATA-DOG/godog"
	"github.com/DATA-DOG/godog/gherkin"
)

func FeatureContext(s *godog.Suite) {
	s.Step(`^passing$`, func() error {
		return nil
	})

	s.BeforeFeature(func(ft *gherkin.Feature) {
		if len(ft.ScenarioDefinitions) > 0 {
			fmt.Println("EVENT BEFORE FEATURE:", ft.Name)
		}
	})

	s.BeforeScenario(func(s interface{}) {
		var steps int
		var name string
		switch t := s.(type) {
		case *gherkin.Scenario:
			steps = len(t.Steps)
			steps = len(t.Steps)
			name = t.Name
		case *gherkin.ScenarioOutline:
			steps = len(t.Steps)
			steps = len(t.Steps)
			name = t.Name
		}

		if steps > 0 {
			fmt.Println("EVENT BEFORE SCENARIO:", name)
		}
	})
}

That is not probably a pleasant thing to integrate, but it is also hard to determinate what exactly we should do when there are empty scenarios or features, whether hooks should still be called or not. Maybe they should not, I will need to have a look at other cucumber implementations to make this decision

updated to properly skip feature events if empty or if all scenarios are empty. since that is more sensible option. Should work as expected now

@l3pp4rd Thank you for answer. I am a little bit lost in it right now, but tomorrow will try out the new release of Godog and your suggestions and will let you know later.


Patrick Wilky - Dealing With Data

So i'm not quite sure how to keep my username password from being shown. I saved a copy to Github and checked the "add colab link". Where did I go wrong, I don't want to info out there publicly!

so generally youll create a file that you upload to google drive, and itll be named something like 'enviroment_variables_plotly' , and it might have something like
ENV_PASS = qwertyuiop
ENV_USER = 'pomegranate228'
or whatever, and then you can bring it in with your csv and other imports, and just say plotly.whatever_methods_they_use(username = ENV_USER, password = ENV_PASS)


import .dae file with textures = no textures

I tried to import this model: http://tf3dm.com/download-page.php?url=r2d2-21038
and wound up with no textures.  Figuring maybe Android didn't load .tga files, i converted them to .png and modified the .dae accordingly.
for someone who knows the model importing part of this, could you take a look?  thanks.

The model cannot be downloaded from the website (it doesn't start downloading). Can you please upload the original model and the modified one to another location? I will take a look as soon as I can get the model files. Thanks.

let's try this link:  http://tf3dm.com/3d-model/r2d2-21038.html

Thanks for the new link. I've found a fix for this issue. Please check out the pull request: https://github.com/Samsung/GearVRf/pull/386


Fixed 3 Medium Bugs

The pull request involves changes in two Java files, ArrayUtils.java and BooleanUtils.java, within the org.apache.commons.lang3 package. Here's a concise summary of the modifications:
ArrayUtils.java

Added a null check for the input array, throwing an IndexOutOfBoundsException if it's null to prevent a NullPointerException.
Changed the comparison between classes to use the isAssignableFrom() instead of getName().equals(NameOfTheOtherClass) in the public static boolean isSameType method

BooleanUtils.java

Modified the toBoolean method to use Objects.equals for string comparison instead of direct equality (==).
Improved the code for better readability.

Will do!


target not passed through events

I can't handle multiple numeric inputs through a single function because only values are passed but not something to identify the source, such as target.
Or am I missing something?

The comment here suggests using a separate onChange function for every NumericInput... not ideal when incrementing multiple counters and every onChange event is the same apart from the input target.

There are multiple reasons for changing the value. Some of them are artificial and don't have corresponding change event. That is why the onChange handler did not receive an event.
However, your concern is valid and since 2.1.0 the input element is available as additional argument in the onChange handlers. I hope that works for you.


Scaffolding failed

When trying to add the scaffolding as instructed on this page the following errors are generated:
Unexpected character encountered while parsing number: . Path '', line 1, position 1.
Scaffolding failed.
Unexpected character encountered while parsing number: . Path '', line 1, position 1.
To see more information, enable tracing by setting environment variable 'codegen_trace' = 1.

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

ID: 6719f08e-3bd7-dc1a-71df-f2ef9fbca9d8
Version Independent ID: 7096fdb3-612e-9e00-bd0b-8ea4886a09ce
Content: Part 2, add a model
Content Source: aspnetcore/tutorials/razor-pages/model.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Are you using 2.1? Can you use 3.1 or 5.0? Scaffolding errors should be reported at https://github.com/dotnet/Scaffolding/issues

Dear Rick:
What does 2.1, 3.1, or 5.0 refer to? I version 16.8.1 of Visual Stodio and 4.8.04084 of Microsoft .NET framework.
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Tuesday, November 10, 2020 10:55 AM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
Are you using 2.1? Can you use 3.1 or 5.0? Scaffolding errors should be reported at https://github.com/dotnet/Scaffolding/issues
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-724865665, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWU2ICLXJM2PZAE37O3SPF45VANCNFSM4TQFYEIA.

What does 2.1, 3.1, or 5.0 refer to?

dotnet --version

My VS is using .NET 4.8.0804. How do I change it to 5.0?
Scaffolding does not appear to be very stable. When I searched on GitHub there were 3,684 reports of failures.
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Sunday, November 15, 2020 9:24 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
What does 2.1, 3.1, or 5.0 refer to?
dotnet --version
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-727726403, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWR2R5Y2OUDWNEQ4IKTSQCSMXANCNFSM4TQFYEIA.

This tutorial doesn't support .NET 4.8 framework. It only support ASP.NET Core and .NET

Scaffolding is very stable.

Obviously I don't know what I am doing. How do I get VS to use ASP.NET Core for the tutorials?

If you follow the instructions, it use ASP.NET Core.

Dear Rick:
I gave up and deleted all the RazorPagesMovie folders and files from my computer and started over from scratch. This time I saw where the ASP.NET Core version is selected; I selected version 5.0. After creating the RazorPagesMovie project, I searched through all the created files and cannot find the secret place where ASP.NET Core 5.0 is specified. Where is it to be found? I am trying to understand and would like to know.
After creating the Movie class, I built the project with 0 errors.
This time scaffolding fails yet again but with a different error:
Unexpected character encountered while parsing value: c. Path '', line 0, position 0.
Scaffolding failed.
Unexpected character encountered while parsing value: c. Path '', line 0, position 0.
Is there any hope of fixing these scaffolding errors so I can continue the tutorial?
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Monday, November 16, 2020 10:31 AM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
If you follow the instructions, it use ASP.NET Core.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-728211619, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWRIK57IUZTKVFJ4OWTSQFOW7ANCNFSM4TQFYEIA.

In the project.csproj file
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

Try running the following in the command line
dotnet tool  uninstall  -g dotnet-aspnet-codegenerator
dotnet tool  install  -g dotnet-aspnet-codegenerator

Thank you. The code is different than yours but I found where it is. The corresponding code created in my RazorPagesMovie.csproj file is:

net5.0

<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Monday, November 16, 2020 8:28 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
In the project.csproj file

<TargetFramework>netcoreapp3.1</TargetFramework>

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-728662903, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWVBYG4J57CAKSEZTADSQHUSPANCNFSM4TQFYEIA.

I ran the two commands you gave, I got errors on the first uninstall command but the second install command completed successfully. Reran the scaffolding:
Unexpected character encountered while parsing value: o. Path '', line 0, position 0.
Scaffolding failed.
Unexpected character encountered while parsing value: o. Path '', line 0, position 0.
Now what?
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Monday, November 16, 2020 8:35 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
Try running the following in the command line
dotnet tool  uninstall  -g dotnet-aspnet-codegenerator
dotnet tool  install  -g dotnet-aspnet-codegenerator
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-728664965, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWVCIVST66JKA7ICJOLSQHVPFANCNFSM4TQFYEIA.

Try running the Visual Studio installer again and select repair.

Dear Rick:
After running the repair option of the VS installer, same error.
So I uninstalled all of VS, downloaded a fresh install of VS Pro from my Microsoft Partner portal, and installed it. Same error:
Unexpected character encountered while parsing value: l. Path '', line 0, position 0.
Scaffolding failed.
Unexpected character encountered while parsing value: l. Path '', line 0, position 0.
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Monday, November 16, 2020 10:08 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
Try running the Visual Studio installer again and select repair.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-728689078, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWU5RHIGRK3G3OAHD63SQIAKRANCNFSM4TQFYEIA.

Did you try with a new project? We have lots of customers reporting success on this and you're the only one I know of with this failure.
Try following the CLI instructions.
use the Visual Studio, Report a Problem gesture within VS, which open internal issues for the VS team.

can you try the following (mostly from the command line)?
dotnet new webapp -o RazorPagesMovie
cd RazorPagesMovie
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design

dotnet tool install -g dotnet-aspnet-codegenerator --version 2.1.0

// Add movie model to project
// Build run the app.
//  From project directory, run in a command window

dotnet aspnet-codegenerator razorpage -m Movie -dc RazorPagesMovie.Data.MovieContext -udl -outDir Pages\Movies --referenceScriptLibraries

dotnet ef migrations add Initial
dotnet ef database update

Dear Rick:
Yes, I tried a new project from scratch. I don’t know what is meant by CLI instructions. I will try your command line approach next.
BTW RazorPagesMovie.Models.RazorPagesMovieContext doen’t work. The generated name on my environment is RazorPagesMovie.Data.RazorPagesMovieContext.
In appreciation,
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Tuesday, November 17, 2020 10:22 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
Did you try with a new project? We have lots of customers reporting success on this and you're the only one I know of with this failure.
Try following the CLI instructions.
use the Visual Studio, Report a Problemhttps://docs.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio gesture within VS, which open internal issues for the VS team.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-729435501, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWQHU76RKW6T6NXH2Z3SQNKWTANCNFSM4TQFYEIA.

Hi Rick:
Been busy with holiday stuff this week. Since this still fails for me and I am the only one, I am going to give up on Windows 10 Home and rebuild my computer from scratch with Windows 10 Pro Enterprise and try again. This will take me a few days.
I really do appreciate your not giving up on me.
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Tuesday, November 17, 2020 10:25 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
can you try the following (mostly from the command line)?
dotnet new webapp -o RazorPagesMovie
cd RazorPagesMovie
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet tool install -g dotnet-aspnet-codegenerator --version 2.1.0
// Add movie model to project
// Build run the app.
//  From project directory, run in a command window
dotnet aspnet-codegenerator razorpage -m Movie -dc RazorPagesMovie.Data.MovieContext -udl -outDir Pages\Movies --referenceScriptLibraries
dotnet ef migrations add Initial
dotnet ef database update
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-729436569, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWR7643Q4J66ZK6GCYLSQNLCNANCNFSM4TQFYEIA.

Try this first
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview#:~:text=Windows Sandbox provides a lightweight,and the state are deleted.

Clever. I hadn’t heard of the Sandbox before. However, it does not work in Windows 10 Home, so I still have to install Windows 10 Pro to use it. In my case, I have to reformat my hard drive and install Windows and everything else from scratch because Windows 10 says it cannot install over my existing installation and must wipe everything out.
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Sunday, November 29, 2020 6:37 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
Try this first
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview#:~:text=Windows Sandbox provides a lightweight,and the state are deleted.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-735498272, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWVVI2WLSHYIRHIDUM3SSLZNNANCNFSM4TQFYEIA.

Dear Rick:
I don’t have good news, I’m afraid, as you can see from the attached pictures. The scaffolding still fails.

I wiped my hard drive and installed a fresh copy of Windows 10 Enterprise with all the latest updates.
Reinstalled all my apps and data (this took two weeks).
Reinstalled Visual Studio 2019 with latest update to 16.8.3.
Reran Tutorial with ASP.Net Core 5.0 (ASP.Net Core 2.2 had errors and I got a message saying it was no longer supported).
The Data context class’s generated name is different than the tutorial shows: Data in lieu of Models (see picture above).

I am trying to learn Visual Studio web development so I can migrate from Expression Web, but this problem has me completely blocked. You said I should report this bug, but I forgot where you said to report it.
Is there any hope of getting through this tutorial? Is there another tutorial I should be using instead?
In case it is helpful, here is my System Information:
OS Name             Microsoft Windows 10 Enterprise
Version 10.0.19042 Build 19042
Other OS Description      Not Available
OS Manufacturer             Microsoft Corporation
System Name    LMS1
System Manufacturer    Microsoft Corporation
System Model   Surface Pro 6
System Type      x64-based PC
System SKU        Surface_Pro_6_1796_Consumer
Processor            Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 2112 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date          Microsoft Corporation 235.3261.768, Not Available
SMBIOS Version               3.2
Embedded Controller Version    255.255
BIOS Mode         UEFI
BaseBoard Manufacturer             Microsoft Corporation
BaseBoard Product          Surface Pro 6
BaseBoard Version          Not Available
Platform Role     Slate
Secure Boot State            On
PCR7 Configuration         Elevation Required to View
Windows Directory          C:\WINDOWS
System Directory              C:\WINDOWS\system32
Boot Device        \Device\HarddiskVolume1
Locale   United States
Hardware Abstraction Layer        Version = "10.0.19041.488"
User Name         AzureAD\CS
Time Zone           US Mountain Standard Time
Installed Physical Memory (RAM)             16.0 GB
Total Physical Memory  15.9 GB
Available Physical Memory          8.44 GB
Total Virtual Memory     18.3 GB
Available Virtual Memory             9.23 GB
Page File Space 2.38 GB
Page File              C:\pagefile.sys
Kernel DMA Protection  Off
Virtualization-based security       Not enabled
Device Encryption Support           Elevation Required to View
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions   Yes
Hyper-V - Virtualization Enabled in Firmware       Yes
Hyper-V - Data Execution Protection        Yes
Sincerely,
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Tuesday, November 17, 2020 10:25 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
can you try the following (mostly from the command line)?
dotnet new webapp -o RazorPagesMovie
cd RazorPagesMovie
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet tool install -g dotnet-aspnet-codegenerator --version 2.1.0
// Add movie model to project
// Build run the app.
//  From project directory, run in a command window
dotnet aspnet-codegenerator razorpage -m Movie -dc RazorPagesMovie.Data.MovieContext -udl -outDir Pages\Movies --referenceScriptLibraries
dotnet ef migrations add Initial
dotnet ef database update
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-729436569, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWR7643Q4J66ZK6GCYLSQNLCNANCNFSM4TQFYEIA.

Follow the VSC instructions:
can you try the following (mostly from the command line)?
dotnet new webapp -o RazorPagesMovie
cd RazorPagesMovie
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet tool uninstall -g dotnet-aspnet-codegenerator
dotnet tool install -g dotnet-aspnet-codegenerator

// Add movie model to project
// Build run the app.
//  From project directory, run in a command window

dotnet aspnet-codegenerator razorpage -m Movie -dc RazorPagesMovie.Data.MovieContext -udl -outDir Pages\Movies --referenceScriptLibraries

dotnet ef migrations add Initial
dotnet ef database update

Hi Rick:
I carefully followed your instructions. Everything seemed OK up through the successful build after adding the Movie class to the Models. Here is the printout from the Developer PowerShell command prompts:

** Visual Studio 2019 Developer PowerShell v16.8.3
** Copyright (c) 2020 Microsoft Corporation

PS C:\Users\CS\source\repos> cd c:\users\cs.develop\vs\tutorials
cd : Cannot find path 'C:\users\cs.develop\vs\tutorials' because it does not exist.
At line:1 char:1

cd c:\users\cs.develop\vs\tutorials

  + CategoryInfo          : ObjectNotFound: (C:\users\cs\.develop\vs\tutorials:String) [Set-Location], ItemNotFoundE
 xception
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

PS C:\Users\CS\source\repos> cd c:\users\cs\documents.develop\vs\tutorials
PS C:\users\cs\documents.develop\vs\tutorials> dotnet new webapp -o RazorPagesMovie
Getting ready...
The template "ASP.NET Core Web App" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/5.0-third-party-notices for details.
Processing post-creation actions...
Running 'dotnet restore' on RazorPagesMovie\RazorPagesMovie.csproj...
Determining projects to restore...
Restored C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\RazorPagesMovie.csproj (in 121 ms).
Restore succeeded.
PS C:\users\cs\documents.develop\vs\tutorials> cd RazorPagesMovie
PS C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie> dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
Determining projects to restore...
Writing C:\Users\CS\AppData\Local\Temp\tmp5A15.tmp
info : Adding PackageReference for package 'Microsoft.VisualStudio.Web.CodeGeneration.Design' into project 'C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\RazorPagesMovie.csproj'.
info :   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.visualstudio.web.codegeneration.design/index.json
info :   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.visualstudio.web.codegeneration.design/index.json 252ms
info : Restoring packages for C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\RazorPagesMovie.csproj...
info : Package 'Microsoft.VisualStudio.Web.CodeGeneration.Design' is compatible with all the specified frameworks in project 'C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\RazorPagesMovie.csproj'.
info : PackageReference for package 'Microsoft.VisualStudio.Web.CodeGeneration.Design' version '5.0.1' added to file 'C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\RazorPagesMovie.csproj'.
info : Committing restore...
info : Generating MSBuild file C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\obj\RazorPagesMovie.csproj.nuget.g.props.
info : Writing assets file to disk. Path: C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\obj\project.assets.json
log  : Restored C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie\RazorPagesMovie.csproj (in 2.04 sec).
PS C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie> dotnet tool uninstall -g dotnet-aspnet-codegenerator
A tool with the package Id 'dotnet-aspnet-codegenerator' could not be found.
Tools are uninstalled using their package Id which may be different
from the tool name you use when calling the tool. You can find the tool names
and the corresponding package Ids for installed tools using the command
'dotnet tool list'.
PS C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie> dotnet tool install -g dotnet-aspnet-codegenerator
You can invoke the tool using the following command: dotnet-aspnet-codegenerator
Tool 'dotnet-aspnet-codegenerator' (version '5.0.1') was successfully installed.
PS C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie> dotnet aspnet-codegenerator razorpage -m Movie -dc RazorPagesMovie.Data.MovieContext -udl -outDir Pages\Movies --referenceScriptLibraries
Building project ...
Finding the generator 'razorpage'...
Running the generator 'razorpage'...
To scaffold controllers and views using models, install Entity Framework core packages and try again: Microsoft.EntityFrameworkCore.Design
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
RunTime 00:00:14.73
PS C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie> dotnet ef migrations add Initial
Could not execute because the specified command or file was not found.
Possible reasons for this include:

You misspelled a built-in dotnet command.
You intended to execute a .NET program, but dotnet-ef does not exist.
You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
PS C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie> dotnet ef database update
Could not execute because the specified command or file was not found.
Possible reasons for this include:
You misspelled a built-in dotnet command.
You intended to execute a .NET program, but dotnet-ef does not exist.
You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
PS C:\users\cs\documents.develop\vs\tutorials\RazorPagesMovie>

Next I followed the VSC instructions as you suggested. I got all the way through the “Register the database context” and everything seemed OK as far as I could tell until the build at that point failed as follows (I am still too dumb to know what to do about them):
Severity
Code
Description
Project
File
Line
Suppression State
Error
CS0103
The name 'SameSiteMode' does not exist in the current context
RazorPagesMovie
C:\Users\CS\Documents.Develop\VS\Tutorials\RazorPagesMovie\Startup.cs
33
Active
Error
CS0246
The type or namespace name 'RazorPagesMovieContext' could not be found (are you missing a using directive or an assembly reference?)
RazorPagesMovie
C:\Users\CS\Documents.Develop\VS\Tutorials\RazorPagesMovie\Startup.cs
36
Active
Error
CS0103
The name 'CompatibilityVersion' does not exist in the current context
RazorPagesMovie
C:\Users\CS\Documents.Develop\VS\Tutorials\RazorPagesMovie\Startup.cs
39
Active
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Saturday, December 19, 2020 6:51 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
Follow the VSC instructions:
can you try the following (mostly from the command line)?
dotnet new webapp -o RazorPagesMovie
cd RazorPagesMovie
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet tool uninstall -g dotnet-aspnet-codegenerator
dotnet tool install -g dotnet-aspnet-codegenerator
// Add movie model to project
// Build run the app.
//  From project directory, run in a command window
dotnet aspnet-codegenerator razorpage -m Movie -dc RazorPagesMovie.Data.MovieContext -udl -outDir Pages\Movies --referenceScriptLibraries
dotnet ef migrations add Initial
dotnet ef database update
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-748551170, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWSF4H736ALMDXIUZB3SVVKAPANCNFSM4TQFYEIA.

Good error message
To scaffold controllers and views using models, install Entity Framework core packages and try again: Microsoft.EntityFrameworkCore.Design
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)

See https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/model?view=aspnetcore-2.1&tabs=visual-studio-code#add-nuget-packages-and-ef-tools-2

Rick:
Yes, I saw those messages but am at a loss as to what to do about them. I searched the internet for Entity Framework core packages and found plenty of writeups but nothing about how to download them to install them. I also ran the .NET Core CLI commands mentioned in your follow up email. I didn’t see a scaffolding error amongst the blizzard of messages so did not run the next XML.
I used to be a Software Engineer at IBM about 28 years ago, but this stuff has me befuddled at the moment.
<EMAIL_ADDRESS>Mayhew
Mail: PO Box 69654 ● Oro Valley AZ 85737-0019 ● USA
Email: Biz<EMAIL_ADDRESS>Telephone: +1<PHONE_NUMBER>; Skype/WhatsAPP: Loren Mayhew
From: Rick Anderson<EMAIL_ADDRESS>Sent: Sunday, December 20, 2020 6:24 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: Business<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] Scaffolding failed (#20467)
Good error message
To scaffold controllers and views using models, install Entity Framework core packages and try again: Microsoft.EntityFrameworkCore.Design
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/20467#issuecomment-748708151, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOILEWS2H2LNJKUKDS27ZRDSV2PTBANCNFSM4TQFYEIA.