ACME.CAServer setting ignored

Do you want to request a feature or report a bug?
bug
What did you do?
I exceded Let's Encrypt rate limits while testing a domain and traefik, so I switched Traefik to start using the staging environment.
What did you expect to see?
New cert downloaded from staging CA.
What did you see instead?
The same error as before.
Output of traefik version: (What version of Traefik are you using?)
Version:      v1.2.3
Codename:     morbier
Go version:   go1.7.5
Built:        2017-04-13_07:21:10PM
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?
arguments:
  - --ACME.ACMELogging
  - --ACME.Email=***
  - --ACME.EntryPoint=https
  - --ACME.CAServer=https://acme-staging.api.letsencrypt.org/directory
  - --ACME.OnDemand
  - --ACME.OnHostRule
  - --ACME.Storage=/etc/traefik/acme/acme.json
  - --DefaultEntryPoints=http,https
  - --Docker
  - --Docker.ExposedByDefault=false
  - --Docker.Watch
  - --EntryPoints=Name:http Address::80
    Redirect.EntryPoint:https Compress:on
  - --EntryPoints=Name:https Address::443
    TLS Compress:on
  - --LogLevel=DEBUG

If applicable, please paste the log output in debug mode (--debug switch)
INFO[2017-05-18T11:22:51Z] Traefik version v1.2.3 built on 2017-04-13_07:21:10PM
DEBU[2017-05-18T11:22:51Z] Global configuration loaded {"GraceTimeOut":10,"Debug":false,"CheckNewVersion":true,"AccessLogsFile":"","TraefikLogsFile":"","LogLevel":"DEBUG","EntryPoints":{"http":{"Network":"","Address":":80","TLS":null,"Redirect":{"EntryPoint":"https","Regex":"","Replacement":""},"Auth":null,"Compress":true},"https":{"Network":"","Address":":443","TLS":{"MinVersion":"","CipherSuites":null,"Certificates":[],"ClientCAFiles":null},"Redirect":null,"Auth":null,"Compress":true}},"Cluster":null,"Constraints":[],"ACME":{"Email":"support+interna@example.com","Domains":null,"Storage":"/etc/traefik/acme/acme.json","StorageFile":"","OnDemand":true,"OnHostRule":true,"CAServer":"https://acme-staging.api.letsencrypt.org/directory","EntryPoint":"https","DNSProvider":"","DelayDontCheckDNS":0,"ACMELogging":true,"TLSConfig":null},"DefaultEntryPoints":["http","https"],"ProvidersThrottleDuration":2000000000,"MaxIdleConnsPerHost":200,"InsecureSkipVerify":false,"Retry":null,"Docker":{"Watch":true,"Filename":"","Constraints":null,"Endpoint":"http://dockersocket:2375","Domain":"","TLS":null,"ExposedByDefault":false,"UseBindPortIP":false,"SwarmMode":false},"File":null,"Web":null,"Marathon":null,"Consul":null,"ConsulCatalog":null,"Etcd":null,"Zookeeper":null,"Boltdb":null,"Kubernetes":null,"Mesos":null,"Eureka":null,"ECS":null,"Rancher":null}
INFO[2017-05-18T11:22:51Z] Preparing server http &{Network: Address::80 TLS:<nil> Redirect:0xc4201b2ba0 Auth:<nil> Compress:true}
INFO[2017-05-18T11:22:51Z] Preparing server https &{Network: Address::443 TLS:0xc42000d440 Redirect:<nil> Auth:<nil> Compress:true}
INFO[2017-05-18T11:22:51Z] Starting server on :80
INFO[2017-05-18T11:22:51Z] Loading ACME Account...
INFO[2017-05-18T11:22:51Z] Loaded ACME config from store /etc/traefik/acme/acme.json
DEBU[2017-05-18T11:22:51Z] Building ACME client...
DEBU[2017-05-18T11:22:51Z] AgreeToTOS...
legolog: 2017/05/18 11:22:52 [INFO] acme: Querying account for https://acme-v01.api.letsencrypt.org/acme/reg/**********
[...]
DEBU[2017-05-18T11:22:53Z] LoadCertificateForDomains [server-007.example.com]...
DEBU[2017-05-18T11:22:53Z] Loading ACME certificates [server-007.example.com]...
legolog: 2017/05/18 11:22:53 [INFO][server-007.example.com] acme: Obtaining bundled SAN certificate
legolog: 2017/05/18 11:22:53 [INFO][server-007.example.com] AuthURL: https://acme-v01.api.letsencrypt.org/acme/authz/****************
legolog: 2017/05/18 11:22:53 [INFO][server-007.example.com] acme: Authorization already valid; skipping challenge
legolog: 2017/05/18 11:22:53 [INFO][server-007.example.com] acme: Validations succeeded; requesting certificates
ERRO[2017-05-18T11:22:58Z] map[server-007.example.com:acme: Error 429 - urn:acme:error:rateLimited - Error creating new cert :: too many certificates already issued for exact set of domains: server-007.example.com]
ERRO[2017-05-18T11:22:58Z] Error getting ACME certificates [server-007.example.com] : Cannot obtain certificates map[server-007.example.com:acme:
Error 429 - urn:acme:error:rateLimited - Error creating new cert :: too many certificates already issued for exact set of domains: server-007.example.com]+v

Is it possible this is happening because that same server had been using the production ca server before? I understand this would be then still a bug; Traefik should use the same CA server for certs it had before, but use the new one for new certs.

Hello @Yajo, you are correct. The issuing auth URL and associated CA URL are stored in the acme object for that certificate. This is so that if you are running multiple traefik instances in a cluster, the certificate information can be transfered between them.
In your case, you may want to remove that certificate from your acme.json file, and it should build a new certificate request with the staging server.

But if I'm not wrong, if it tries to download the new cert it is because the old one is not available in acme.json. Then maybe the solution would be not to store cert info in acme.json until we actually have a valid cert, don't you think?

Pre-challenge data is stored in acme.json.

Then, could we discard that data if we have no valid cert yet and the CA server changed?

I'll close the issue due to inactivity but feel free to re-open if needed.

Please reopen, this is still valid.


Make README more helpful for those who don't know about flame graphs

Someone pointed out that it'd be good to at least include an example flame graph in the README. I suspect adding a tiny bit of information about what flame graphs are (like how to read them) + link to http://www.brendangregg.com/flamegraphs.html would also be a good addition.

Just added a small example image after hand-tweaking the svg to make it smaller.
I think this would be a good place for a mini-guide on systems perf theory, maybe a little queue theory :D

added some misc info about profiling and perf theory https://github.com/ferrous-systems/cargo-flamegraph#systems-performance-work-guided-by-flamegraphs

Looks really good!
A few minor notes:

Under "Flamegraphs Are the Beginning, Not the End", I wonder if we should also link to Brendan's posts on Off-CPU profiling, eBPF, etc. which go beyond just traditional flame graphs.
The link to 'Ferrous Systems' at the end also seems to be broken?
Not a must, but I'd appreciate a link back to inferno :)

@spacejam quick bump re ^

@jonhoo added! [sorry for the delay, was giving a rust training all week abroad]


vi.mock implementation results in undefined modules

Describe the bug
When attempting to mock a module or import with vi.mock the module or import ends up being undefined both in the test file and the file that's being tested. This is of course not intended.
Here is an example where I would expect my import of @w11r/use-breakpoint to be a function that returns an object with the set values:
import useBreakpoint from '@w11r/use-breakpoint'

vi.mock('@w11r/use-breakpoint', () => vi.fn())

test(('my test) => {
 useBreakpoint.mockImplementation(() => ({
      'isMobile-': true,
      'isSmall+': false,
  }))
})

However, in the above example I get the following error:
TypeError: Cannot read properties of undefined (reading 'mockImplementation')"

useBreakpoint is undefined. What's more worrisome is that in the file that's using useBreakpoint, it also becomes undefined in there.
I discovered this while trying to migrate from jest to vi.
The following code works in jest without issues:
import useBreakpoint from '@w11r/use-breakpoint'

jest.mock('@w11r/use-breakpoint', () => jest.fn())

test(('my test) => {
 useBreakpoint.mockImplementation(() => ({
      'isMobile-': true,
      'isSmall+': false,
  }))
})

This is breaking 40 of my unit tests, and it's not just 3rd party module imports. Even local mocks like this one
vi.mock('../Overrides', () => ({
  site: {
    View: () =>
site override view
,
  },
}))

results in the "Overrides" module export being undefined in both the test and the actual file when running the unit tests.
See reproduction below for an example of this breaking.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-5koqg7?file=src/Component.test.tsx
System Info
System:
    OS: macOS 12.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.79 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.2 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.1.2 - /usr/local/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 99.0.4844.51
    Firefox: 97.0
    Safari: 15.3
  npmPackages:
    @vitejs/plugin-react: ^1.2.0 => 1.2.0
    vite: ^2.8.6 => 2.8.6
    vitest: ^0.6.1 => 0.6.1

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

default exports should be placed on default key like: { default: vi.fn() }
cjs doesnt have this concept, so it “worked” in jest

@sheremet-va 🤦♂  ahh that totally makes sense.
Thank you for the explanation.

Could you provide a working code example for this issue ?
I'm facing the same problem but cannot manage to make it work...

Could you provide a working code example for this issue ?
I'm facing the same problem but cannot manage to make it work...

vi.mock(“path”, () => ({ default: “test” }))


build(deps): bump log4j from 2.18.0 to 2.19.0

Bump log4j from 2.18.0 to 2.19.0

Bumps log4j from 2.18.0 to 2.19.0
Bumps slf4j from 1.7.32 to 2.0.1
Migrates to log4j-slf4j2. See https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/index.html

Release notes:
log4j : https://logging.apache.org/log4j/2.x/changes-report.html#a2.19.0
slf4j  : https://www.slf4j.org/faq.html#changesInVersion200

@yeikel - would you like to take a look at the failing tests?

@yeikel - would you like to take a look at the failing tests?

I believe that this is blocked until log4j adds support for this

@shai It should be ready to go now

Thanks!

I think I am going to bump the version to 3.x for kotlin-logging to reflect the major upgrade of slf4j.

I think I am going to bump the version to 3.x for kotlin-logging to reflect the major upgrade of slf4j.

That sounds reasonable. Thank you!

@shai It should be ready to go now

Wrong shai... Did you maybe wanna tag @oshai? I'm innocent 🤘🏻

@shai It should be ready to go now

Wrong shai... Did you maybe wanna tag @oshai? I'm innocent 🤘🏻

yes, I figured that out.

@shai It should be ready to go now

Wrong shai... Did you maybe wanna tag @oshai? I'm innocent 🤘🏻

yes, I figured that out.

I'll show myself out 👍🏼🤣

@shai It should be ready to go now

Wrong shai... Did you maybe wanna tag @oshai? I'm innocent 🤘🏻

yes, I figured that out.

I'll show myself out 👍🏼🤣

My bad haha


Add DELETE custom vocabulary endpoint to the Custom Vocabulary API

As a RevAi golang sdk user, I would like to be able to delete my custom vocabulary when using the async api client.
This issue is being opened in an effort to reach feature parity with the Custom Vocabulary API.
The REST API feature is documented here: https://www.rev.ai/docs/streaming#operation/DeleteCustomVocabulary

Thank you for all the feedback I'll try to knock those out this weekend

https://github.com/oriiolabs/revai-go/blob/master/stream.go#L77


Copying files to SD card not working

When the destination is the SD card when moving or copying files, an error occurs. Also when trying to delete files from the SD card

Operations performed on the SD card have been fixed, you can now delete, copy or move files to the external storage.


[Bug] Add JAVA_HOME for ProcessEngineConnLaunch

Describe the bug
ProcessEngineConnLaunch#initializeEnv should add JAVA_HOME
Screenshots

https://github.com/apache/incubator-linkis/pull/1167   cc @casionone


Support Tor-traffic

Or rather, don't block Tor!
This command works as expected without Tor (tested on fedora with optional whonix-proxy inserted), but throws an error when using the Tor network:
$ nikola plugin -l
Traceback (most recent call last):
  File "/home/user/Documents/projects/rocketcollider/venv/lib64/python3.6/site-packages/doit/doit_cmd.py", line 177, in run
    return command.parse_execute(args)
  File "/home/user/Documents/projects/rocketcollider/venv/lib64/python3.6/site-packages/doit/cmd_base.py", line 127, in parse_execute
    return self.execute(params, args)
  File "/home/user/Documents/projects/rocketcollider/venv/lib64/python3.6/site-packages/nikola/plugin_categories.py", line 134, in execute
    return self._execute(options, args)
  File "/home/user/Documents/projects/rocketcollider/venv/lib64/python3.6/site-packages/nikola/plugins/command/plugin.py", line 149, in _execute
    return self.list_available(url)
  File "/home/user/Documents/projects/rocketcollider/venv/lib64/python3.6/site-packages/nikola/plugins/command/plugin.py", line 161, in list_available
    data = self.get_json(url)
  File "/home/user/Documents/projects/rocketcollider/venv/lib64/python3.6/site-packages/nikola/plugins/command/plugin.py", line 354, in get_json
    self.json = requests.get(url).json()
  File "/home/user/Documents/projects/rocketcollider/venv/lib64/python3.6/site-packages/requests/models.py", line 896, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

It would appear that you have reported this to the wrong project. I see no reference to Python-Markdown being called in your traceback. And I have no idea what nikola is.

Yes, sry, had Nikola-tab open paraallel, my bad.


Tint Spinners

Yeah

isn't should be tinted same as for example editText?
mySpinner.getBackground().setColorFilter() haven't tried it tho, but it should work.

i'm submitting PR for this in mins.

Thanks!


Scenario Outline Styling

🤔 What's the problem you're trying to solve?
To make the HTML report with Scenario Outlines easier to read.
✨ What's your proposed solution?

"Scenario Outline" and "Examples" both are H2 tags. I suggest using H3 for "Examples".
Align "Examples" with steps (move it slightly to the right)

⛏ Have you considered any alternatives or workarounds?
No
📚 Any additional context?
If agreed I am willing to contribute.

This text was originally generated from a template, then edited by hand. You can modify the template here.

Before vs after screenshots.

Yeah this seems better to me.
@aslakhellesoy @mattwynne any thoughts?


For the FRC REV Hardware Client download, use a zip file that bundles the installer with data for offline use

I'm working on version 1.5.3 of the REV Hardware Client, which will support building installers that bundle all FTC and FRC software for complete offline use.
As a stopgap until that comes out, this PR replaces the 2023 FRC REV Hardware Client installer with a zip file containing that installer, the FRC firmware downloads, some metadata, and a README file that explains how to install the metadata and downloads. Without that procedure, it's not possible to use REV Hardware Client version 1.5.2 and prior to install software onto devices without connecting it to the Internet at least once.
Related changes in this PR:

Updated the FTC REV Hardware Client to version 1.5.2.

For FTC, having the ability to install software through the REV Hardware Client without connecting to the Internet is somewhat less important, because all of the FTC software can be installed via other means.

Removed the SPARK MAX firmware download

The SPARK MAX firmware is not intended for use outside of the REV Hardware Client, so it is covered by the new REV Hardware Client zip file.

Rebased onto the main branch


Filter search list(searching countries) should be sort in alphabetically way(see more description below)

if user types in 'af' the search results should be the country name with the first two letters being 'af' not if 'af' is included anywhere in the country name

hey @shelcia  search results are being shown in that way only right

hey @shelcia  search results are being shown in that way only right

The issues is being solved have to close it.


New package: QWignerSymbols v0.1.0

Registering package: QWignerSymbols
Repository: https://github.com/lkdvos/QWignerSymbols.jl
Created by: @lkdvos
Version: v0.1.0
Commit: 261818cd1e6292adf33e459876216edd62656482
Reviewed by: @lkdvos
Reference: https://github.com/lkdvos/QWignerSymbols.jl/commit/261818cd1e6292adf33e459876216edd62656482#commitcomment-130337036
Description: A Julia package for computing q-deformed Wigner Symbols and related quantities.

Hi,
I would like to circumvent the package naming distance problem for this package, because the similarity to the existing WignerSymbols.jl is by design. There is a branch of mathematics that consists of q-deforming existing notions, leading to so-called q-numbers, q-factorials, etc. I specifically want to define q-WignerSymbols, stemming from the q-deformation of SU(2), for which the original wigner symbols are defined. As such I would argue that this name is chosen rather well, and might deserve an exception to the naming rule.
I agree that it is incredibly unfortunate that in this case Q and W are incredibly close together on most physical keyboards, but I guess the actual chance of mistyping might be rather small.
Thanks for your understanding!

Can you make sure that there is a usage example, either in the README or the Documentation?
The two documentation badges in the README currently have a 404 error.


.Net 5 version of 5.0.1

Will there be a .Net 5 version of the v5 build, like you did for the v4 build?  e.g. 5.5.1?

.NET 5 version will stop on 4.5.0 as .NET 5 is not supported by Microsoft anymore.

But doesn't 4.5 have the admin path issue?
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Māris Krivtežs @.>
Sent: Saturday, October 29, 2022 1:07:05 AM
To: Geta/geta-notfoundhandler @.>
Cc: David McDonald @.>; Author @.>
Subject: Re: [Geta/geta-notfoundhandler] .Net 5 version of 5.0.1 (Issue #53)
.NET 5 version will stop on 4.5.0 as .NET 5 is not supported by Microsoft anymore.
—
Reply to this email directly, view it on GitHubhttps://github.com/Geta/geta-notfoundhandler/issues/53#issuecomment-1295746207, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADLIHIKOO4MRA5HB3U6H3VDWFS5ITANCNFSM6AAAAAARROIUTI.
You are receiving this because you authored the thread.Message ID: @.***>

4.5.0 was released to fix the path issue for .NET 5 customers. But no new versions for .NET 5 will be released.


Add expand to NavList

Adds new component NavList.ShowMoreItem, allows native support for "expanding" content within a NavList.
Closes https://github.com/github/primer/issues/2637
Proposed API
Basic example:
<NavList>
  <NavList.Item href="#" aria-current="page">Item 1</NavList.Item>
  <NavList.Item href="#">Item 2</NavList.Item>
  <NavList.ShowMoreItem label="Show more">
    <NavList.Item href="#">Item 3</NavList.Item>
    <NavList.Item href="#">Item 4</NavList.Item>
  </NavList.ShowMoreItem>
</NavList>

Multiple expands:
<NavList>
  <NavList.Item href="#" aria-current="page">Item 1</NavList.Item>
  <NavList.Item href="#">Item 2</NavList.Item>
  <NavList.ShowMoreItem label="Show more">
    <NavList.Item href="#">Item 3</NavList.Item>
    <NavList.Item href="#">Item 4</NavList.Item>
    <NavList.ShowMoreItem label="Show more">
      <NavList.Item href="#">Item 5</NavList.Item>
      <NavList.Item href="#">Item 6</NavList.Item>
     </NavList.ShowMoreItem>
  </NavList.ShowMoreItem>
</NavList>

Group example (storybook)
Changelog

New

Adds new component NavList.ShowMoreItem

Rollout strategy

[ ] Patch release
[x] Minor release
[ ] Major release; if selected, include a written rollout or migration plan
[ ] None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

[x] Added/updated tests
[x] Added/updated documentation
[x] Added/updated previews (Storybook)
[ ] Changes are SSR compatible
[x] Tested in Chrome
[ ] Tested in Firefox
[ ] Tested in Safari
[ ] Tested in Edge
[ ] (GitHub staff only) Integration tests pass at github/github (Learn more about how to run integration tests)

Questions for reviewers!

Should we rename expand with something else? I am indifferent to the name, but I do think that there are other possible names that could work.

collapsible
disclosure
expandable
...etc, (note: some of the names might imply that the control can be "collapsed" when it is expanded, which isn't the case in the current proposed API.

Would we ever want to support the control to be collapsible? Currently in PVC, the control does not collapse when expanded and custom implementations of NavList with a "show more" do not collapse.

For now, the goal of this PR is parity with PVC and to unblock teams, of which only the "expand" functionality is required, but would love to hear any thoughts on this!

I added the ability to put expands inside of expands, which allows you to "nest" expands. This was added so that we'd have parity with PVC and how it handles "pages" (second group example).

Would love any and all reviews from the team! This PR is serving mainly as a proposal to the NavList API, to add a new pattern/component. :grin:
Cc: @primer/engineer-reviewers

I'd love to try and come up with a descriptive name but it's definitely challenging 🤔 Maybe we could use NavList.ShowMoreItem to align with PVC? Which I think has the method: with_show_more_item

I think going with parity is a good idea! I renamed it to ShowMoreItem so that we're more in sync with the PVC NavList. Thank you for the suggestion! :grin:

Super weird question, but we don't really have a way to mark this as "experimental" since it's a sub-component, do we? 😅

I don't think we do, but maybe this is something we'd want to have for future sub-components? 🤔

Pinging @primer/engineer-reviewers for any additional reviews!

👋🏻 @TylerJDev wanted to check in as I noticed this one has been sitting without action for a while. What's the next step needed here? Have we gotten the necessary alignment from Primer Design and the rest of the engineering team on the addition of the "more" feature?

Hey @lesliecdubs! This is pretty much finish, I just haven't had time to come back to the last suggested change. As for alignment with design, I'm wondering what's the best way to go about that?

Thanks for following up @tylerjdev. I'll leave you to the final change.

As for alignment with design, I'm wondering what's the best way to go about that?

Typically, pattern proposal issues like https://github.com/github/primer/issues/2637 go to a Primer Patterns meeting for discussion and approval. Perhaps you could add yourself to the next meeting invite and agenda, or if that doesn't work perhaps the Primer Design FR could weigh in on the PR.


 Did you abandon all changes you had made there or are they in another branch?

You can restore branch or it's still on my pc.

Will wait for @mike-robertson to sign off on this


Using IntSliceFlag results in panic

I am very new to Go, but am trying to convert a few scripts we run in our business to Go as a test to see if it is something I can get on board with.
Your cli library is working out pretty well, and I decided to try out the IntSliceFlag functionality so that I can pass in a slice of integers. When I do, I get a panic:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x55e0b]

goroutine 1 [running]:
github.com/codegangsta/cli.(*IntSlice).String(0x0, 0x0, 0x0)
	/Users/mylanc/Go/src/github.com/codegangsta/cli/flag.go:169 +0x11b
flag.(*FlagSet).Var(0xc208044180, 0x53be50, 0x0, 0x31d790, 0xa, 0x373090, 0x3c)
	/usr/local/Cellar/go/1.4.1/libexec/src/flag/flag.go:669 +0x3c
github.com/codegangsta/cli.func·010(0x31d790, 0xa)
	/Users/mylanc/Go/src/github.com/codegangsta/cli/flag.go:209 +0x84
github.com/codegangsta/cli.eachName(0x31d790, 0xa, 0xc20807b618)
	/Users/mylanc/Go/src/github.com/codegangsta/cli/flag.go:54 +0x11e
github.com/codegangsta/cli.IntSliceFlag.Apply(0x31d790, 0xa, 0x0, 0x373090, 0x3c, 0x344470, 0x1a, 0xc208044180)
	/Users/mylanc/Go/src/github.com/codegangsta/cli/flag.go:210 +0x403
github.com/codegangsta/cli.(*IntSliceFlag).Apply(0xc208036340, 0xc208044180)
	<autogenerated>:24 +0xaa
github.com/codegangsta/cli.flagSet(0x322bb0, 0xa, 0xc208044120, 0x4, 0x6, 0xc208044120)
	/Users/mylanc/Go/src/github.com/codegangsta/cli/flag.go:45 +0x133
github.com/codegangsta/cli.Command.Run(0x322bb0, 0xa, 0x0, 0x0, 0x344570, 0x19, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/mylanc/Go/src/github.com/codegangsta/cli/command.go:55 +0x3bf
github.com/codegangsta/cli.(*App).Run(0xc208034340, 0xc20800a000, 0x8, 0x8, 0x0, 0x0)
	/Users/mylanc/Go/src/github.com/codegangsta/cli/app.go:156 +0xcf7
main.main()
	/Users/mylanc/Go/src/eliza.iotrak.net/mylanc/report-router/main.go:88 +0x831

goroutine 2 [runnable]:
runtime.forcegchelper()
	/usr/local/Cellar/go/1.4.1/libexec/src/runtime/proc.go:90
runtime.goexit()
	/usr/local/Cellar/go/1.4.1/libexec/src/runtime/asm_amd64.s:2232 +0x1

goroutine 3 [runnable]:
runtime.bgsweep()
	/usr/local/Cellar/go/1.4.1/libexec/src/runtime/mgc0.go:82
runtime.goexit()
	/usr/local/Cellar/go/1.4.1/libexec/src/runtime/asm_amd64.s:2232 +0x1

goroutine 4 [runnable]:
runtime.runfinq()
	/usr/local/Cellar/go/1.4.1/libexec/src/runtime/malloc.go:712
runtime.goexit()
	/usr/local/Cellar/go/1.4.1/libexec/src/runtime/asm_amd64.s:2232 +0x1

I am attempting to run it through a Command, of which the code follows:
	app.Commands = []cli.Command{
		{
			Name:   "run-report",
			Usage:  "Run the specified report.",
			Action: reports.RunReport,
			Flags: []cli.Flag{
				cli.StringFlag{
					Name:   "start, s",
					Usage:  "Date to start querying from (YYYY-MM-DD format)",
					EnvVar: "REPORT_ROUTER_START_DATE",
				},
				cli.StringFlag{
					Name:   "stop, S",
					Usage:  "Date to stop querying from (YYYY-MM-DD format)",
					EnvVar: "REPORT_ROUTER_STOP_DATE",
				},
				cli.IntSliceFlag{
					Name:   "facilities, f",
					Usage:  "The IDs of the facilities to query data from. (1,2,3 format)",
					EnvVar: "REPORT_ROUTER_FACILITY_IDS",
				},
			},
		},
	}

Without the IntSliceFlag the script runs perfectly fine, but when I add it, I get the nil pointer dereference panic. Does anyone else notice this behavior or is it possible that I am doing something wrong?
Note that this error comes up whether I call it as intended:
report-router run-report -s 2014-12-01 -S 2014-12-31 -f 11,12,13

Or just simply call help:
report-router run-report --help

As I said, I am still very new to go so it is possible that I am going about this the wrong way.
Thanks for all the help, and the helpful library!

I was able to play with it a little more and found that this only occurs if I do not specify a default value. If I do, things work fine.
Not sure if this is the expected behavior or not, but it solves the issue for me.


Unsure how EDID relates to Screen.id

EDID is not just an ID, it's a complete structure defined by VESA that includes a lot of metadata about the display, including manufacturer, serial number, colorimetry, power states, etc.
In fact, part of the point of the screen enumeration API (as far as I can tell) is to have the user agent parse this data and return a useful subset to the Web application.
Exposing the raw EDID to the Web is going to raise some issues as a display serial number is effectively a GUID for the user.
For the use cases you've proposed, would a simple counter suffice, i.e. primary display is given an ID of "Screen-0," then "Screen-1", "Screen-2", ...?

Thanks for this feedback! I've removed all mentions of EDID from the explainer, exposing that raw information is not in any current or future plans. Using a name or basic id, like "Screen 1" is in line with our current thinking.


[Feature] Add modal/popup component

Description
Types of modal I thought to do:

[ ] success
[ ] warn
[ ] danger
[ ] with scrolling body
[ ] with animation
[ ] with a image
[ ] with a form
[ ] even more

Can you assign this issue to me? I am sure that i can provide this feature in best level.
Please assign this issue to me under GSSOC'24.
Screenshots
No response
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

Plz assign me this I can solve this in optimize form

Where do you want to add these feature @DharshiBalasubramaniyam

Okay go ahead @DharshiBalasubramaniyam


[Event Request] Codeunit 7312 "Create Pick" - OnAfterCheckOutBound

Hi team,
In Codeunit 7312 "Create Pick" procedure CheckOutBound we would like to have the ability to run custom code based on SourceType variable, for that an event at the end of procedure code would be a good solution:

[IntegrationEvent(false, false)]
local procedure OnAfterCheckOutBound(SourceType: Integer; SourceSubType: Integer; SourceNo: Code[20]; SourceLineNo: Integer; var OutBoundQty: Decimal)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


RDBES: Add code 'OutOfFrame' to code type 'ReasonForNotSampling'

Hi Adriana
Can you add the code 'OutOfFrame' to code type 'ReasonForNotSampling'.
Code		Description
OutOfFrame	Not included in sampling frame
Cheers Henrik

Hi @HenrikK-N
As I see, that code is already there:
https://vocab.ices.dk/?ref=1647
Let me know if I am missing something, otherwise I guess we can close this issue.

implemented in reco and communicated to @EjazAtIces


Does not work with password longer than four numbers

I posted this on the envisalink forum as well.
Home Assistant working fine until last week, I also have been upgraded to 1.05.208 and Home Assistant older integrations stopped working. Thus I moved to this integration which works properly (read the config file, all automation work, etc.) only after changing the password to 4 numbers; with my previous 10 char alphanumeric  password the integration doesn't work as it cannot communicate with envisalink. The home assistant debug (abridged) shows that the following:
Password is 10 characters, the integration keeps trying to communicate with envisalink
Queueing command '005' data: '' ; calling_task=queue_login_response
TX > b'005CB'
Command '005' failed due to timeout waiting for response from EVL
Password numeric 4 numbers, all works properly
Queueing command '005' data: '' ; calling_task=queue_login_response
TX > b'00563'
RX < 5000052A
DSC ack recieved. (note the misspelling, on the envisalink side !)
Thus clearly there is a problem when the password is longer than 4 character and alpha.
I also note that there is a difference in the TX code, the end characters are CB vs 63.
I am not a software expert thus I can't guess if the problem is in the integration sending the password or on the envisalink side. receiving a > 4 char password.
We clearly want to have better security with passwords longer than 4 numbers....

FYI there is now a .210 firmware update for EVL4 as of 2023-11-30 that fixes the problems with passwords longer than 4 digits or characters.
For me the password problem didn't start with the .208 firmware that I got on 2023-11-16. Instead, when I got pushed .209 today (2023-11-30), my system could no longer log in via TPI with my existing 8 character alphanumeric password.
NOTE: I contacted EyezOn support and eventually got them to manually update me to .210.   I had to do this because they decided to push the .210 update out only to systems with an active TPI connection. Since my login failed with .209, my EVL4 no longer had an active TPI connection.

We clearly want to have better security with passwords longer than 4 numbers....

So if you've received .210 you can change back to a longer password.


Delete cloned files and build folders from the server after the release apk is generated

We need to add code to the python script to delete all the files that are cloned and the zips that are uploaded once the release apk is generated and saved. This is because they are just occupying server space and is not anyway required.

@mananwason how about a rm -rf  /var/www/files/$uid after each build?

@the-dagger That won't work instead I am using shutil to remove all the contents of the build directories. The command would be shutil.rmtree()


Terminal scroll bar only appearing on first instance

Weirdly it starts working when I open dev tools, maybe it needs a layout?

Confirmed regression


Cleanup methods for queries

Right now, there is no method to dispose of a query (much like disposing a group in crossfilter), other than clearing the column definition (which disposes the dimension and all of it's groupings).
There should be a .clear() function returned with the .query() promise that when called will clear the query/group from memory and deregister all listeners.

This issue is mostly dependent on #6, since we'll need to track the queries in the universe/column instance before we can manipulate it.


Examples refactor

Reorganized examples and added a readme
Added some missing examples

@ParthSareen thanks for putting things together, i will take a look and share some comments.


Cleanup webpack

close #1171

Codecov Report

Merging #1179 (6a879ee) into master (bc72507) will decrease coverage by 3.90%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1179      +/-   ##
==========================================
- Coverage   27.51%   23.60%   -3.91%
==========================================
  Files         281       87     -194
  Lines       16845     9226    -7619
  Branches      646        0     -646
==========================================
- Hits         4635     2178    -2457
+ Misses      11980     6909    -5071
+ Partials      230      139      -91

Flag
Coverage Δ

be_integration_test_latest
?

be_integration_test_v4.0.1
?

be_unit_test
23.60% <ø> (ø)

e2e_test
?

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

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


Cmdlet not in module. Use 'Connect-MSGraph'

'Connect-AutoPilotIntune' Cmdlet not in loaded module.
Summarize the change in the pull request title
Describe your change, specifically why you think it's needed.
Fixes #Issue_Number (if necessary)

@JackDDavis : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Closed as it looks like this is already being tracked.


Fix: 'Link sent!' message is not dynamically updated when changing language preference

Details
Assign the translation key for the Link Sent within onyx account message in the unlink page and use the same to translate dynamically while showing the success message.
Fixed Issues

$ https://github.com/Expensify/App/issues/18827
PROPOSAL: https://github.com/Expensify/App/issues/18827#issuecomment-1545489590
Tests

For user A go to Settings -> Profile -> Contact Method -> New contact method
Add a new contact method called B
Don't verify the method and open new tab
Enter unverified id & click continue
Click on Unlink button
Verify the success message Link Sent gets changed dynamically on changing the language preference from the footer

[X] Verify that no errors appear in the JS console

Offline tests

N/A
QA Steps

For user A go to Settings -> Profile -> Contact Method -> New contact method
Add a new contact method called B
Don't verify the method and open new tab
Enter unverified id & click continue
Click on Unlink button
Verify the success message Link Sent gets changed dynamically on changing the language preference from the footer

[X] Verify that no errors appear in the JS console

PR Author Checklist

[X] I linked the correct issue in the ### Fixed Issues section above
[X] I wrote clear testing steps that cover the changes made in this PR

[X] I added steps for local testing in the Tests section
[X] I added steps for the expected offline behavior in the Offline steps section
[X] I added steps for Staging and/or Production testing in the QA steps section
[X] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[X] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[X] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[X] I included screenshots or videos for tests on all platforms
[X] I ran the tests on all platforms & verified they passed on:

[X] Android / native
[X] Android / Chrome
[X] iOS / native
[X] iOS / Safari
[X] MacOS / Chrome / Safari
[X] MacOS / Desktop

[X] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[X] I followed proper code patterns (see Reviewing the code)

[X] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[X] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[X] I verified that comments were added to code that is not self explanatory
[X] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[X] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[X] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[X] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[X] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[X] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[X] I verified the JSDocs style guidelines (in STYLE.md) were followed

[X] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[X] I followed the guidelines as stated in the Review Guidelines
[X] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[X] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[X] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[X] I verified that if a function's arguments changed that all usages have also been updated correctly
[X] If a new component is created I verified that:

[X] A similar component doesn't exist in the codebase
[X] All props are defined accurately and each prop has a /** comment above it */
[X] The file is named correctly
[X] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[X] The only data being stored in the state is data necessary for rendering and nothing else
[X] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[X] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[X] All JSX used for rendering exists in the render method
[X] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[X] If any new file was added I verified that:

[X] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[X] If a new CSS style is added I verified that:

[X] A similar style doesn't already exist
[X] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[X] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[X] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[X] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[X] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[X] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[X] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
https://github.com/Expensify/App/assets/14358475/f1756da8-b3d8-4aca-9210-fe0414ae3c72

Mobile Web - Chrome

Mobile Web - Safari

Desktop

iOS

Android

@parasharrajat seems the other 2 occurrences of the translations within the same file can't be converted with the same logic bcoz currently the same key is used on the same page with a mixture of backend message/frontend message. That means sometimes we got the error message from the backend with api onyx response.

@parasharrajat merged with main. Sorry for not bumping for the review as my availability was less in the last couple of days.

Bump @parasharrajat

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.27-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.27-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.27-7 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


[WIP] Support for GES

Brings support for GES back into Cedar.
There are some outstanding issues.

The acceptance tests make some assumptions about the underlying store:
i. Nothing else is writing to the store while the tests run. GES uses streams internally to track stuff. So tests like Given_empty_store_when_get_head_checkpoint_Then_should_be_minus_one will naturally fail.
ii. EventId idempotency. It is perfectly acceptable to send ExpectedVersion: 5, EventId: 1 followed by ExpectedVersion: 6, EventId: 1 to GES. This is because EventId is not like a PK in the traditional sense; instead, within a single stream, it is used along with the ExpectedVersion for the idempotency check.
Backpressure still needs to be implemented. Unfortunately, GES does not use tasks when dispatching your events in a subscription. In order to ensure message ordering, an intermediate queue must be used. However, if you have a slow consumer, it is possible for this intermediate queue to fill up without bounds. The simplest solution ATM is to kill the subscription when the queue gets over a certain size. Open to suggestions here!

This PR will be rebased when master changes.

Good stuff. Lets see if this can be maintained. Going to release sql server and postgres support first.

Closing this as I won't be supporting GES directly in this project. The rename has made it clear that this is for SQL implementations only. Please run this as a separate project if it scratches your itch.


Connection aborted?

Hey,
Before you made the fork i had the following code
    websocketsclient.serviceHandlers.disconnected = function (websocket) {             setImmediate(function () {                 console.log("trying to reconnect");                 websocketsclient.start();             });     };
now it tells me websocketsclient is undefined and my connection gets aborted and i am not able to reconnect it

Yes, the websockets had to change to fix the issues with it caused by changes from Bittrex. Please see the updated documentation and examples/ folder for examples on how to use the new websockets. Additionally, I have already added that functionality to the serviceHandlers by default so you do not need to add it anymore.
I do not know what the "Connection aborted" is specifically. Please run the unit tests and/or the examples in the examples folder and let me know if they work for you or not.


DOCS-11761 v2.4 function doc build from source

replacing with doc build from support/2.4 via https://github.com/mulesoft/docs-dataweave/pull/27


Upgrade the etcd client

Currently, this module is using the v2 client of the etcd lib (github.com/coreos/etcd/client). Replace it with github.com/coreos/etcd/clientv3

closed by #2


[Enhancement] A couple more ideas

Hello,
first i need to say this tool is great already. Thanks for the work!
I have a couple more ideas which would improve it quite a bit imo.

Default location is jita. Maybe allow to change to the other trade hubs like Amarr etc. Should be as easy as changing a header in the query.

Add and option to show buy value aswell as sell value. Some items are market manipulated...

Changing the default hotkey for running a query would be nice or even auto-trigger a query when clipboard text changes.

Thanks. Great ideas.
I'm afraid with automatic clipboard trigger the tool will send any random text people copy to the server. I don't know if this will create a spamming issue or not.
If this is an issue, I may have to do some basic text validation to only send eve-related stuff.

I got the go-ahead from Evepraisal's developer. Really appreciate his support.
I think I'll put this feature in, but implement some kind of "flag check" that asks people to turn it off when things go out of control.


python310Packages.nox: 2022.11.21 -> 2023.04.22

Changelog: https://github.com/wntrblm/nox/blob/2023.04.22/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 231015 run on x86_64-linux 1

29 packages built:

cmake-language-server
cmake-language-server.dist
python310Packages.jedi-language-server
python310Packages.jedi-language-server.dist
python310Packages.lsprotocol
python310Packages.lsprotocol.dist
python310Packages.nox
python310Packages.nox.dist
python310Packages.pygls
python310Packages.pygls.dist
python310Packages.python-lsp-ruff
python310Packages.python-lsp-ruff.dist
python310Packages.ruff-lsp
python310Packages.ruff-lsp.dist
python311Packages.jedi-language-server
python311Packages.jedi-language-server.dist
python311Packages.lsprotocol
python311Packages.lsprotocol.dist
python311Packages.nox
python311Packages.nox.dist
python311Packages.pygls
python311Packages.pygls.dist
python311Packages.python-lsp-ruff
python311Packages.python-lsp-ruff.dist
python311Packages.ruff-lsp
python311Packages.ruff-lsp.dist
vimPlugins.YouCompleteMe
vscode-extensions.ms-python.python
ycmd


Improve Dashboard, Repo List, Feed

One major change that comes with 0.4 is that we no longer sync your complete repository list in the database (for reasons described in #776). Instead we use the GitHub API to fetch your repository list and your repository permissions live.
One disadvantage to this approach is that we don't have a simple way (like a database join) to tell Drone to quickly give me a list of all repositories I have access to, or a build feed for all repositories I have access to.
I believe the solution is to fetch the list of all repositories from GitHub and then to create a really big IN statement. The IN operator will get passed the list of all repository names from GitHub as demonstrated in the following example:
select *
from repos
where repo_full_name IN (?,?,?,?,?,?.....................,?,?,?,?)

I even have a function already stubbed out in the code:
func GetRepoListOf(db meddler.DB, listof []string) ([]*Repo, error) {
	var repos = []*Repo{}
	var length = len(listof)
	var qs = make([]string, length, length)
	var in = make([]interface{}, length, length)
	for i, repo := range listof {
		qs[i] = "?"
		in[i] = repo
	}
	var stmt = "SELECT * FROM repos WHERE repo_id IN (" + strings.Join(qs, ",") + ")"
	var err = meddler.QueryAll(db, &repos, database.Rebind(stmt), in...)
	return repos, err
}

According to the documentation sqlite can hold a maximum of 999 parameters in the IN statement, and mysql and postgres [1] can hold tens of thousands of parameters. I remember doing this about 10 years ago to query an Oracle database with a few million rows and it worked quite well. So I'm pretty confident this approach is technically feasible, however, I still want to understand the performance implications on large datasets for the database vendors that we support.
Until I have benchmarks that support the above design, we implement the following workarounds:

The /user/repos endpoint returns a list of all repositories to which the user has authored a commit, based on data in the builds table
The /user/feed endpoint returns a list of all builds the user has authored

I am proactively logging this issue to explain why the behavior is currently different and might appear broken, to assure everyone this is just a temporary workaround, and that I hope to have the proposed changes in place prior to the final 0.4 release.

[1] consider described optimization for postgres https://www.datadoghq.com/blog/100x-faster-postgres-performance-by-changing-1-line/

This is proving to be a bit more difficult than I anticipated. I very much like not storing user repository permissions in the database. Storing these in an in-memory cache with expiration has worked out really well.
This has also led to some complications, such as the ability to retrieve a list of all repositories in Drone (in the database) that the user has access to (list in memory). Not being able to do a simple join here really complicates things.
I considered going back to syncing, but Bitbucket doesn't include repository permissions (ie read, write, admin) when it returns a repository or repository list. This means we can sync data, but not the permissions. We would need to design a different approach to syncing than what we did in 0.3.
I'm really interested in feedback here. I would love some ideas. I'm a bit stuck and this is the last issue blocking an 0.4-alpha.1 release tag.

cc @benschumacher would love to hear your thoughts. I'm guessing that syncing repositories complicated your integrations.


[CROSSDATA-465][CORE]Insert arrays and maps

Support for maps and arrays in Insert queries with values tested in MongoDb, Elasticsearch and Cassandra.
Docs:
https://stratio.atlassian.net/wiki/display/CROSSDATA/Reference+Guide

LGTM

+1


404 in installation link from Readme

curl -IL http://apigatewaycloudformation.s3-website-eu-west-1.amazonaws.com/install/latest
HTTP/1.1 301 Moved Permanently
x-amz-id-2: 7fidhphlGddzwjtSDmoUWpDHkXE+MYUPaRwgxeZAp6kRt+TXNEhj5w8NfjPcXNR03ygoe3IwFno=
x-amz-request-id: AC2A7810742CC38E
Date: Fri, 26 Feb 2016 15:19:28 GMT
Location: /install/v.zip
Content-Length: 0
Server: AmazonS3

HTTP/1.1 404 Not Found
x-amz-error-code: NoSuchKey
x-amz-error-message: The specified key does not exist.
x-amz-error-detail-Key: install/v.zip
x-amz-request-id: 3474FD3AE480C355
x-amz-id-2: Kr2aDePPulMN8I3DBfXK/CUArFSHZIzxxK1KANvEaFxwTF44uQ2NJDP8ybYIUE0wsK+S8CcQbfU=
Transfer-Encoding: chunked
Date: Fri, 26 Feb 2016 15:19:27 GMT
Server: AmazonS3

Looks like an issue with the publish script. I'll get on it as soon as possible. In the meantime you can specify the version manually

Links fixed with a workaround. I'll look at the script when Im not on the go :)
thanks for notifying me!

Thanks. I ran into issues when specifying v1.1.4 manually as well. After
running unix/install.sh and unix/deploy.sh, I attempted to create a
stack from Test.template, it got stuck and I found this in the
cloudwatch logs for the main lambda:
Unable to import module 'lib/index':
Error at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)

On 2016-02-26 8:04 AM, Carl Nordenfelt wrote:

Links fixed with a workaround. I'll look at the script when Im not on
the go :)
thanks for notifying me!
—
Reply to this email directly or view it on GitHub
https://github.com/carlnordenfelt/aws-api-gateway-for-cloudformation/issues/16#issuecomment-189342105.

Are you still having that issue after my first fix? If so I'll have to dig in to that. My first thought is that there is something off in the packaging script.

There was an issue in the publish script, I've rectified that.
I installed v.1.1.4.zip both by specifying the version manually and by simply going with the latest version and both works fine.
Are you still having issues?

Sorry, I haven't had a chance to try it again since. I'll give it a shot today.

On Feb 26, 2016, at 10:15 AM, Carl Nordenfelt<EMAIL_ADDRESS>wrote:
Are you still having that issue after my first fix? If so I'll have to dig in to that. My first thought is that there is something off in the packaging script.
—
Reply to this email directly or view it on GitHub.

As of version 1.2.0 the update procedure has changed so this should no longer be a problem.


trying to import Dynamics 365 Workflow tools is not working

I have downloaded the zip file Dynamics365WorkflowTools_1_0_61_1.zip and then went to Dynamics 365, "Settings", "Solutions" and tried to import the file but receiving errors.

i have error too

same - please update version to exclude "marketing list" or please help guide us on what app needs to be installed to support this or the steps to remove the entity/table dependence. I LOVE this tool and am currently blocked importing it. @demianrasko


YARN-10788. TestCsiClient fails

Description of PR
Create unix domain socket in java.io.tmpdir instead of
test.build.dir to avoid 'File name too long' error.
How was this patch tested?
Locally ran the test and it passed.
For code changes:

[x] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
n/a Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
n/a If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
n/a If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 54s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
35m  6s

trunk passed

+1 :green_heart:
compile
0m 33s

trunk passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
compile
0m 28s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
checkstyle
0m 20s

trunk passed

+1 :green_heart:
mvnsite
0m 33s

trunk passed

+1 :green_heart:
javadoc
0m 28s

trunk passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 23s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
1m  2s

trunk passed

+1 :green_heart:
shadedclient
24m  5s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 26s

the patch passed

+1 :green_heart:
compile
0m 26s

the patch passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javac
0m 26s

the patch passed

+1 :green_heart:
compile
0m 22s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
javac
0m 22s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 11s

the patch passed

+1 :green_heart:
mvnsite
0m 24s

the patch passed

+1 :green_heart:
javadoc
0m 19s

the patch passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 17s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
1m  6s

the patch passed

+1 :green_heart:
shadedclient
24m 50s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
0m 38s

hadoop-yarn-csi in the patch passed.

+1 :green_heart:
asflicense
0m 33s

The patch does not generate ASF License warnings.

94m 20s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3989/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3989

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell

uname
Linux f1508123d74b 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / d994431b067b7a61a571f55a90c109f29d10f0be

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3989/1/testReport/

Max. process+thread count
565 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3989/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

Merged. Thank you @ayushtkn !


size-plugin depends on a vulnerable version of Axios

I see #48 was created by Dependabot to resolve this, but 'fixed' versions of Axios have breaking changes.
Happy to take a look at this if it helps.

I think #52 should resolve it, once the my CLA checks are passing (just needs a re-run) 🙄

Hey, I would like to help with this as well, who is active here?


(Optional) Step 3 doesn't work

Although the instructions in Step 3 connect to Azure Blob Storage, the uploaded PSTs are not shown in the tool.

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

ID: d4271558-62a9-db3c-078c-13b5e5fe99da
Version Independent ID: 813d7002-20a2-b1be-2771-975a0b1cfd48
Content: Use network upload to import PST files - Microsoft Purview (compliance)
Content Source: microsoft-365/compliance/use-network-upload-to-import-pst-files.md
Service: o365-seccomp
GitHub Login: @robmazz
Microsoft Alias: robmazz

@gkneale Thank you for your feedback. I tested and see the PST in the Blob container. If you continue to have this issue, I'd recommend contacting support via the need help section on the admin center.
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @gkneale Hope this comment is helpful for you. Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. You can contact Microsoft support via the need help section on the admin center. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Discover sensortags

Hi, there
I'm trying to make IoT environment with the SensorTag. My purposes are as below.

Several SensorTags
Multiple SensorTag BLE info transmitter, I am consider the Linux machines with Bluetooth dongle.
Programming language is going to be NodeJS with the SensorTag NPM module.

I know that python is another possible option, but I just don't even have any clue which one is the right choice.

The SensorTags could be both in and out of the range.

It means the demon has to be always discoverable, like when the SensorTag is in the range it has to try to connect with the transmitter, and when it is out of range the demon automatically disconnects the SensorTag, and releases the resource.

Now, I am trying to make a scratch using 'node-schedule', and  'async' module.
Because I could not find the way of make infinity discover logic, I decide to use 'node-schedule' to invoke discover function with the specific interval. The problem is that discover function makes some kinds of event and it doesn't close even if the SensorTag is disconnected in the end of async series.
Thus, I want to solve those problems. Any help would be appreciated. Thanks

The sample code is as below.
var schedule = require('node-schedule');
var SensorTag = require('./index');
var async = require('async');
var tags = [];
var cnt = 1;
var util = require('util');
require('events').EventEmitter.prototype._maxListeners = 100;
var rule = new schedule.RecurrenceRule();
rule.second = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30,
32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58];
var j = schedule.scheduleJob(rule, function(){
SensorTag.discover(function (sensorTag) {
util.log('count: ' + cnt++);
util.log('discovered:' + sensorTag);

sensorTag.on('disconnect', function () {
  util.log('disconnected!');
  process.exit(0);
  var index = tags.indexOf(sensorTag.uuid);
  if(index >= 0) tags.splice(index, 1);
});

async.series([
  function (callback) {
    if(tags.indexOf(sensorTag.uuid) >= 0) {
      util.log('existed, sensorTag count is ' + (tags.length));
      util.log('tags: ' + tags);
      callback();
    } else {
      util.log('new one, sensorTag count is ' + (tags.length));
      util.log('tags: ' + tags);
      tags.push(sensorTag.uuid);
    }
  },
  function (callback) {
      util.log('end of callback');
      sensorTag.disconnect(callback);
      callback();
      SensorTag.stopDiscoverAll(onDiscover);
  }
]);

});
});

@devmrko I would suggest calling discover again only after device is discovered for example:
function sensorTagDiscovered(tag) {
  // ... some connection stuff

  discoverOne();
});

function discoverOne() {
  SensorTag.discover(sensorTagDiscovered);
}

discoverOne();


AvatarView cornerRadius changes when interact with segmented control view

I have found a UI bug. See the sceenshots:

You can see its cornerRadius changed when the view is scrolled up a little and segmented control view is tapped. I think I have found the problem.
In DBProfileAvatarView.m, the imageView's cornerRadius is determined by self.frame. But when the animation happens its cornerRadius value is changed. See screenshots:

I simply just changed self.frame to self.bounds, this issue went away. See screenshots:

I would like to do a pull request to contribute, but frankly I've never done that and don't know how...... Anyway, hope this helps, and let me know what you think.

Here's a screenshot when the issue is fixed with self.bounds btw:


Make it easier to use commands with uv

Tracking issue
Related to https://github.com/flyteorg/flyte/issues/5597
Why are the changes needed?

It's hard to use uv in commands. With this PR, using uv targets the install python environment and it's simple to use. For example, we can now write:
image_spec = ImageSpec(
    name="myimage",
    registry="localhost:30000",
    packages=["numpy"],
    commands=["uv pip install scikit-learn"],
)

What changes were proposed in this pull request?

With this PR the run_commands automatically mounts the
How was this patch tested?

I ran the following workflow:
from flytekit import task, workflow, ImageSpec

image_spec = ImageSpec(
    name="myimage",
    registry="localhost:30000",
    packages=["scikit-learn"],
    pip_extra_index_url=[
        "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
    ],
    env={"UV_PRERELEASE": "allow"},
)

@task(container_image=image_spec)
def sklearn_version() -> str:
    import sklearn

    return sklearn.__version__

@workflow
def main() -> str:
    return sklearn_version()

@pingsutw Fixed it in https://github.com/flyteorg/flytekit/pull/2897/files/a4aa19755933d8998fb0797507c52fb74760a462..206c3f9618d70a98d57935c8517532b6f63f03db by updating the test to a regex.


[Feature Request]: Rename "Upload a new pipeline" to "Import pipeline" to keep consistency

Feature description
While the UI to create a new pipeline usually reports Import pipeline as button text, both in DS Project details page and Data Science Pipelines > Pipelines page, the form to create a new Run reports Upload a new pipeline for doing the same operation:

I think it would help the UX to consistently refer to the same action with the same unique text
Describe alternatives you've considered
No response
Anything else?
Screenshots from the other above mentioned pages:

Data Science Pipelines > Pipelines page

DS Project details page

@kywalker-rh ux awaiting

Thanks for catching this @bdattoma I agree, we should change the "Upload new pipeline" text to "Import pipeline" in the run creation page.

/assign


Add error message for incomplete OUTCAR

Fix https://github.com/aiida-vasp/parsevasp/issues/94
When a VASP calculation crashes before starting SCF iterations,
we fail to parse OUTCAR. This commit implements to report an error message
in such a situation.

@lan496 Thanks a lot for the contribution.


New Parser and Analyzer support Load statement【Easy】

Requirement Description
New Parser and new Analyzer support Load statement
Mentor
@HangyuanLiu
Registration procedure
Step 1. Add a comment when you sign up. The comment can be a brief self-introduction and reason for signing up, including what you do, what you're good at, what you're interested in and your technology stack, and how familiar you are with StarRocks. Example:

I pick! My name is Johnny. I am from StarRocks and I have been working on database kernel development for 1 year. I am interested in OLAP, good at C++ programming, and have been using StarRocks for 6 months. I chose to solve this issue because I am familiar with execution engine.

Step 2. On your WeChat, add the StarRocks community assistant "StarRocks-1" as a WeChat friend and leave your GitHub ID. The assistant will invite you to a WeChat group based on the issue you picked.
Step 3. The mentor will communicate with all the participants who picked this issue and assign the task to the best match.
Before you start

Read the StarRocks GitHub workflow carefully, which provides the configurations of BE and FE and describes how to submit a pull request.
To learn more about StarRocks, read StarRocks documentation.

Pull request requirements

After you complete code development, upload the code to the StarRocks code repo as a pull request (PR).

PR title format: [SR GeekCamp] + PR title
Labels ：[Geek Camp 2022/feature]

After you submit your PR, comment on the status of your PR submission as requested under the Pinned Issue [StarRocks geek Camp 2022] page.

Comment format: "I have finished Issue #" + PR link id

Hi! I wanna pick this issue! I am Xiansen Chen from ecnu. A little knowledge of c++ and java programming. I am interested in database kernel and OLAP. And I am slightly familiar with the execution part of Postgres. But I've never touched SR's kernel code.
I hope to deepen my understanding of SR through this task.


Getting "Wasted" or "Busted" during mission testing sends you to Hospital or Police Station, while also removes player's clothes.

Is this intentional behavior?

It's just an unhandled behavior, meaning the game itself does it by default. Again, not very much and want to do something about it as it does not affect it.

This wasn't the case with normal DYOM or MM, so decided to report it. You are right tho, it doesn't interfere with mission designing or gameplay. Still would be cool if it got fixed.


Related publications form

Include form for adding publications that are relevant to current gene

To me, this one is very low priority. Although perhaps simple to do...

It seems we are getting publication data from ebi, not from WikiData so this will be more complicated.
@andrewsu Any reason why we don't have related publications in WikiData? I can write a script to import them into WikiData, then refactor the module pull from WD instead.


Feature Request: Set Local Hostname in macOS.

Call scutil as described in this discussion on Stack Exchange. For example:
MHOST="myhost"    ; scutil --set ComputerName $MHOST ;  scutil --set HostName $MHOST ; scutil --set LocalHostName $MHOST ; unset MHOST

[ ] Script
[ ] Test against various versions of macOS
[ ] Preferable to integrate in to existing script
[ ] Build TUI

Status: Resolved.


Error message when execute "JCimportSort" command

Actual behavior (Required!)
Vim show an error message when execute "JCimportSort" command first time, but execute the command. This error only occurs in one project, others work without errors.
Expected behavior (Required!)
Not show the error message in any project.
The steps to reproduce actual behavior (Required!)

OS: Linux
Vim version: 8.2

The output of :redir and :message (Optional)
Error detected while processing /home/carlson/.vim/plugins/vim-javacomplete2/autoload/javacomplete/imports.vim[316]..function javacomplete#util#GetRegularClassesDict:
line   10:
E684: list index out of range: -1
E116: Invalid arguments for function extend
My own fix
To fix this error I edited the file autoload/javacomplete/util.vim and surround by if clause with class != '' condition.

May be you can make PR?

May be you can make PR?


gpu-compute: Update tokens for flat global/scratch

Memory instructions acquire coalescer tokens in the schedule stage. Currently this is only done for buffer and flat instructions, but not flat global or flat scratch. This change now acquires tokens for flat global and flat scratch instructions. This provides back-pressure to the CUs and helps to avoid deadlocks in Ruby.
The change also handles returning tokens for buffer, flat global, and flat scratch instructions. This was previously only being done for normal flat instructions leading to deadlocks in some applications when the tokens were exhausted.
To simplify the logic, added a needsToken() method to GPUDynInst which return if the instruction is buffer or any flat segment.
The waitcnts are also incorrect for flat global and flat scratch. We should always decrement vmem and exp count for stores and only normal flat instructions should decrement lgkm. Currently vmem/exp are not decremented for flat global and flat scratch which can lead to deadlock.
Change-Id: I673f4ac6121e4b5a5e8491bc9130c6d825d95fc5

@abmerop : are the waitcnt's incorrect before this patch, after this patch, or both?  I'm not sure what this wording means:
The waitcnts are also incorrect for flat global and flat scratch. We should always decrement vmem and exp count for stores and only normal flat instructions should decrement lgkm. Currently vmem/exp are not decremented for flat global and flat scratch which can lead to deadlock.
I assume it means you fixed it in this patch?

Yes, that is fixed by this commit.  I'll update the commit message (might be a while as my gem5 machine is down)

In regard to my question about the commit message, my reading after viewing the code is you are saying it was a problem before this commit, and is fixed by this commit. Maybe worth updating commit message to make this clear?

Updated commit message


Parties 3.0.0 support

@AlessioDP Thank you for addressing this, and congratulations on the new release of Parties!

@AlessioDP Thank you for addressing this, and congratulations on the new release of Parties!


Results Reproduction

Many thanks to your awesome Geoformer which gave the community another solid, and insightful work. But unfortunately I encountered some results reproduction issue with it.
I downloaded your energy_U0.ckpt and testing on it only gave me 0.0054 that is different from the number 0.0043 in your paper. I strictly followed the guide in this repo and the only thing that seems obvious different to me is that I used torch=1.10.0+cuda11.3. But I didn't feel like it would be the case leading to the issue. Can you give me some hints about this? Thanks in advance!

Hi Shihao,
Sorry for the delay. We rerun the inference process and could reproduce our results:

Maybe the cuda/torch version influences the final inference results.
Also u could retrain the Geoformer on QM9-energy U0 following the instructions in README.
Best,
Yusong and Shaoning

Hi Shihao,
Sorry for the delay. We rerun the inference process and could reproduce our results:
Maybe the cuda/torch version influences the final inference results. Also u could retrain the Geoformer on QM9-energy U0 following the instructions in README.
Best, Yusong and Shaoning

Thanks for the response! I will go create an exact same environment to see if everything works well.

It works. Thanks for your help, Yusong and Shaoning!


String2 and tags by name

During testing of string tag using an L8 Allen Bradley PLC, type returned 0x8fce. Added this number to the existing type handler.
Added tag constructor and ReadTagByName to support UDT member reading as well as normal data type tag reading without the need to call AllTags

Comment with any questions/concerns (can update in order to address issues); appreciate the consideration.

ReadTagByName seems to work properly for the UDT but not with Array (i.e. "CLOCK[3]"), I tried with a 5380.

Okay, I didn't test the arrays, let me check the documentation and come up with a solution

I see... I need to parse out the "[" and "]" and use the element ID logical segment. I'll fix it and resubmit next week

In fact, I don't currently have a ABPLC device to do test and support new features.


When will tinyxml release a new version?

When will tinyxml2 release a new version?

Soon. Patching up build. Adding pedantic whitespace.


Setting JWT Typ at a client level - is it possible?

Question
We've been using IdentityServer4 for some time and recently updated to version 4.1
We ran into the issue with legacy webapis not being able to decode the header because the type had changed from JWT to at+jwt.
One solution for us is to set IdentityServerOptions like:
"AccessTokenJwtType": "JWT",
"EmitStaticAudienceClaim": true
While this is ok for now, going forward I'm not sure this is ideal. There is only one of our webapis that has this issue because it is older. I'd like to have identity server default to at+jwt, but have the type to be set at a client level?
Is there a way to achieve this?
Another solution would be to update the webapi to allow it to set the jwt direcly, but I think it'd be nice if Idsvr gave you that flexibility.
Minimal working example
The current webapi config looks like this:
app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
            {
                Authority = Properties.Settings.Default.AuthBaseAddress,
                ValidationMode = ValidationMode.Local,
                RequiredScopes = new[] { "xxxx", "yyy" },

            });

Only by implementing your own token creation service - e.g. by deriving from DefaultTokenCreationService.

I faced the exact same issue today.  Thanks @leastprivilege for the information!
@parkinsona Here is my solution:
    public class JwtTokenCreationService : DefaultTokenCreationService
    {
        public JwtTokenCreationService(
            ISystemClock clock,
            IKeyMaterialService keys,
            IdentityServerOptions options,
            ILogger<JwtTokenCreationService> logger)
            : base(clock, keys, options, logger)
        {
        }

        public override async Task<string> CreateTokenAsync(Token token)
        {
            if (token.Type == IdentityServerConstants.TokenTypes.AccessToken &&
                token.ClientId == "TrinityClientImplicit")
            {
                token.Type = "JWT";
            }

            return await base.CreateTokenAsync(token);
        }
    }

and then in your dependency injection:
services.AddTransient<ITokenCreationService, JwtTokenCreationService>();

Thanks @leastprivilege and @TravisTX .. This was exactly what I was after. I extended mine  a little further to also inject a list of client Ids so it was a little more flexible for my needs. Ideally, I would have liked to extend the Client to include a new option, but this was all I had time for today.


Internal Server Error when trying to access Multi Region Access Point with Assuming Role.

Describe the bug
I am trying to implement lambda which will assume role and then will send a file to S3 bucket through Multi-region access point.
Lambda throws Internal Server Error exception -> See lambda details in reproduction Steps.
Expected Behavior
File should appear in S3 bucket under the Multi-Region Access Point.
Current Behavior
Below exception is thrown from line "var result  = s3Client.PutObjectAsync(putObjectRequest).Result;":
System.AggregateException: One or more errors occurred. (We encountered an internal error. Please try again.) ---> Amazon.S3.AmazonS3Exception: We encountered an internal error. Please try again. ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) at Amazon.Runtime.Internal.HttpHandler1.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.RedirectHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext) at Amazon.S3.Internal.AmazonS3ResponseHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext) --- End of inner exception stack trace --- at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleExceptionStream(IRequestContext requestContext, IWebResponseData httpErrorResponse, HttpErrorResponseException exception, Stream responseStream) at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleExceptionAsync(IExecutionContext executionContext, HttpErrorResponseException exception) at Amazon.Runtime.Internal.ExceptionHandler1.HandleAsync(IExecutionContext executionContext, Exception exception) at Amazon.Runtime.Internal.ErrorHandler.ProcessExceptionAsync(IExecutionContext executionContext, Exception exception) at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.Signer.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.S3.Internal.AmazonS3ExceptionHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T](IExecutionContext executionContext) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result() at IntegrationTests.TestFunction.FunctionHandler()
Reproduction Steps

Create Lambda function with .net 6.0 runtime:

And with below code:
public void FunctionHandler()
{
      var s3Endpoint = Environment.GetEnvironmentVariable("S3Endpoint");
      Console.WriteLine($"S3Endpoint: {s3Endpoint}");

      var assumeRoleReq = new AssumeRoleRequest()
      {
          RoleSessionName = "Session1",
          RoleArn = "<<RoleArnCreatedInPoint2>>"
      };

      var client = new Amazon.SecurityToken.AmazonSecurityTokenServiceClient();
      var assumeRoleRes = client.AssumeRoleAsync(assumeRoleReq).Result;
      var s3Client = new AmazonS3Client(assumeRoleRes.Credentials);
      var stream = GenerateStreamFromString("test1");
      var putObjectRequest = new PutObjectRequest()
      {
          BucketName = s3Endpoint,
          Key = "testFromLambda.txt",
          InputStream = stream
      };
      var result  = s3Client.PutObjectAsync(putObjectRequest).Result;
      Console.WriteLine(result);
      Console.WriteLine(result.HttpStatusCode);
}
public static Stream GenerateStreamFromString(string s)
{
    var stream = new MemoryStream();
    var writer = new StreamWriter(stream);
    writer.Write(s);
    writer.Flush();
    stream.Position = 0;
    return stream;
}

Create role with S3 full permissions and with trust relationship to allow assume this role by lambda role.
Create multi-region access point with below access point policy:

{
	"Statement": [
		{
			"Action": [
				"s3:GetObject",
				"s3:PutObject"
			],
			"Resource": [
				"<<Multi-Region-Access-Point-Arn>>/object/*"
			],
			"Effect": "Allow",
			"Principal": {
				"AWS": [
					"<<RoleArnCreatedInPoint2>>"
				]
			}
		}
	]
}

Set S3Endpoint environment variable for lambda to Arn of created multi-region access point.
Test Lambda.

Possible Solution
No response
Additional Information/Context
The same situation occurs when I try to execute the Lambda Function Code from Console Application on Windows 10 machine while I have aws credentials configured which allows to assume role created in point 2 of reproduction steps.
Also worth to mention that below powershell + AWS CLI code works correctly. This code is doing a similar job as lambda while in this situation the operation ends successfully:
$assumedRole = aws sts assume-role --role-arn $role --role-session-name $roleSessionName --output json --profile $profileName | Out-String | ConvertFrom-Json
$Env:AWS_ACCESS_KEY_ID=$($assumedRole.Credentials.AccessKeyId)
$Env:AWS_SECRET_ACCESS_KEY=$($assumedRole.Credentials.SecretAccessKey)
$Env:AWS_SESSION_TOKEN=$($assumedRole.Credentials.SessionToken)
aws s3api  put-object --body $fileToSend --bucket $multiRegionAccessPointArn --key $fileName

Version of AWS CLI:
aws-cli/2.12.7 Python/3.11.4 Windows/10 exe/AMD64 prompt/off
AWS .NET SDK and/or Package version used
Amazon.Lambda.Core 2.1.0
AWSSDK.Extensions.CrtIntegration <IP_ADDRESS>
AWSSDK.S3 3.7.200
AWSSDK.SecurityToken 3.7.200
Targeted .NET Platform
.NET 6
Operating System and version
Lambda

Hi @kpok,
Good afternoon.
I'm unsure how you have configured Lambda and roles, here are the steps that I used to reproduce the issue:

Created role testmraplambda with the AmazonS3FullAccess and CloudWatchFullAccess permissions with the following trust relationship:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "lambda.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}

Created MRAP with the following permissions policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Statement1",
            "Principal": {
                "AWS": [
                    "arn:aws:iam::<<account-id>>:role/testmraplambda"
                ]
            },
            "Effect": "Allow",
            "Action": [
                "s3:GetObject",
                "s3:PutObject"
            ],
            "Resource": [
                "arn:aws:s3::<<account-id>>:accesspoint/<<mrap-alias.mrap>>/object/*"
            ]
        }
    ]
}

Created simple Lambda function targeting .NET 6 with the following code:

using Amazon;
using Amazon.Lambda.Core;
using Amazon.S3;
using Amazon.S3.Model;
using Amazon.SecurityToken;
using Amazon.SecurityToken.Model;

[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]

namespace TestMRAPLambda;

public class Function
{
    public void FunctionHandler(ILambdaContext context)
    {
        AWSConfigs.LoggingConfig.LogTo = LoggingOptions.Console;
        AWSConfigs.LoggingConfig.LogResponses = ResponseLoggingOption.Always;
        AWSConfigs.LoggingConfig.LogMetrics = true;

        var s3Endpoint = "arn:aws:s3::<<account-id>>:accesspoint/<<mrapalias.mrap>>";
        Console.WriteLine($"S3Endpoint: {s3Endpoint}");

        var s3Client = new AmazonS3Client();
        var stream = GenerateStreamFromString("test1");
        var putObjectRequest = new PutObjectRequest()
        {
            BucketName = s3Endpoint,
            Key = "testFromLambda.txt",
            InputStream = stream
        };
        var result = s3Client.PutObjectAsync(putObjectRequest).Result;
        Console.WriteLine(result);
        Console.WriteLine(result.HttpStatusCode);
    }

    public static Stream GenerateStreamFromString(string s)
    {
        var stream = new MemoryStream();
        var writer = new StreamWriter(stream);
        writer.Write(s);
        writer.Flush();
        stream.Position = 0;
        return stream;
    }
}

Also ensured to add reference to AWSSDK.Extensions.CrtIntegration NuGet package.  Below is my .csproj file:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
    <AWSProjectType>Lambda</AWSProjectType>
    <!-- This property makes the build directory similar to a publish directory and helps the AWS .NET Lambda Mock Test Tool find project dependencies. -->
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
    <!-- Generate ready to run images during publishing to improve cold start time. -->
    <PublishReadyToRun>true</PublishReadyToRun>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
    <PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
    <PackageReference Include="AWSSDK.Extensions.CrtIntegration" Version="<IP_ADDRESS>" />
    <PackageReference Include="AWSSDK.S3" Version="<IP_ADDRESS>" />
    <PackageReference Include="AWSSDK.SecurityToken" Version="<IP_ADDRESS>" />
  </ItemGroup>
</Project>

Reference to AWSSDK.Extensions.CrtIntegration is required for SigV4a signing for MRAP integration.

While publishing Lambda project, attached role testmraplambda created previously.
Tested the Lambda from AWS console, it works fine.

I'm unsure why you need to assume a role when you would attach role to Lambda during deployment. Please let me know if I'm missing something from the reproduction steps. Are you using a different role attached to Lambda function?
Thanks,
Ashish

One common "sharp edge" with MRAPs and assumed roles is mentioned on https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiRegionAccessPointRestrictions.html

To use SigV4A with temporary security credentials—for example, when using AWS Identity and Access Management (IAM) roles—make sure that you request the temporary credentials from a Regional endpoint in AWS Security Token Service (AWS STS), instead of a global endpoint. If you use the global endpoint for AWS STS (sts.amazonaws.com), AWS STS will generate temporary credentials from a global endpoint, which isn't supported by Sig4A. As a result, you'll get an error. To resolve this issue, use any of the listed Regional endpoints for AWS STS.

V3 of the .NET SDK still defaults to the global STS endpoint. Can you check which endpoint the STS request is going to? And if it's still the global endpoint, configure it to go to a regional endpoint instead?

https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html
SecurityTokenServiceConfig exposes a StsRegionalEndpoints setting

Hi @ashovlin
Your comment helped. Thank you very much.
I replaced below line:
var client = new Amazon.SecurityToken.AmazonSecurityTokenServiceClient();
with lines:
var config = new AmazonSecurityTokenServiceConfig() { StsRegionalEndpoints = StsRegionalEndpointsValue.Regional };
var client = new AmazonSecurityTokenServiceClient(config);
and the solution started to work.
Thank you.

Glad it worked! Yeah, the defaulting to legacy for STS is an easy way to get tripped up with operations that require SigV4a, but we're waiting until the next version to change the default behavior.


Crash when using own language file

When using a language file that I trained the test app crashes when calling recognize() with an EXC_BAD_ACCESS.
It crashes in the SquishedDawg::edge_char_of() function.
The same language file works on my desktop (Mac) test program...
Any ideas what can go wrong here?
Thanks for this great project! :-)

I'm not sure why it's crashing for you with a custom language file. I've also trained a custom language file and it works fine with this library. Are you using the same image to test on both iOS and your desktop? What version of Tesseract are you using on the desktop? It might be worth checking that it matches the version we're using in this iOS library (version 3.03 release candidate 1) and that your custom language file was trained for this version.
If the above ideas don't turn up a reason for the crash, would you be willing to email me your custom language file so I can try to reproduce the crash? You can email it to me at kcon AT stanord DOT edu.

For reference, @Jaykob emailed me his trained data file and a sample image.
I copied lotto.traineddata to my /usr/local/share/tessdata folder and then ran tesseract -l lotto lotto.jpg stdout (where lotto.jpg is the image he sent me and lotto.traineddata is the language file he sent me). The result is:
[1]    57507 segmentation fault  tesseract -l lotto lotto.jpg stdout
Here's the output of running tesseract -v on my desktop:
tesseract 3.03
 leptonica-1.71
  libjpeg 8d : libpng 1.6.13 : libtiff 4.0.3 : zlib 1.2.5 : libopenjp2 2.1.0

I'm running the same versions of tesseract and leptonica that are used in this iOS library. Since both my desktop version and the iOS version crash, my thinking is that there might be an issue with the custom language file. Particularly, maybe you created it using an older version of tesseract that is incompatible with version 3.03?

Sorry for not writing back here.
I tested it on my Mac with the compiled googlecode trunk version from yesterday and it works fine...
Following is the output of tesseract -v:
    tesseract 3.04.00
    leptonica-1.71
      libgif 4.2.3 : libjpeg 9a : libpng 1.6.16 : libtiff 4.0.3 : zlib 1.2.8 : libwebp 0.4.2 : libopenjp2 2.1.0

Could you maybe give me a script or some hints on how to compile the trunk version into an iOS framework? Then I could test if I could compile my current version and see if it works. I tried training the language file with the current version but it didn't make any difference. Originally I trained it with 3.02 or 3.03

Oh I see, I hadn't considered that the trunk version would actually be their development for version 3.04. I think that would explain the incompatibility; maybe version 3.04 has some changes that break backwards-compatibility for trained language files.
Since the trunk looks like it's their development branch, I wouldn't try to build it for an iOS framework yet since it's probably unstable. But if you want to try that, everything you need is in this repo under the TesseractOCR folder in the root of the repository. Read the instructions here, taking care to use the trunk version of tesseract instead of the 3.03-rc1 version linked: https://github.com/gali8/Tesseract-OCR-iOS/blob/master/TesseractOCR/README_howto_compile_libaries.md You'll also need to change the TESSERACT_LIB  variable in the script, https://github.com/gali8/Tesseract-OCR-iOS/blob/master/TesseractOCR%2Fbuild_dependencies.sh, accordingly to match the name of the tesseract source folder you use. Also note that I don't think we have a "TesseractOCRAggregate" target anymore (step 4 in the instructions), but I think once you complete step 3 you can just try the Template Framework Project example app in the workspace project and see if it works.
I'm not sure which version you mean when you say "I tried training the language file with the current version but it didn't make any difference", but it's actually really easy to install version 3.03-rc1 on Mac if you have homebrew installed (http://brew.sh/). And that's the version this library uses, so at least you'll know they match.Try:
brew update
brew install tesseract --devel

(note that you might first have to uninstall your version 3.4.0 with homebrew if you used homebrew to install it)
That should install version 3.03-rc1, which is what I have installed on my computer. I used this version to create a custom language file that works with this iOS library, so hopefully it will work for you as well if you re-create your language file after installing version 3.03-rc1.
If that doesn't work, you could also (possibly again if you already have) try using version 3.02 to train your language file, which would just involve removing the --devel flag in the homebrew command above.

Brilliant! Got it working thanks to your great guide and build script :-)
Seems to me like a bug in 3.03-rc1 which they fixed in the meantime.
Thanks again for your help and the great work!