text:
Deprecations tracker

This issue contains parts that are deprecated.
Deprecated parts have to be announced in the release notes and if related to the pipeline config via the linter / etc.
Active deprecations (remove in next major)

https://github.com/woodpecker-ci/woodpecker/pull/3918
https://github.com/woodpecker-ci/woodpecker/pull/3652
https://github.com/woodpecker-ci/woodpecker/pull/3927
https://github.com/woodpecker-ci/woodpecker/pull/3846
https://github.com/woodpecker-ci/woodpecker/pull/3174
https://github.com/woodpecker-ci/woodpecker/pull/3785
https://github.com/woodpecker-ci/woodpecker/pull/3839
https://github.com/woodpecker-ci/woodpecker/pull/3845
https://github.com/woodpecker-ci/woodpecker/pull/3916
#3961
#3966
#3483
#3969
#3968
#3970

no PR yet

default in #3016
update Docker to v27
https://github.com/woodpecker-ci/woodpecker/pull/3222
uppercase secrets env var https://github.com/woodpecker-ci/woodpecker/pull/3375
#3695

Seems, in no PR yet category only update Docker to v27 left.

authors: anbraten zc-devs

repo: woodpecker-ci/woodpecker


text:
'@puppeteer/browsers' is classified as cjs?

I have noticed that @puppeteer/browsers seems to be classified as cjs although the exports map contains both require and import. It looks like dual esm/cjs packages might not be always detected correctly?
Also, I verified that for @puppeteer/browsers the ESM version is correctly picked up by Node's module loader.

Impossible to track every engine, and what it will end up with, and whether that actually works at runtime.
But, "type": "commonjs", is what I see, and that's probably what the code uses to decide. Instead of looking further.
PR welcome, if you want to look into this!

source: gharchive/issue

authors: OrKoN wooorm

repo: wooorm/npm-esm-vs-cjs

license: MIT

license_type: permissive

license_source: github-api


text:
Several emojis not being converted to unicode

Speaking_head does not get converted to emoji. I see just :speaking_head: instead of 🗣
No_entry produces the following error, if used ⛔ :

TypeError: Cannot read property 'names' of undefined
    at visitor (retext-emoji/index.js:109:22)

PRs welcome!

i fixed this issue already. it is due to i have compression svg file, then found out that Safari Browser is not able decode it properly. so that i exclude to do compression if using Safari Browser.
https://github.com/wooorm/retext-emoji/issues/16

Closed by 321e8948b7f8498917e595f28d8bdb85c5233d9f.

authors: Rulikkk omaijdot wooorm

repo: wooorm/retext-emoji

license: mit

license_source: bigquery


text:
Confused by setup instructions

I'm trying to use slate-angular for the first time and following the instructions on the home page. I'm confused why "Add Text Mark" step has us include <slate-leaves [context]="context" [viewContext]="viewContext" [viewContext]="viewContext"></slate-leaves> as the template, but in your demo the template is blank. Also, why is [viewContext]="viewContext" in there twice?

If you use 16.1.0-next.0 and later versions, you do not need to add <slate-leaves [context]="context" [viewContext]="viewContext" [viewContext]="viewContext"></slate-leaves >, [viewContext]="viewContext" Assigning value twice is a low-level error.
We have made some architectural improvements in version 16.1.0-next.0 to improve the rendering performance of slate-angular. One of the changes is that custom text components and custom element components no longer need to add <slate- leaves [context]="context" [viewContext]="viewContext"></slate-leaves> and <slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext" ></slate-children> component, I will update the README document and corresponding Demo later. Thank you for your feedback.

@pubuzhixing8 I'm trying to update to the latest version, but this part seems to confuse me as well. Is there now no means to define where in the template the children outlet goes? Is the expectation now to have a component for each HTML element?

repo: worktile/slate-angular


text:
Extra attack fixes

Fix timeline to make it more readable for extra attacks. (merge tooltips into one when overlap is nearly exact)
Fix metrics bug where extra attack shows up as normal then normal shows up as extra when procced during extra atack swing() call.
Model saving of extra attacks using stopattack. (and add option to macro for crusader strike, DS, and CS)
Fix attack.go to work with stored extra attacks.
Also fixed the WS AP buff incorrectly adding AP for the full 1.5 seconds
Fix weapon procs to be ignored on SoM, (was on JoM instead - incorrectly)
Make blackblade Haste stack, fix atats amount.
Make shadowstrike scale with sp.
Ready for review

ready for merge or more testing you want to try it yourself

source: gharchive/pull-request

repo: wowsims/sod


text:
Crash Report 930528023

Link:
https://wowsims.github.io/wotlk/mage/#eJztUj1II0EY3fdlieOqOEaLMcSgW8kdwiRLQKusViksAjaWimhlcdh5VZDjDixUUASDhZVoIWijYuIPooWFIiIWghqighwiik2689usjd0VXnevmffe9+abj5mxIoLakcICDuqXgFXQHnAKFEAPQJcloNAKF70IkUb43BxDMD3cPzo4IiAD4TVYtbKQI/XYZAcP92lnkyxTLubJqpa3bBeb7MArexUyt0VqOsrpItslTnPUS9fIn1yZD9kmK4PlDddnIu+yUr7kyQ54wVp5wpVf/k6/51Oe1GyEyeQOqUyUyUauTEz5e9sbZHfLiy1zbCJqGWwsrJMtBHRV2uzDlyky/uMDvvPlSOrFN3SFLCFNtzoVTFPICJuC1MA4vsYdrXVCO06MV6eNOQutY+w7DpOEE4t7hpOIFaHE6zHJP8eklu+p+e6MWgtnpEvX/LXMZ1RkYVzCyJJhX1Fl+fjMkFvnD9LgNmbnPBwlO3znNNkyVMZFMr5CzT1K/PP3++F+RpfM0cGn9Pkb+HfVfeV2+rqUTKEPb+SpdNE=
RNG Seed: 4192803988
runtime error: invalid memory address or nil pointer dereference
Stack Trace:
goroutine 17 [running]:
runtime/debug.Stack()
/opt/hostedtoolcache/go/1.18.7/x64/src/runtime/debug/stack.go:24 +0x6
github.com/wowsims/wotlk/sim/core.runSim.func1()
/home/runner/work/wotlk/wotlk/sim/core/sim.go:59 +0x10
panic({0xdf020, 0x1122690})
/opt/hostedtoolcache/go/1.18.7/x64/src/runtime/panic.go:838 +0x29
github.com/wowsims/wotlk/sim/core.(*Aura).Activate(0x0, 0x158f290)
/home/runner/work/wotlk/wotlk/sim/core/aura.go:494 +0x2
github.com/wowsims/wotlk/sim/mage.(*Mage).registerMirrorImageCD.func1(0x158f290, 0x1516a00, 0x17ed800)
/home/runner/work/wotlk/wotlk/sim/mage/mirror_image.go:36 +0x8
github.com/wowsims/wotlk/sim/core.(*Spell).applyEffects(0x17ed800, 0x158f290, 0x1516a00)
/home/runner/work/wotlk/wotlk/sim/core/spell.go:423 +0x23
github.com/wowsims/wotlk/sim/core.(*Spell).makeCastFuncWait.func1(0x158f290, 0x1516a00)
/home/runner/work/wotlk/wotlk/sim/core

Thanks for the report, fixed by #1859.

repo: wowsims/wotlk


text:
Problemas de Conexão Chatwoot

Não consigo conectar o WPPConnect Server com o Chatwoot.
Minha configuração
VM na Vutr com 4GB e 2vcore
SO Debian 11
WPPConnect Server 1.7.1
Chatwoot 2.10
Testado SEM e COM docker.
Tentei

Com DOMÍNIO e com SSL (letsencrypt)
Com IP + Porta
Com IP + Porta entre Containeres (no docker)

No LOG do WPPConnect não aparece nada e não consta erros.
Uso: Na API do Chatwoot
https://wpp.meudominio.com.br/api/MINHASESSAO/chatwoot
Uso no StartSession do WPPConnect (com a sessão correta)
{
"webhook": null,
"waitQrCode": true,
"chatwoot": {
"enable": true,
"baseURL": "https://chatwoot.meudominio.com.br",
"token": "MEUTOKENDEUSUARIODOCHATWOOT",
"inbox_id": "1", <-- correto
"account_id": "1" <-- correto
}
}
Onde posso estar errando? ou é bug?
Consigo usar os 2 normalmente separadamente, mas não consigo conectar um ao outro.

Decobri, chave "chatwoot", tem o W maiusculo "chatWoot":{}

repo: wppconnect-team/wppconnect-server


text:
Segmentation fault when trying to create foreign class

Currently, when the bind foreign class callback returns { NULL, NULL } like the following:
WrenForeignClassMethods APITest_bindForeignClass(
    WrenVM* vm, const char* module, const char* className)
{
  WrenForeignClassMethods methods = { NULL, NULL };
  return methods;
}

Any attempt to create a class in Wren will result in segmentation fault.
In https://wren.io/embedding/storing-c-data.html, the code example given does just that.
I think Wren should throw an error about foreign class not defined when allocateFn is NULL.
I also suspect that Wren might crash when a foreign class's finalizeFn is NULL, but I haven't tried that.

To reproduce it, simply replace the above function in test/api/api_tests.c and run:
> bin/wren_test test/api/foreign_class.wren
fish: Job 1, 'bin/wren_test test/api/foreign_…' terminated by signal SIGSEGV (Address boundary error)

Should trigger an error/assert in debug mode.

Should trigger an error/assert in debug mode.

I simply ran make to build the static library.
Anyway, I think { NULL, _ } should mean no foreign class is found. The current behavior is inconsistent with bindForeignMethodFn, where returning NULL means no method is found and raise an error.

Possible duplicate of #811

Should trigger an error/assert in debug mode.

foreign class A {
    construct new() {}
}

var a = A.new()

authors: CrazyInfin8 locriacyber mhermier

repo: wren-lang/wren


text:
Introduce RawValue abstraction

This MR introduces a "WrenRawValue" abstraction. This is a tricky API, so this PR is in part for discussion.
Firstly, this MR incorporates a rebased version of the changes from #911. Since the new trace hook is called on every garbage collection, this is pretty much necessary to not have horrendous performance issues.
Currently the internal Value representation (NaN boxing or not) is currently not exposed as a part of the ABI, and I wanted to preserve that. Therefore WrenRawValue is defined as a simple union:
typedef union WrenRawValue {
  uint64_t  bits;
  void     *ptr;
} WrenRawValue;

When NaN boxing is use, we just stuff the NaN boxed value into the bits member. When NaN boxing is not in use, we just stuff Object pointers directly into ptr. For other value types (Bool, num, etc), we box them by constructing a (newly introduced) ObjIValue to wrap them. The handling of these boxes is entirely contained within the RawValue logic, so the rest of the code need not be concerned.
This MR of course also adds functions to move values between stack slots and WrenRawValues, and one to initialize a RawValue to NULL.
It also adds a trace callback to foreign classes, which is how the GC becomes aware of RawValues. This is the tricky part of the API: it is users' responsibility to properly trace all of their RawValues.
Things I'm especially interested in commentary on:

Is this a direction we want to go? (This kind of interface is definitely something I want for my usage of Wren)
Naming (RawValue and ObjIValue), since neither of them make me particularly happy
General thoughts on the implementation.

--
One other thing I have considered is an alternate (or even complementary) implementation of this concept where the values are guaranteed pointer sized. This is useful when encapsulating references in C APIs which give a "void *userdata" pointer or similar. This would have a similar implementation, but would necessitate the use of ObjIValue boxing on 32-bit platforms even with NaN tagging. Ideally I think I'd have both for efficiency reasons, but I realize having two complementary ways of doing the same thing (even in the 'advanced APIs' section!) could be confusing

By the way: one long term direction I see coming out of adding these trace hooks is that it would allow List, Map, etc to be less special cased inside the interpreter - they could just be another foreign class, and provide a trace hook like those do, even though they'd use the internal Value representation directly instead of the public RawValue abstraction.

The idea is interesting, though I found the change set to be not atomic
enough. Maybe a better name would be "WrenWeakValue" instead of
"WrenRawValue".
There is at least the obligatory typo ("internAAl") and maybe others.

I'm most curious on the use case here like what do you want those bits for? in particular since we have WrenHandle it seems to overlap with, the use case is unclear atm.

WrenHandle roots the target object - preventing it from being garbage collected. This does not - it only keeps the target object alive as long as some object is tracing it through the trace hook.
Effectively this allows foreign classes to hold references to other objects without issues such as causing uncollectible reference cycles

As for WrenWeakValue - weak values in other languages automatically set themselves to NULL if their target is freed; this isn't the case here (any RawValue you don't trace will be left dangling)
I don't think RawValue is a good name, but I did want to convey 'this is a somewhat advanced API which needs to be used with care'

While I agree this solution is elegant, there is maybe another solution that would bring more to some in the long run. Allowing Foreign to have data members. In practice it means to fusion in a unique struct the following ones:
https://github.com/wren-lang/wren/blob/4ffe2ed38b238ff410e70654cbe38883f7533d3f/src/vm/wren_value.h#L418-L428
And than, with the dedicated API around it, we can access all values in any forms and not only pointers to Obj.

authors: erincandescent mhermier ruby0x1


text:
Difficulty with GU501G

I compiled and ran rogauracore. No errors and everything looks reasonable to me, but the colors aren't actually changing. I noticed the PR for the GM501 had my vendor and product id, but that my smbus is showing up on a different i2c. (7 instead of 0). I'm not sure if this is helpful, but here's some more information. Is there anything else I can provide that might help add support for this device?
sudo i2cdetect -l
i2c-3	i2c       	i915 gmbus dpd                  	I2C adapter
i2c-1	i2c       	i915 gmbus dpc                  	I2C adapter
i2c-6	i2c       	Synopsys DesignWare I2C adapter 	I2C adapter
i2c-4	i2c       	DPDDC-A                         	I2C adapter
i2c-2	i2c       	i915 gmbus misc                 	I2C adapter
i2c-0	i2c       	i915 gmbus dpb                  	I2C adapter
i2c-7	smbus     	SMBus I801 adapter at efa0      	SMBus adapter
i2c-5	i2c       	Synopsys DesignWare I2C adapter 	I2C adapter

sudo i2cdetect 7
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- 35 36 -- -- -- -- -- -- -- -- --
40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

It's interesting that the current code actually finds the device in the libusb device list, but for whatever reason that message doesn't cause a color change.
 sudo ./rogauracore -v single_static ff0000
parse color ff0000
interpreted color 255 0 0
args:
color1 255 0 0
color2 232 28 127
color3 0 0 128
color4 3 0 0
speed 0
single_static
constructed 1 messages:
message 0: 5d b3 00 00 ff 00 00 00 00 00 00 00 00 00 00 00 00
Initialising libusb
Initialised libusb.
Found 5 USB devices.
Checking device 1d6b:0003, address 1
Checking device 13d3:56a2, address 2
Checking device 8087:0aaa, address 4
Checking device 0b05:1866, address 3
Found ROG Aura Core keyboard.
Opened USB device.
Auto detach kernel mode set.
Claimed interface 0.

If I update iface to 7 in the py script, just to check, it throws a nasty error.
sudo python3 ./rogauracore.py single_static ff0000
Traceback (most recent call last):
  File "./rogauracore.py", line 262, in <module>
    main()
  File "./rogauracore.py", line 244, in main
    dev, iface, active_iface = acquire_usb()
  File "./rogauracore.py", line 80, in acquire_usb
    raise e
  File "./rogauracore.py", line 75, in acquire_usb
    usb.util.claim_interface(dev, iface)
  File "/usr/lib/python3/dist-packages/usb/util.py", line 205, in claim_interface
    device._ctx.managed_claim_interface(device, interface)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 102, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 167, in managed_claim_interface
    self.backend.claim_interface(self.handle, i)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 811, in claim_interface
    _check(self.lib.libusb_claim_interface(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

I feel like this might be overkill on the information, but I was really excited to see this project and I'm happy to help debug on my hardware if you come up with anything to test!

Thanks for trying to help add support for my device! I think it is similar to that issue, and I'm not entirely sure how to validate that, though.

Yes, I can confirm. None of the options work on my hardware.
I do not have a dual boot system. When I did have Windows on this machine, I was able to change the keyboard colors. Right now they're set to blue, for example.
I'm not sure about Aura Sync. Aura Core was what I had factory installed.
Not that I'm aware of. Note: the backlight on the lid is actually the backlight from the screen and not a color changing LED.

I'll follow bug #8.

I have a gu501 as well and the program doesnt error, but doesnt change. For example... I want to do single static blue:
sudo rogauracore -v single_static 0000ff
parse color 0000ff
interpreted color 0 0 255
args:
color1 0 0 255
color2 0 0 0
color3 0 0 128
color4 3 0 0
speed 896
single_static
constructed 1 messages:
message 0: 5d b3 00 00 00 00 ff 00 00 00 00 00 00 00 00 00 00
Initialising libusb
Initialised libusb.
Found 7 USB devices.
Checking device 152d:0578, address 2
Checking device 1d6b:0003, address 1
Checking device 13d3:56a2, address 3
Checking device 046d:c53f, address 2
Checking device 8087:0aaa, address 5
Checking device 0b05:1866, address 4
Found ROG Aura Core keyboard.
Opened USB device.
Auto detach kernel mode set.
Claimed interface 0.

repo: wroberts/rogauracore


text:
更新数据

更新

更新数据

repo: wsgouwan/NeteaseCloudMusicApi


text:
chore(feat): add 2077 research resource

PR Template
Guidelines for Content

All resources should be submitted in markdown format in their respective subfolders in /content.
The filename should be a 'slugified' version of the title.
Date formats should be in YYYY-MM-DD.
Properties with a ? are optional.

Properties

title: string
description: string (max. 240 chars)
content: string
authors: Array
date?: Date
level: 'All' | 'Beginner' | 'Intermediate' | 'Advanced'
tags: Array
languages: Array
url: string
alternateUrl?: string
dateAdded: Date

Additional Notes

Please check and use existing tags from the site https://www.useweb3.xyz/tags - Do not use any other tags. If you feel like something is missing, please create a separate issue/PR.
Please check and use existing programming languages from the site https://www.useweb3.xyz/tags - Feel free to add new languages, but only submit actual programming languages (not protocols or other tags).

Thank you for your contribution!

Thanks for adding!

authors: losndu wslyvh


text:
Issues when creating custom gadgets

I'm unable to create custom gadgets:

For bar chart,I'm getting the following error:
Uncaught Error: Unrecognized scale type: int(11)
-For donut chart,I'm getting a new extra item 'undefined' in the legend

Other questions please, how to support new types,for ex double bar chart?

couldn't reproduce


text:
Include the DB availability check we have on our k8s scripts into our standard startup scripts

Problem
Requesting DB availability check we have in our k8s scripts be included in our standard startup script. This will be helpful in case they start the server before the DB server has started.
Solution
Add logic similar to our K8s startup script
Reference to the k8s startup script - https://github.com/wso2/kubernetes-apim/blob/9faab3a92189f10f9d299d7b055efd08560c7040/simple/am-single/templates/am/instance/wso2am-deployment.yaml#L40
Affected Component
APIM
Version
No response
Implementation
No response
Related Issues
No response
Suggested Labels
No response

@Arshardh - Have you made a decision to include this for APIM 4.3.0? If so the customer would like to know what technique we'll use for this so that they can modify their startup scripts on the current version accordingly.

authors: Arshardh viduras


text:
[CLOSED] VSCode plugin fires code lens requests continuosly

 Issue by nadeeshaan
Tuesday May 04, 2021 at 11:57 GMT
Originally opened as https://github.com/ballerina-platform/plugin-vscode/issues/389

Description:
$title

Fixed in swan-lake-beta.1-rc1.


text:
Modify hasMore() to hasMoreElements() and add debug logs

Purpose
Resolves wso2/product-is#6035
Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

Unit tests

Code coverage information

Integration tests

Details about the test cases and coverage

Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes/no
Ran FindSecurityBugs plugin and verified report? yes/no
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes/no

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

No need to update 4.4.x branch as it is no longer in active development.
With PR https://github.com/wso2/carbon-kernel/pull/2149, this change will be available in 4.5.x

authors: denuwanthi jsdjayanga


text:
Complete linguistic review for the API tutorial in Streaming Integrator.

Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? Yes
Ran FindSecurityBugs plugin and verified report? Yes
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? Yes

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

authors: CLAassistant RukshiW


text:
[3.2.0] API Context and Version Appended Twice in Publisher Test Console when using Swagger 2.0

Description:
The Publisher Test Console is appending the Context path and the Version of the API twice for Swagger 2.0 definitions. The OpenAPI definitions are working without any issues. Please find the screenshot of the Publisher Test Console for this behavior

Steps to reproduce:

Start API Manager v3.2.0
Deploy the sample Pizzashack API (which has a Swagger 2.0 definition)
Demote it to created state if it has been published and select Test Console to activate the Test Console (in Prototype mode)
Try-out the API

Affected Product Version:

WSO2 API Manager v3.2.0

This is fixed in public with https://github.com/wso2/carbon-apimgt/pull/10056


text:
APIM 2.0.0 does not start when the MB db is corrupted

Description:

APIM 2.0.0 does not start when the MB db is corrupted.
Related Logs:
[Framework Event Dispatcher] ERROR ApplicationRegistry org.wso2.andes.kernel.AndesException: Connecting to database failed with jndi lookup : WSO2MBStoreDB. data source username : wso2carbon. SQL Error message : General error: "java.lang.ArrayIndexOutOfBoundsException:
[Framework Event Dispatcher] ERROR Main Exception during startup. Triggering shutdown
org.wso2.andes.kernel.AndesException: Unable to initialise application registry
Suggested Labels:

Suggested Assignees:

Affected Product Version:
APIM 2.0.0
OS, DB, other environment details and versions:
Linux
Steps to reproduce:
This error goes away after replacing the corrupted MB_DB.
Related Issues:

I’m closing this issue because it has been inactive for more than two years. Please reopen if you still encounter this issue with the latest version.

authors: gnudeep isharac


text:
[Error][Publisher]API Creators can upload .pem type certificates

Test Case: API creator attepmt to upload invalid file types as end point certificate
{.txt} {.jks}  {.pem} {.key} {.ca-bundle}
Error encountered: API creators can upload .pem type certificates


text:
NPE prints at APIM side server log for migrated 3.1.0 Is-km setup

Description:
The apim server log has been printed the following exception when it calling the key template retriever.
Exception in thread "Timer-13" java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:203)
	at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
	at java.util.Arrays.asList(Arrays.java:3800)
	at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWebService_aroundBody6(KeyTemplateRetriever.java:117)
	at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWebService(KeyTemplateRetriever.java:116)
	at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.run_aroundBody0(KeyTemplateRetriever.java:55)
	at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:51)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)

Steps to reproduce:

Setup APIM 3.0.0 with is-km 5.9
Create, Publish, Subscribe and invoke API for both tenant and super tenant users
Do the migration steps the for APIM 3.1.0  with is-km 5.10
Start the Iskm first and the APIM
APIM prints NPE for timer task to retrieve templates

Affected Product Version:
3.1.0
Environment details (with versions):
Mac Os
DBs:
Mysql, PostgreSQL

Optional Fields
Related Issues:

Suggested Labels:

Suggested Assignees:

This is reproducible in normal  APIM3.0.0 - iskm5.10  setup.
It seems there is a difference between ResourceAccessControl configuration at identity.xml at Iskm as it has been configured as default-access="deny"

Solution:
We have to make the following config[1] to true for Is-km.
"resource_access_control.default_access_allow":true,
[1] https://github.com/wso2/carbon-identity-framework/blob/master/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/org.wso2.carbon.identity.core.server.feature.default.json#L405

In real deployment adding the following configuration to deployment.toml file resides in the <IS_KM>/repository/conf folder will solve the issue
{code}
[resource_access_control]
default_access_allow= true
{code}

Thanks. We will fix this issue via WUM.

@SiluniPathirana, yeah it worked for me. thanks.


text:
OAuth code/access token generation outage for one hour prior to daylight saving time shift

Describe the issue:
When generating authorization codes, access tokens, etc, IS converts the server time to UTC time and sends it to the DB to be stored in the TIME_CREATED column[1]. The TIME_CREATED column is of type TIMESTAMP hence the values sent to populate these columns are converted from the current DB time zone to UTC time for storage[2].
TIME_CREATED TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,

Consider the following scenario:

Identity server time zone - US/Eastern
DB server time zone - US/Eastern

For code/tokens generated between the server time 2021-03-13 21:00:00 - 2021-03-13 22:00:00 EST, the corresponding UTC time would after conversion from the identity server would be as follows.

Server Time(EST)
UTC Time

2021-03-13 21:00:00
2021-03-14 02:00:00

2021-03-13 21:15:00
2021-03-14 02:15:00

........
........

2021-03-13 21:45:00
2021-03-14 02:45:00

2021-03-13 22:00:00
2021-03-14 03:00:00

For US/Eastern, daylight saving began at 02:00 on Sunday, March 14. i.e at 2am the clocks go ahead one hour, thus skipping the hour between 2am to 3am. Notice that the UTC time values are between 2am to 3am, these values are invalid in the  US/Eastern time zone.
IS sends the above UTC time values to the MySQL server to store in the TIME_CREATED column.
MySQL DB tries to convert the values sent from the identity server from its time zone(US/Eastern) to UTC time for storage, however, the values sent in between 2021-03-13 21:00:00 - 2021-03-13 22:00:00 EST are not valid values in the MySQL DB time zone which results in errors similar to the following.
Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '2021-03-14 02:35:06.817' for column 'TIME_CREATED' at row 1

How to reproduce:
Set server timezone to US/Eastern.
Set the DB server time zone - US/Eastern, in MySQL you can set it by using the following commands.
SET time_zone = 'US/Eastern';
SET GLOBAL time_zone = 'US/Eastern';

Change the server time to 2021-03-13 21:00:00 EST,
Start the server, register a SP, and generated an oAuth code/access token.
Between the 1hour time period - 2021-03-13 21:00:00 - 2021-03-13 22:00:00 EST, codes/tokens cannot be generated and the server cannot be used for authentication.
I have tested this with MySQL, it seems that the TIMESTAMP type is being used for the TIME_CREATED column in other databases as well. They might also show similar behavior.
One option to get around this issue would be to have the DB server in the UTC timezone that does not observe daylight savings.
If there are no other options, it should be added to the documention[3], that the DB server is expected to be in UTC.
Environment information :

Database: [MySQL]

[1]https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/dao/AccessTokenDAOImpl.java#L197
[2]https://dev.mysql.com/doc/refman/5.7/en/datetime.html
[3]https://is.docs.wso2.com/en/5.9.0/setup/changing-to-mysql/

Documentation issue has been created and tracked https://github.com/wso2/product-is/issues/11495

Adding to @tharakawijekoon description, if we use the Java Time API (i.e. Instant.now() instead of new Date()) to set the time the token was issued [1], there would be no need to convert the time to UTC at [2] as it will be already at UTC timezone.
[1] https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/bcbb7dcbbed34a8794d9dd169a645ad51dd4f26e/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/token/handlers/grant/AbstractAuthorizationGrantHandler.java#L394
[2] https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/bcbb7dcbbed34a8794d9dd169a645ad51dd4f26e/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/dao/AccessTokenDAOImpl.java#L198-L201

This needs to be added to docs. There is a doc issue opened. https://github.com/wso2/product-is/issues/11495. Will close this issue once the doc is addressed. Adding doc label to this issue

Hi Doc team,
Could you please share an update on this concern?
Thanks,
Eshani

authors: jcgarciaa karunarathneeshani nilasini piraveena tharakawijekoon


text:
Password reset via console is not working.

Describe the issue:
Password reset via console application is not working properly in following 2 use-cases.

When password policies are enabled the password reset is not working.

https://user-images.githubusercontent.com/41188245/213606234-99bdf5e9-8af1-479f-9247-5d73a994eb0d.mov

When user resets both error and success messages will appear.(But the password will update in this scenario.)

https://user-images.githubusercontent.com/41188245/213611320-86153bda-278e-4dcf-8422-78a5c27e303a.mov
How to reproduce:

Create a new user
Log in to management console
Enable password pattern and password history
Log in to console and try to change password of the created user

Expected behavior:

Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version:  IS 6.1.0
OS:  Mac
Database: H2

Case 1: When password policies are enabled the password reset is not working

Password policy is not getting validated from the FE level.

Case 2: When user resets both error and success messages will appear.(But the password will update in this scenario.)

Fixed with: https://github.com/wso2/identity-apps/pull/3746

Tested
https://user-images.githubusercontent.com/47152272/214764208-4f513225-1d14-4bc3-8c72-dc7356120b92.mov

authors: melanisilva mpmadhavig


text:
How to fix vulnerability basic authentication for management console

we are using IS 5.1.0, we have vulnerability raised for basic authentication getting used for the Management Console .
I know we can go for SAML based authentication, is there any other way to get rid of this.
Thanks,
Umar Shaik

Hi @umarshaik5
Can you please drop a mail to security@wso2.com with a detailed description of the vulnerability, our security team [1] will get back to you immediately.
[1] - https://wso2.com/security


text:
Give a disclaimer to users when trying to navigate away from unsaved forms

Is your feature request related to a problem? Please describe.
In Developer/Admin portals edit views, different sections have individual submit buttons to save the changes. If a user accidentally switches to a different tab or a page, all the changes will be lost.
Describe the solution you'd like
It would be better to show a disclaimer message when the forms are not pristine to improve UX.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!

authors: brionmario isharak


text:
Toml configurations for several features needs to be added to the templates

Describe the issue:
The template configurations for the following features are not available.

Per-user account locking feature and template NotifyUserExistance.
Auto-login after password recovery.
Skip returning the challenge question recovery option, if the user doesn't have challenge questions answer.
Numeric only OTP for password recovery and REST API to disable/enable SMS based password recovery.
Revoke tokens in logout.
https://github.com/wso2/product-is/issues/9425

Environment information

Product Version: IS 5.10.0-KM Only

https://github.com/wso2-support/update-artifacts/pull/736


text:
Bump Dependencies #5104992060

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/5104992060

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant jenkins-is-staging


text:
Update identity-apps versions

This PR update the identity-apps component versions.

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6636338385

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6636338385
Status: success

authors: NipuniBhagya jenkins-is-staging


text:
[integration tests] Pre issue access token with auth code grant type

Description
This adds integration tests for the pre issue access token action execution flow with the authorization code grant type.
This covers the test cases for the following scenarios.

Add, replace, remove custom scopes
Add, replace, remove aud claim
Add custom claims - (data types supported: string, number, boolean, string array)
Replace expires_in claim

A mock server has been set up using Wiremock to simulate the external service. The mock server runs locally on the port 8587.
Related Issue

https://github.com/wso2/product-is/issues/20842

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/10889799691

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.9 out of 10 committers have signed the CLA.:white_check_mark: Shenali-SJ:white_check_mark: Binara-Sachin:white_check_mark: BimsaraBodaragama:white_check_mark: mpmadhavig:white_check_mark: DonOmalVindula:white_check_mark: madurangasiriwardena:white_check_mark: ThaminduR:white_check_mark: malithie:white_check_mark: sadilchamishka:x: jenkins-is-stagingYou have signed the CLA already but the status is still pending? Let us recheck it.

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/10889799691
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/10933030325

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/10933030325
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/10954597109

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/10954597109
Status: success

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/10992889892

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/10992889892
Status: success


text:
JSON array convert to object in MI

Description
When using the above XPath, the JSON is converted to a JSONObject, and upon changing the message type back to JSON, single-element arrays are converted into objects.JSON object
Steps to Reproduce
Use ForEach mediator with a Filter mediator to loop through a JSON, as described below.
<foreach expression="//profiles[1]/attachments" id="Itr1">
    <sequence>
        <filter xpath="//attachments/type='PHOTO'">
            <then>
                <property description="Read Photo" expression="//attachments/base64" name="Photo_value" scope="default" type="STRING"/>
                <property name="messageType" scope="axis2" value="application/json"/>
            </then>
            <else>

                        </else>
        </filter>
    </sequence>
</foreach>

Affected Version(s)
MI 4.2.0.86
OS, DB, other environment details and versions
No response
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

Already fixed in master this issue is to add a property to restore previous behaviour

authors: malakaganga veneerac


text:
Siddhi http-response source does not support chunked responses

Description:
When Siddhi http-response is used with a long-polling endpoint (which returns chunked content), the source waits until it receives the whole content. This will not work with long polling endpoint. Hence when the source receives each chunk, it should start the process simultaneously.

Resolved hence closing.

authors: lasanthaS minudika


text:
Pass a list of fieldnames to populate_obj

Hi,
I think it would be useful to be able to pass a list of field names to include in populate_obj
and also if most of the fields will be copied, a parameter of fields to exclude
for example:
form.populate_obj(user, include=['name', 'phone', 'email'])
form.populate_obj(user, exclude=['special_field'])

Makes sense. I can write the code if it is likely to be accepted.

Yes - I really like this idea too - populate_obj is currently useless on more complex models as you can't set values for things that don't exist (at least in Flask-SQLAlchemy).

There is already a pull request for this - https://github.com/wtforms/wtforms/pull/159

Superceded by both #159 and #147

authors: aphillipo bngsudheer crast typology

repo: wtforms/wtforms


text:
vov checkpointing raises error Expected to mark a variable ready only once.

I use vovnet as backbone. In the setting of vovnetcp, it seems use the checkpointing technique to save gpu memory. But I got the error.
Expected to mark a variable ready only once. This error is caused by one of the following reasons: 1) Use of a module parameter outside the forward function. Please make sure model parameters are not shared across multiple concurrent forward-backward passes. or try to use _set_static_graph() as a workaround if this module graph does not change during training loop.2) Reused parameters in multiple reentrant backward passes. For example, if you use multiple checkpoint functions to wrap the same part of your model, it would result in the same set of parameters been used by different reentrant backward passes multiple times, and hence marking a variable ready multiple times. DDP does not support such use cases in default. You can try to use _set_static_graph() as a workaround if your module graph does not change over iterations.
Parameter at index 328 with name img_backbone.stage5.OSA5_3.ese.fc.bias has been marked as ready twice. This means that multiple autograd engine  hooks have fired for this particular parameter during this iteration.
Does it mean that in distribution training setting I can not use checkpointing?

I have no error when running VOV backbone in terms of our config files.


text:
Dataloader incorrectly batches fields with the same name from different entities.

With dataloader enabled, federation gateway seems to have issues with resolving fields with the same name from different entities.
Dataloader seems to build the batch request based on the result of parent resolution. That combined with how batchFetchState.next method expects to be called sequentially for each item in batch request, can cause dataloader to return incorrect entities.
Given following subgraphs:
Books
type Book @key(fields: "id") {
	id: ID!
	isbn: String!
}

Movies
type Movie @key(fields: "id") {
	id: ID!
	title: String!
}

Authors
interface Media {
	id: ID!
}
extend type Movie @key(fields: "id") {
	id: ID! @external
}
extend type Book @key(fields: "id") {
	id: ID! @external
}
type MovieMedia implements Media {
	id: ID!
	media: Movie! @provides(fields: "id")
}
type BookMedia implements Media {
	id: ID!
	media: Book! @provides(fields: "id")
}

type Author {
	name: String!
	media: [Media!]
}

type Query {
	authors: [Author!]
}

For client query
{
  authors {
    name
    media {
      id
      ... on MovieMedia {
        media {
          id
          title
        }
      }
      ... on BookMedia {
        media {
          id
          isbn
        }
      }
    }
  }
}

Result without dataloader
{
  "data": {
    "authors": [
      {
        "name": "John Doe",
        "media": [
          {
            "id": "book-id",
            "media": {
              "id": "book-id",
              "isbn": "1-4028-9462-7"
            }
          },
          {
            "id": "movie-id",
            "media": {
              "id": "movie-id",
              "title": "Superhero movie"
            }
          }
        ]
      }
    ]
  }
}

Result with dataloader
{
  "data": {
    "authors": [
      {
        "name": "John Doe",
        "media": null
      }
    ]
  }
}

Full repro: https://github.com/Dennor/graphql-go-tools-bad-resolution

Sure. I'll try to take a stab at creating a test case today.

I've created a PR with test case, I do however have to be honest that this PR is quite bad, as in, rather than highlighting the issue, it does that by proposing a solution. The problem I had for this test case is that I wasn't sure how to write it in one place as it feels that solving it would require changes in different components.

repo: wundergraph/graphql-go-tools


text:
Is it ready for production yet ?

Hi ! I just wanted to know if that project was "production ready" already, according to the maintainers.
I am asking for me and my team since we want to go full graphql & microservices without the crazy prices of Apollo.
Thank you in advance !

@loockeeer graphql-go-tools has been ready for production for several years. It is used in productions by countless companies today. :)
If you have a specific question or concern, you can contact us on Discord: https://discord.gg/CHU4sUJhQ9

authors: Aenimus loockeeer


text:
Compile error - need a new version tag for execution

#795 removed graphql_datasource.WithWSSubProtocol, and removed the usage of that in two files in execution/engine.
Upgrading to rc.43 or rc.44 of the v2 package is now incompatible with the latest published tag for engine (1.0.1)
from go.mod:
github.com/wundergraph/graphql-go-tools/execution v1.0.1
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.44

go build output of my project using both:
# github.com/wundergraph/graphql-go-tools/execution/engine
../../../go/pkg/mod/github.com/wundergraph/graphql-go-tools/execution@v1.0.1/engine/config_factory_federation.go:450:23: undefined: graphql_datasource.WithWSSubProtocol
../../../go/pkg/mod/github.com/wundergraph/graphql-go-tools/execution@v1.0.1/engine/config_factory_federation.go:458:23: undefined: graphql_datasource.WithWSSubProtocol
../../../go/pkg/mod/github.com/wundergraph/graphql-go-tools/execution@v1.0.1/engine/engine_config.go:153:23: undefined: graphql_datasource.WithWSSubProtocol
../../../go/pkg/mod/github.com/wundergraph/graphql-go-tools/execution@v1.0.1/engine/engine_config.go:161:23: undefined: graphql_datasource.WithWSSubProtocol

Please make a new execution version tag to fix.  Thanks.

Hi @mattjohnsonpint, Thank you for reporting. Created a new tag for execution v1.0.2

authors: JivusAyrus mattjohnsonpint


text:
Wildcard CORS does not work

Bug description
The CorsConfiguration type recommends to use ['*'] as the value to all origins. However when I set the wildcard values I continue to get cors issues. Setting the domains manually works fine, but any wildcards in the domain seems not to work at all.
export interface CorsConfiguration {
    /**
     * AllowedOrigins is a list of origins a cross-domain request can be executed from.
     * If the special "*" value is present in the list, all origins will be allowed.
     * An origin may contain a wildcard (*) to replace 0 or more characters
     * (i.e.: http://*.domain.com). Usage of wildcards implies a small performance penalty.
     * Only one wildcard can be used per origin.
     * Default value is ["*"]
     */
    allowedOrigins: ConfigurationVariable[];

How to reproduce

Go to 'wundergraph.config.ts'
Change 'allowedOrigins to ['*']
Run
See error when loading data from any origin

Expected behavior
CORS allows all origins
WunderGraph information
cors: {
    ...cors.allowAll,
    allowedOrigins: ['*']
}

Environment & setup

OS: Windows, deployed to Ubuntu in production

WunderCtl Version
0.94.2

We were trying to replicate this issue on wunderctl 0.100.0, and seems it works fine. Please reopen this issue if you see it again.

repo: wundergraph/wundergraph


text:
Requesting access to gello_mechanical source files (Solidworks)

(Mirror of email sent to phil80301@berkeley.edu)
Hey Phillip :)
The GELLO work is super impressive & helpful to the community :D
I'm interested in making a UR10 variant and, to that end, I'd like to request access to the gello_mechanical source files (Solidworks) as per the repo's README.
Thanks!

i'am also very interested in  make the model with different UR robot. Could I also get  access to the gello_mechanical source files(Solidworks),
Thanks so much!


text:
Request: a Cache evicted by max allowed size

So the application doesn't run out of memory.

Hi! Could you try HashCache? It limits the maximum size of the container thereby being able to help prevent OoM.

The problem is when a value is 1-10MB each, some are 1KB, so in this case the limit of keys are hard to use.

Oh, interesting problem. I guess a new type of memory allocators that raises an error when a certain threshold is reached will be required, e.g., using the allocator_api implementing it will be possible. => if AllocError is raised, evict an entry from the container and retry allocation. However, not sure if this crate is the right place to implement it.

I am saying just evict the oldest items when user limit is reached, you already know the value size, evict as many you need until the threshold is reached. Let us say the user gives 1G limit, when cache insert is done, you start evict check based on this user value.

Also would be useful for the user to be able to update the size while instance has been created, so user can do dynamic resize if more ram is available.

Basically your don't handle any memory for the user, only allow them to set the max key+value size before eviction.

It’s not that trivial because the crate is oblivious of any indirect heap memory allocation incurred during construction of K and V; it knows the size of K and V as they are Sized but it does not account for any Box or Arc in K and V. Accounting for the allocated heap memory size is a memory allocator’s job - AllocError is one way a memory allocator can give information to the consumer - ex: this crate - and then the consumer will be able to react to it - ex: this crate evicts an entry.
So I’d suggest that you build a custom memory allocator using the allocator_api then this crate will be able to adopt it. What do you think of it?

Got it, thanks.

authors: beckend wvwwvwwv

repo: wvwwvwwv/scalable-concurrent-containers


text:
 - did you register the component correctly

Version & browser
Which component
multi-select
Steps to reproduce the problem
Reproduce link
Expected behavior
Actual behavior

#174

authors: az-iB wxsms

repo: wxsms/uiv


text:
Reactive recalculating startingSlice

Browser and uiv version
Chrome 61. Latest uiv.
Which component
Pagination
Steps to reproduce the problem
provide pagination component with v-model, total-page, max-size then asynchronously provide it with different total-page and/or max-size
In my case I am getting max pages asynchronously from API. And binding it to computed property in my component via vuex.
Expected behavior
To reactively recalculate sliceStart.
Actual behavior
Recalculating only on value change.

Merged.

authors: pixlo wxsms


text:
进入FaceTrackingDemoActivity就crash

进入FaceTrackingDemoActivity就crash

Fixed: https://github.com/wysaid/android-gpuimage-plus/commit/d45b42da55da553cce797253d89085dfec348201

repo: wysaid/android-gpuimage-plus


text:
readme.md中bibliography前未加-，另外生成的参考文献中没有标题

1，bib遗漏了-
pandoc:
  filters:
    - pandoc-citeproc
  extra:
    bibliography: "/path/to/bibfile.bib"

可能是pandoc的问题，而非本插件的问题 -___-。
我设置如下，参考文献正常，但是title无法生成。必须自己在md文件中写入节标题吗？

# hexo-renderer-pandoc
pandoc:
  filters:
    - pandoc-citeproc
  extra:
    - bibliography: "/home/sd44/xueshu/dingjia/ref/refs.bib"
  meta:
    - link-citations: true
    - reference-section-title:“Reference”

3，关于freemind主题的，能否让右侧目录可以随着下拉而滚动？
4，没想到这个包也是wzpan写的，哈哈，一直在用你的主题……

谢谢指出，fixed；
是指“参考文献”这个标题吗？一般都是要自己写的吧，在 LaTeX 中就是需要自己写。
我以前也考虑过这个问题，不过有时候文章一长，目录中的标题不够放就会出现有些项目永远展示不出来。也许等我有空了可以再试试。
哈哈。说来惭愧，因为pandoc太重，有些平台安装起来很繁琐，所以我自己改成用 markdown-it 了。

设置 bib 文件时，由于 extra 键下的键值对 - key: value 会被以 --key value 的形式传给pandoc，而 bibliography 设置的格式为 --bibliography=FILE。我尝试了一下如下的方法，似乎可行：
  extra:
    - "bibliography=./test.bib": # 注意这里的冒号

至于 reference-section-title，我没有在 pandoc 的文档里找到类似的设置。不过我想象，这个功能应该可以通过一个简单的 pandoc filter 实现。

谢谢，我这里边在meta里加的 bib... : "whereis.bib"这样倒是没问题。
另外，ref那个不搞了，因为我先用pandoc将tex文件转为md文件，这样他就会自动加入“参考文献”一节了。
在 2019-02-07四的 16:03 -0800，Ritsuka写道：

设置 bib 文件时，由于 extra 键下的键值对 - key: value 会被以 --key value 的形式传给pandoc，而
bibliography 设置的格式为 --bibliography=FILE。我尝试了一下如下的方法，似乎可行：
extra:    - "bibliography=./test.bib": # 注意这里的冒号
至于 reference-section-title，我没有在 pandoc
的文档里找到类似的设置。不过我想象，这个功能应该可以通过一个简单的 pandoc filter 实现。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/wzpan/hex
o-renderer-pandoc","title":"wzpan/hexo-renderer-
pandoc","subtitle":"GitHub repository","main_image_url":"
https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open
in GitHub","url":"
https://github.com/wzpan/hexo-renderer-pandoc"}},"updates":{"snippets":[{"icon":"PERSON","message":"@RichardYan314
in #23: 设置 bib 文件时，由于 extra 键下的键值对 - key: value 会被以 --key value
的形式传给pandoc，而 bibliography 设置的格式为  --bibliography=FILE。我尝试了一下如下的方法，似乎可行：\r\n\r\n YAML\r\n  extra:\r\n    - \"bibliography=./test.bib\": # 注意这里的冒号\r\n\r\n\r\n至于 reference-section-title，我没有在 pandoc
的文档里找到类似的设置。不过我想象，这个功能应该可以通过一个简单的 pandoc filter
实现。"}],"action":{"name":"View Issue","url":"
https://github.com/wzpan/hexo-renderer-pandoc/issues/23#issuecomment-461642329
"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "
https://github.com/wzpan/hexo-renderer-pandoc/issues/23#issuecomment-461642329
",
"url": "
https://github.com/wzpan/hexo-renderer-pandoc/issues/23#issuecomment-461642329
",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

repo: wzpan/hexo-renderer-pandoc


text:
Corridor URLs in atlas-enriched-dataset-graph return 404

file properties lead to https://cns-iu.github.io/hra-cell-type-populations-supporting-information/data/corridors/RUI_LOCATION_ID.glb but the corridors do not live there anymore. Currently, they are at https://github.com/x-atlas-consortia/hra-pop/tree/main/deprecated-corridors

This will be fixed in next run (v0.6).

Update 4/9/24: corridors will be on hra-kg (LOD server): https://lod.humanatlas.io/
Also, @bherr2 will add corridor-cache

Update 4/23/24:
corridor-cache will be added in v0.10.2.

Will be fixed with 0.10.2.

repo: x-atlas-consortia/hra-pop


text:
add namespace

添加Element-plus 使用 namespace 命名空间的功能

done

repo: x-extends/vxe-table-plugin-element


text:
同一个页面的多表格编辑功能报错

可复现的链接：
No
问题描述与截图：
我在tab标签页当中切换table，但是每个table的ref都是xTable，激活编辑的代码是copy文档里面的

                  <vxe-table
                    show-overflow
                    align="null"
                    :data="table[1]"
                    keep-source
                    ref="xTable"
                    :edit-config="{trigger: 'manual', mode: 'row'}"
                    :scroll-y="{enabled: false}">

...
<vxe-column title="Action" width="130" align="center">
  <template #default="{ row }">
    <template v-if="$refs.xTable.isEditByRow(row)">
      < vxe-button @click="cancelRowEvent(row, false)">Save</vxe-button>
      < vxe-button @click="cancelRowEvent(row, true)">Cancel</vxe-button>
    </template>
    <template v-else>
      < vxe-button @click="editRowEvent(row); updateData();" >Edit</vxe-button>
    </template>
  </template>
</vxe-column>

期望的结果：
无报错
操作系统：
Mac 12.5.1
浏览器版本：
Chrome 105.0.5195.125
vue 版本：
"vue": "^2.6.14",
vxe-table 版本：
"vxe-table": "^3.3.14",

isActiveByRow 方法也用过了，同样的报错，表格的内容无法正常显示

正常显示应该是

双击编辑模式不会报错，只有isActiveByRow和isEditByRow会报错

repo: x-extends/vxe-table


text:
表格行和列选中状态的颜色跟 --vxe-ui-font-primary-color不一致

这个需求解决了什么问题：
可以解决：不必另设值替换column和row选择项当前的颜色值
建议的 API 是什么样的：
No response
是否已有其他不错的替代方案：
设置--vxe-ui-font-primary-color之后自动修改变量的颜色
是否使用当前最新版本？

[X] 我已确认是使用当前的最新版本。

参考下图


text:
автоматическое закрытие скобки

После выбора вашего типа файла (1C-BCL) во всех вкладках и во вновь открытых файлах, не зависимо от типа файла, после символа ( автоматически вставляется символ ).
Версия VSCode 1.7.1.

Насколько я понимаю, это в свете вот этой проблемы https://github.com/Microsoft/vscode/issues/15625
Действительно, мы не учитываем данную настройку. Спасибо за баг-репорт.
/cc @bambr1975

Перенёс в основной репозиторий 1c-syntax https://github.com/xDrivenDevelopment/1c-syntax/issues/229


text:
Таблица значений из макета

Подскажите, пожалуйста, реализована ли возможность загрузки таблицы значений в переменную из макета?
И будет ли в дальнейшем возможность загрузки из макета данных в универсальные коллекции значений (таблица значений, список значений, структура) ?
Для чего мне это нужно: я хочу протестировать функцию, которая возвращает результат сложного запроса. Эта функция может возвращать большое количество строк. Заполнять все строки ожидаемой таблицы значений кодом - долго и ненаглядно.

По пунктам:

Подскажите, пожалуйста, реализована ли возможность загрузки таблицы значений в переменную из макета?

Нет, не реализовано.

И будет ли в дальнейшем возможность загрузки из макета данных в универсальные коллекции значений (таблица значений, список значений, структура) ?

Пока не было такой необходимости.
Для тестирования данных с помощью макетов-образцов в продукте есть утверждения

ПроверитьРавенствоТабличныхДокументовТолькоПоЗначениям
ПроверитьРавенствоТаблиц

Схема тестирования при сравнении с образцом:

исходные данные (образец, таблица значений и т.п.) заранее сохраняются в макет (можно через ЗначениеВСтрокуВнутр, можно через преобразование в табличный документ или любым другим способом)
в начале кода теста из макета получаем исходную таблицу данных
выполняется основной код, получается таблица данных
далее обе таблицы просто сравниваются указанными утверждениями
все :)

Понятненько. Будем применять.

authors: artbear progromaking


text:
Add more jest resources to the test environment

Following this issue, we would like to add more resources from jest than just expect and toBe.
Let's discuss which ones to add.

My expectation here would be that AskScript programmer with Jest gets the same tools that TypeScript programmer gets so all these https://jestjs.io/docs/en/expect should accessible

This is a lot of resources (around 60).   Would we need to implement each of them by specifying a separate resource({......}) or is there any magic that could do the job for us?

Using @jest/globals might be a way to go, per issue https://github.com/xFAANG/askql/issues/356

repo: xFAANG/askql


text:
[FEATURE REQUEST] Fully manual mode

I love this plugin but I prefer to perform the image operations (convert, resize etc) manually on-demand. I would love if there was a way to set it to not make any automatic changes.
I would like to just right click on the image → Convert to JPG etc.
Or, run a command from the Command Palette...

Hey, many thanks!
From 1.2.21 you will be able to right-click on the image and convert, compress or resize it.

At some point I might add some menus, submenus, templates etc. - allowing customization in the right-click context menu -  but not just yet.

Hey @xRyul thanks for your continued progress on this!
I updated to 1.2.22 this morning. Is it normal for the right click menu to have a blank entry on the top? see below (this is right click from reading mode)

repo: xRyul/obsidian-image-converter


text:
push actual version to latest or stable

since more as 4 weeks the actual Version beta-5 is working fine, think about to push the version to stable, please.
:-)

I don't know if I should do this again, the endless waiting for the pull request to be taken care of. With 2 adapters that I had put in, I withdrew the request again, the pull request was open for 6 months and since September 9th there had been no more action I didn't want to wait anymore and closed and withdrawn it.
Therefore, I am thinking about whether I should do it.
I will let you know here if I let you do it in the repo or not.

@xXBJXx I'm very sorry (again) that this happened but times are hard and reviews need time. We are current at the moment, so revieews do not need that long ;-)

PS: ANd I gave review feedback some days after you closed it ... go ahead and bring your stuff :-)

Go @xXBJXx give yourself a jerk, the adapter is good and belongs in the repository ;)

I would be happy as well if this adapter is available in beta/stable :-)

@Feuer-sturm
I am currently working on a new config page as soon as it is finished and the adapter is adapted to it I will put it into the beta but this could take a while as I have a lot to do at work at the moment and hardly get to program it
this is how it could look in the end

@xXBJXx Thanks for the feedback :-)

I would also love it if the adapter was in the official ioBroker repository.

@macpo The adapter is currently being completely rebuilt, as soon as that is finished it will also be added to the repository

I saw it and wanted to give you an additional feedback, that there are more people who like your work and think it is worth to be found easier by more people.

looks like adapter not maintained any more. Issue closed.

looks like adapter not maintained any more. Issue closed.

Sorry to say 'yes you're right'.
xXBJXx cannot maintain it's adapters any longer - at least currently. We all hope, that he will continue his great work later - but this cannot be estimated currently.
Please take a look at ioBroker.fullybrowser (https://github.com/arteck/iobroker.fullyBrowser). Maybe this adapter can help.
If not, please raise a issue at fullyBrowser, mayb arteck can enhance  its adapter.
At least I could transfer this adapter to iobroker-community-adapters. BUT I will not have sufficicent time to enhance it or to fix problems. So we would need to check if this is an option first.


text:
kafka cluster health check

实时监控: 在集群上建立一个专门的topic, 监控程序实时的写入数据, 但无法写入或写入耗时达到阈值时报警;

基础监控: cpu, 磁盘IO, 网卡流量, FD, 连接数等;

Topic流量监控: 监控topic的生产和消费流量, 特别是流量突增的情况, 快速找出害群之马, 可以通过kafka的jmx来获取相关的数据, 使用Grafana来显示和报警;

目前是不支持grafana吗

@zhuzhan 支持设置grafana连接，在kafka-manager中设置。作用只是用来快速超链接

authors: TrumanDu zhuzhan

repo: xaecbd/KafkaCenter


text:
AppEvent FacebookUninstallTracker

I would like to track app uninstalls. Could you support the AppEvent FacebookUninstallTracker?
Thanks

@Jagbri  Thanks for getting on contact.  @SotoiGhost  should be able to help you.
Regards

@Jagbri The current Facebook NuGet for Android has support for FacebookUninstallTracker. Please, follow FB guide to learn more abut this. Here's an example of how you can use it on your Activity:
Xamarin.Facebook.AppEvents.FacebookUninstallTracker.UpdateDeviceToken (Firebase.Iid.FirebaseInstanceId.Instance.Token);

You will need to install Xamarin.Facebook.Android, Xamarin.Facebook.Marketing.Android and Xamarin.Firebase.Messaging NuGet packages.
Best!
Israel Soto.

authors: Jagbri SotoiGhost newky2k

repo: xamarin/FacebookComponents


text:
Skia Sharp Mobile Blazor Bindings

Hi @Eilon and @mattleibow, I think this is just about ready to go except for the issues noted below with the SKGLCanvas, which I'm a bit stuck with. Any thought from either of you?
Created a wrapper project to allow Skia Sharp to be used in Mobile Blazor Bindings Apps. Ideally this will be distributed as it's own Nuget.
Fixes #167

API Summary
In a razor component add an SKCanvasView from the Microsoft.MobileBlazorBindings.SkiaSharp namespace.
SKCanvasView
@using Microsoft.MobileBlazorBindings.SkiaSharp
...
<SKCanvasView @ref="CanvasView"
                            OnPaintSurface="PaintSurface"
                            VerticalOptions="LayoutOptions.FillAndExpand" />

Add a method to the component called PaintSurface  which takes an SKPaintSurfaceEventArgs parameter. The canvas is accessed using e.Surface.Canvas. The simplest usage is to clear the canvas and apply a color.
private void PaintSurface(SK.SKPaintSurfaceEventArgs e)
{
            var canvas = e.Surface.Canvas;
            canvas.Clear(SKColors.Crimson);
}

The PaintSurface method will automatically be called once when the view renders. If you want it to update again this is done by calling InvalidateSurface on the View which is accessed with @ref=CanvasViews
public SKCanvasView CanvasView { get; set; }
public void Update()
{
    CanvasView.InvalidateSurface();
}

SKGLView
The SKGLView is basically the same as as the SKCanvasView but it is GPU accelerated. In high performance situations this can be useful but in my experience the SKCanvas view is much more popular. The only difference to the API is that the PaintSurface method accepts an SKPaintGLSurfaceEventArgs as the parameter.
There is currently an issue with the SKGLView not working with the Renderer Dispatcher on Android. See known issues below.
Sample
See the SkiaSharpPlayground in control gallery for samples.
Once you have a View wired up with a method to handle PaintSurface, usage is exactly the same as SkiSharp.Views.Forms which has lots of examples around. https://github.com/xamarin/xamarin-forms-samples/tree/master/SkiaSharpForms
Documentation
Documentation PR is in progress, I'll finish it up once we've got this ready to merge.
Known Issues
I'm having problems with using the SKGLView on Android.
I declare an the paint surface event in Razor Syntaxt OnPaintSurface="PaintSurface". This works fine on iOS and fine on the SKCanvas but not on the GPU accelerated SKGLView.
When SKGLViewHandler tries to dispatch the event I run into all sort of weird problems

For use on iOS DispatchEventAsync must not be inside InvokeAsync()
Sometimes I'll get the error on Android "The current thread is not associated with the Dispatcher" which can be fixed with InvokeAsync
If it does run, the view will only update once or twice, but some times I need to call it lots of times close together
If I try to add break point the app crashes completely
Sometimes the crash happens when you try to access the Canvas through the event args
All issues go away if you add the even using the NativeControl instead of using Razor Syntax
To see these issues run the Control Gallery on an Android, click Skia Playground, click Skia GL Paths MBB Events
To see the GLCanvas working correctly by bypassing dispatcher run the Control Gallery, click Skia Playground, click Skia GL Native Control Events

Solution changes

Added MobileBlazorBindings.SkiaSharp Project
Added samples to Control Gallery
Added Build Configurations to allow testing on iPhone

Questions

Can we release this as a separate Nuget? Or will people have to use source? Or someting else?
Given the SKGLView is not essential and it has issues on Android, should we leave it out, or include it without the broken event that can be worked around, or include it with the bug, or do you have any thoughts on fixing the threading issue?
I didn't use the generator because it's such a small API surface(and I couldn't get it to work) but all the features are there. Does that matter, do you want the generated file included for consistency?
@mattleibow have I missed any features?

The Android issue is most probably this https://github.com/mono/SkiaSharp/issues/1465
I need to rework how all this works because there are a few issues on Android:

updates not synced to the screen refresh rate
updates not on the UI thread

Is it possible to allow rendering on a background thread in Blazor? UWP also allows this option. It is good for games because then the UI is not impacted by a high framer ate.

Thanks Matt.
That's interesting, I'm not quite sure if it is related to that, given it works perfectly when I add the event to the Forms control directly instead of using the MBB renderer.
e.g.
//This works
(CanvasView.NativeControl as SK.SKGLView).PaintSurface += SkiaSharpGLPlayground_PaintSurface;
//This doesn't
OnPaintSurface="PaintSurface"

If you're going to rework some threading stuff, that might be the cause, I think the best solution for this project is to remove the SKGLView until the Android threading issues are under control in SkiaSharp, and release this with SKCanvasView only for now. I'm happy to provide more info or test things out if I can help.
As far as rendering goes in Mobile Blazor Bindings, it is all handled by Xamarin Forms so I think all the same rules would apply. i.e. Android and iOS need to be updated on the main thread. This is complicated a little by the way MBB keeps its own UI tree and decides when to update things using the NativeComponentRenderer and Dispatcher. But I think it all boils down to Xamarin.Forms controls that must be updated on UI thread.
In WebBlazor I have found that StateHasChanged() must be called on the UI thread. StateHasChanged() is a bit like NotifyPropertyChanged but it triggers an update of the whole UI instead of just bits bound to a property. That sounded slow to me at first but they do it with clever diffing so it only changes the relevant bits, like in MVU.

Seems fair to leave the SKGLView out for now.

I've fixed all suggestions, thanks for those.
I've removed the SKGLView, Handler and all relevant samples. I've kept the code on a separate branch so we can bring it back if we work out the threading issues or if someone requests the feature and is happy to work around the limitations.

It's in!

Oh and I just added this so that it will publish NuGet packages to the feed: https://github.com/xamarin/MobileBlazorBindings/commit/c082e29c385517751d31899dd5f6782dbfd633b2

authors: Eilon lachlanwgordon mattleibow

repo: xamarin/MobileBlazorBindings


text:
Same description given for the different values

Hello,
Under Fields section, for the values True and False same description is given: "Indicates that the status bar should not be hidden."
Regards.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: L2VuLXVzL2RvdG5ldC9hcGkveGFtYXJpbi5mb3Jtcy5wbGF0Zm9ybWNvbmZpZ3VyYXRpb24uaW9zc3BlY2lmaWMuc3RhdHVzYmFyaGlkZGVubW9kZQ==
Version Independent ID: L2VuLXVzL2RvdG5ldC9hcGkveGFtYXJpbi5mb3Jtcy5wbGF0Zm9ybWNvbmZpZ3VyYXRpb24uaW9zc3BlY2lmaWMuc3RhdHVzYmFyaGlkZGVubW9kZQ==
Content: StatusBarHiddenMode Enum (Xamarin.Forms.PlatformConfiguration.iOSSpecific)
Content Source: docs/Xamarin.Forms.PlatformConfiguration.iOSSpecific/StatusBarHiddenMode.xml

Thanks for submitting this issue! We'll be sure to get to it.
Closing now since it's a duplicate of #148

authors: archchancellor rachelkang


text:
[Bug] missing AppResources key causes Translate XAML extension to crash the app

Description
when using the Translate XAML extension and the resource key is missing from the resources file, the extension will throw an exception that causes the app to crash
Stack Trace

Link to Reproduction Sample

Steps to Reproduce

set up a Xamarin.Forms project using the LocalizationResourceManager and add some resources to AppResources.resx
in the main page's XAML, specify a label with the text being translated using the Translate extension but enter a resource key that is missing from the AppResources.resx file.
run the app and watch it crash.

Expected Behavior
I think it would be good for the extension to show the missing resource key specified, possibly wrapped in asterisks or something to show that the resource key was missing, rather than crashing the entire app
Actual Behavior
the app crashes
Basic Information

Version with issue: 1.3+
Last known good version: don't know, but probably never
IDE:VS2019 for Max
Platform Target Frameworks:

iOS:  15.2
Android: 11
UWP: N/A

Android Support Library Version:
Nuget Packages: Xamarin.Forms 5.0.0.2337, Xamarin.CommunityToolkit 2.0.0, SyncFusion.Xamarin 19.4.x.x
Affected Devices: all

Workaround
N/A
Reproduction imagery

@mrbelk thanks for the report. Out of interest do you get a meaningful exception message as part of the crash?

Yes, it’s a NullReferenceException that includes the resource key name, but Xamarin Forms, so it’s easy to identify the offender, but obviously it’s after the fact.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Shaun Lawrence @.>
Sent: Saturday, February 19, 2022 3:20:46 AM
To: xamarin/XamarinCommunityToolkit @.>
Cc: Matthew R. Belk @.>; Mention @.>
Subject: Re: [xamarin/XamarinCommunityToolkit] [Bug] missing AppResources key causes Translate XAML extension to crash the app (Issue #1813)
@mrbelkhttps://github.com/mrbelk thanks for the report. Out of interest do you get a meaningful exception message as part of the crash?
—
Reply to this email directly, view it on GitHubhttps://github.com/xamarin/XamarinCommunityToolkit/issues/1813#issuecomment-1045965875, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIKID5SUVV47JPUXJYER23U35HF5ANCNFSM5OVJTPSA.
You are receiving this because you were mentioned.Message ID: @.***>

NRE is expected here. The error message should contain missed text

The compile-time checking captures this very well in code; but it's "rude" to throw an exception rendering an entire page because of a missing resource key (when that's not really a "fatal" type of condition that warrants a response like that, IMO). Simply informing the UI in a kinder, gentler way that the resource key is missing, while telling the viewer which key was actually missing, makes more sense to me.

What about throwing the exception on Debug and in Release we just return the Key? I used this approach in several of my apps.

Sounds reasonable to me

authors: VladislavAntonyuk bijington mrbelk pictos

repo: xamarin/XamarinCommunityToolkit


text:
Error: Cannot find module 'chai'

I followed the installation steps and this is my karma.conf.js:
module.exports = function (config) {
  config.set({
    basePath: process.cwd(),
    frameworks: ['mocha', 'chai'],
    files: [
      'bower_components/angular/angular.js',
      'bower_components/angular-mocks/angular-mocks.js',
      'bower_components/angular-resource/angular-resource.js',
      // shortened for brevity
      { pattern: 'app/**/*.js', included: true, nocache: true, watched: false },
      { pattern: 'test/spec/**/*.js', included: true, nocache: true, watched: false }],
    exclude: [],
    preprocessors: {},
    port: 9876,
    colors: true,
    logLevel: config.LOG_DEBUG,
    autoWatch: false,
    browsers: ['Chrome'],
    singleRun: true,
    concurrency: Infinity
  });
};

When I run karma I get this:
λ gulp test
[12:30:29] Using gulpfile ~\Desktop\project\frontend\gulpfile.js
[12:30:29] Starting 'start:server:test'...
[12:30:29] Finished 'start:server:test' after 149 ms
[12:30:29] Starting 'test'...
21 12 2016 12:30:29.294:DEBUG [plugin]: Loading karma-* from C:\Users\miparnisari\project\frontend\node_modules
21 12 2016 12:30:29.294:DEBUG [plugin]: Loading plugin C:\Users\miparnisari\Desktop\project\
frontend\node_modules/karma-chai.
21 12 2016 12:30:29.294:DEBUG [plugin]: Loading plugin C:\Users\miparnisari\Desktop\project\
frontend\node_modules/karma-chrome-launcher.
21 12 2016 12:30:29.294:DEBUG [plugin]: Loading plugin C:\Users\miparnisari\Desktop\project\
frontend\node_modules/karma-mocha.
21 12 2016 12:30:29.310:DEBUG [plugin]: Loading plugin C:\Users\miparnisari\Desktop\project\
frontend\node_modules/karma-phantomjs-launcher.
21 12 2016 12:30:29.310:DEBUG [plugin]: Loading plugin C:\Users\miparnisari\Desktop\project\
frontend\node_modules/karma-requirejs.
[12:30:29] 'test' errored after 48 ms
[12:30:29] Error: Cannot find module 'chai'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.require.resolve (internal/module.js:16:19)

Your npm did not install chai.
npm i -DE chai

@blabno I would expect this step to be mentioned in https://github.com/xdissent/karma-chai#installation, thanks

authors: blabno luckylooke miparnisari

repo: xdissent/karma-chai


text:
Feature/readme

README big update!

Oopsie

repo: xebia-research/vulnmanager


text:
Improve docs

[x] Write dialogue guide on the dialogue page
[x] Provide a detailing example on the details page
[x] Link to the relevant schema things from dialogue and detailing pages
[x] Rename body schema to celestial body fr
[x] Explicitly write how to make a planet's surface with a model on the detailing page
[x] Recolor Accordions to be less confusing
[x] Add Patreon link on homepage
[x] Add link to world upload tool on homepage
[x] Mention VSCode on homepage
[x] Explain what a schema is on homepage
[x] Fix all the defaults in the schemas
[x] Explain log level and debug mode config options
[x] Add GetInstalledAddons to interface code snippet

Joe mama


text:
Upgrade to Yocto Kirkstone

Update branches for repos.
Update LAYERSERIES_COMPAT.
Specify PREFERRED_VERSION for xen and xen-tools.
Use LICENSE_FLAGS_ACCEPTED.
File daq_2.0.6.bbappend renamed to daq_2.0.%.bbappend
because original recipe has version 2.0.7.
Remove duplicated xen-tools-test package because it is
already mentioned in meta-virtualization.
Remove qemu from recommended packages
RRECOMMENDS:${PN}:remove = "qemu".
See commit 34de2281b38b793ca63a26055f59605522d712e5
in meta-xt-prod-devel-rcar for details.
Remove installation of the python3 into dom0's initramfs
RDEPENDS:${PN}:remove:class-target = "${PYTHON_PN}-core".
See commit cc8b9c5caa72cc818fdec6d53e67603466e7519e
in meta-xt-prod-devel-rcar for details.
Remove instalation of the kernel into dom0's initramfs
"RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base", "".
See commit 645412a29ff66d4a8efbfbab9c192792532ce6ac
in meta-xt-prod-devel-rcar for details.
Temporary mask out the xt-common's linux-libc-headers.
See comment inside yaml.

Ready for review.
PR was successfully tested on the Spider 1.0 board (Dom0+DomD+DomU) with https://github.com/xen-troops/meta-xt-rcar/pull/47.

Ack is added.
Tested (see above).
Ready to be merged.


text:
First Artifacts export in GOOD format is always empty

Describe the bug
Scanning for Artifacts and then saving the data as GOOD format json results in empty file.
To Reproduce
Scan for Artifacts
Export as GOOD format json
File is empty
Expected behavior
The first export not to be an empty file.
Exporting again results in a proper file.

I can't reproduce this issue. Is it like completely empty or is there any text in the export file?

Currently can't reproduce this either.
Perhaps the UI was representing a state that wasn't actually happening.
Will let you know if it happens again and ideally upload the files so you can reproduce the condition.

authors: Gol-D-Ace xenesty

repo: xenesty/AkashaScanner


text:
While training algorithm, missing conditional?

Hi there,
First, thank you for creating this and explaining how it works! It's had a huge benefit for me.
On line 28 of https://github.com/xeneta/LeadQualifier/blob/master/train_algorithm/run.py you define:
def cleanUp(descriptions, disc=False):
But I can't find where disc is used. You call cleanUp later on with it set as True;
disqualified_clean_descriptions = cleanUp(..., True)
I might be missing something but I want to make sure my model (and yours) is trained really well. Is there an option that was set in a version at one point but then fell out? I can't find it used in the git history either.
Thank you again for your work.
David

Sorry for the late reply, you're absolutely right, that's an unnecessary argument. Removing it now.

authors: iamdavidmartin perborgen

repo: xeneta/LeadQualifier


text:
Feature Request: add an icon option while editing the game.

as title says, would like there to be an option for creating a shortcut to a game to use the icon instead of the cover.
also would like if the .ico format is supported.
how it looks like with icon:

how it looks like with cover:

Yes, I'm currently working on trying to get another source that has icons apart from the Xbox Marketplace (LaunchBox right now is the main contender) to add a way of adding shortcut icon (Since both of those sources have either an icon or a disc made for that game).

I have implemented this in the latest experimental build. Feel free to test it and give me feedback.

works like a charm alongside the launch argument.
very nice 👍

repo: xenia-manager/xenia-manager


text:
Add JSON tags to RegistrationResource as used in official client

It enables (un)marshaling regr.json files used in official client.

LGTM :)

authors: xenolf zakjan

repo: xenolf/lego


text:
SQLException when calling setReadOnly

This is an unresolved bug (2014) migrated from bitbucket. I did not find it in github issues and it is still a problem.

Since version 3.7.15-M1, we see the following exception:
Exception in thread "main" java.sql.SQLException: Cannot change read-only flag after establishing a connection. Use SQLiteConfig#setReadOnly and QLiteConfig.createConnection().
at org.sqlite.SQLiteConnection.setReadOnly(SQLiteConnection.java:447)
at org.apache.commons.dbcp.DelegatingConnection.setReadOnly(DelegatingConnection.java:377)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setReadOnly(PoolingDataSource.java:338)
at scalikejdbc.DBConnection$class.readOnlySession(DB.scala:138)
at scalikejdbc.DB.readOnlySession(DB.scala:498)
...

Such behaviour differs from other JDBC drivers.
see also:
http://stackoverflow.com/questions/23390278/scalikejdbc-sqlite-cannot-change-read-only-flag-after-establishing-a-connecti

Any plans to address this in the near future? :)

We hit this as well with HikariCP. HikariCP is explicitly setting readOnly to a value which it chooses, which may differ from the setting of the underlying DataSource. The solution was to tell HikariCP to leave it alone, in our case, by setting HCP's readOnly flag to the same as that of SQLite.
There is an argument to say that the result of an "advisory" (doc: "hint") call to sqlite should not be fatal. However, the doc on setReadOnly permits exceptions to be thrown under somewhat loosely defined circumstances ("if a database error occurs").
No strong conclusion about validity.

I ran into this at work, and the query_only pragma didn't work for me, I suppose because it interferes with prepared statements. (I couldn't set parameters since there were two statements in the string.) This workaround seems OK, though:
        PoolProperties props = new PoolProperties();
        props.setDriverClassName("org.sqlite.JDBC");
        props.setUrl("jdbc:sqlite:...");

        Properties extraProps = new Properties();
        extraProps.setProperty("open_mode", SQLiteOpenMode.READONLY.flag + "");
        props.setDbProperties(extraProps);
        // This line can be left in or removed; it no longer causes a problem
        // as long as the open_mode code is present.
        props.setDefaultReadOnly(true);

        return new DataSource(props);

This also worked (in 3.28.0), and was considerably simpler:
String path = ...
SQLiteConfig config = new SQLiteConfig();
config.setReadOnly(true);
return DriverManager.getConnection("jdbc:sqlite:" + path, config.toProperties());

Would be fixed by #432 i suppose

authors: Synesso gotson shevek spaudanjo timmc-bcov

repo: xerial/sqlite-jdbc


text:
🛑 Info Villarino is down

In 7e3c603, Info Villarino (https://infovillarino.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Info Villarino is back up in e235578.

repo: xeronweb/status


text:
Drawing the same font multiple times with different sizes causes issues

As you can see from the sample, any letter that has been drawn before at a different size appears blurry in Citra, but on hardware the sample wont even load and just simply hangs.

Yeah I know about the blurry thing. And for me it works on the 3DS.

OK sooo! If you wanna use this, draw a string with your BIGGEST font size right after init but before any code, the end-user will never see it and it will cache all the font glyphs in the max font size then scale DOWN instead of trying to scale UP and artifacting. I did it like this:
 	sftd_draw_textf(font, 0, 0, RGBA8(255, 0, 0, 255), 15, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890:-.'!?()\"end");

authors: SonyUSA VideahGams xerpi

repo: xerpi/sftdlib


text:
Issue with multiple units symbol

I cannot create multiple units symbol, when the manufacture's number or symbol's description field is populated.
I am using KiPart  0.1.42
CSV file i used with KiPart:
sample_csv.zip
Content of working and non-working lib file:
non-working

working

I found an error and fixed it. Please install the modified program:
pip install -U git+https://github.com/xesscorp/KiPart

If the error is fixed, please close this issue. Then I will upload the modified program to Pypi.

repo: xesscorp/KiPart


text:
RotaryEncoder lib with ALLOW_ROLLOVER_G => false : can only get 50 % of value

When ALLOW_ROLLOVER_G => false,
I can't get the rotary encoder value over 50% even if turning the thing like a bloke
I'm investigating why, haven't found the reason for this yet.
Scenario: 8 bit register, shared with a Xess RotaryEncoderWithCounter module..
signal accumulator_s : std_logic_vector(7 downto 0);
...
port map (
clk_i => clk_fast,
duty_i => accumulator_s,
...
u1 : RotaryEncoderWithCounter
generic map (ALLOW_ROLLOVER_G => false, INITIAL_CNT_G => 0)
port map (
clk_i => clk_i,
a_i   => rotEncA_i,
b_i   => rotEncB_i,
cnt_o => accumulator_s
Looking deeper into this...

On 02/04/2017 5:19 PM, Jan Cumps wrote:

When ALLOW_ROLLOVER_G => false,
I can't get the rotary encoder value over 50% even if turning the
thing like a bloke
I'm investigating why, haven't found the reason for this yet.
Scenario: 8 bit register, shared with a Xess RotaryEncoderWithCounter
module..
signal accumulator_s : std_logic_vector(7 downto 0);
...
port map (
clk_i => clk_fast,
duty_i => accumulator_s,
...
u1 : RotaryEncoderWithCounter
generic map (ALLOW_ROLLOVER_G => false, INITIAL_CNT_G => 0)
port map (
clk_i => clk_i,
a_i => rotEncA_i,
b_i => rotEncB_i,
cnt_o => accumulator_s
Looking deeper into this...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/xesscorp/VHDL_Lib/issues/4, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAznG8pXtghNnYbDXdr-kOz-lMjh-4bTks5rZPlzgaJpZM4L3TiR.

Hi, Jan. It might be because the RotaryEncoderWithCounter uses a signed
counter so if you crank it all the way positive, it will stop at +127.
If you're interpreting the output as a std_logic_vector, then you'll
mistake that for stopping at the 50% point. Maybe.
--
Dave Vandenbout / XESS Corp.
2608 Sweetgum Drive
Apex NC 27539-8851
USA
/devb@xess.com/
/www.xess.com/

It is possible, I'll have a look.
When I'm using it with ALLOW_ROLLOVER_G => false, it runs from 0 to 256
I'm trying to find a good way to check what happens at +127 in both cases ...

You'll be right. That also explains why I have a 50% PWM when I set the value to 0...
I'll retest and close the issue if that's what it turns out to be.

I'm closing the isue because it works perfectly with the RotaryEncoderTest, both with ALLOW_ROLLOVER_G true and false. So it's obviously my own code.

with the current RotaryEncoderWithCounter, there is this difference in ALLOW_ROLLOVER_G true vs false.
(I was too fast to conclude that there wasn't a diference):
In Allow == true, and our accumulator is say 4 bits, it counts to f and jumps to 0 (the full 4 bits)
If Allow == false, it counts to 8 and stops (as if it were a 3 bit accumulator).
I've tested this code that always goes to the full bits, wether Allow == true or false.
In Allow == true, and our accumulator is say 4 bits, it counts to f and jumps to 0 (the full 4 bits)
If Allow == false, it counts to f and stops (also the full 4 bits).
`entity RotaryEncoderWithCounter is
generic (
ALLOW_ROLLOVER_G : boolean := false;  -- If true, allow counter to rollover from 0xf..ff to 0.
INITIAL_CNT_G    : natural := 0     -- Initial value of counter.
);
port (
clk_i   : in  std_logic;            -- Input clock.
reset_i : in  std_logic := NO;      -- Reset.
a_i     : in  std_logic;            -- A phase of rotary encoder.
b_i     : in  std_logic;            -- B phase of rotary encoder.
cnt_o   : out std_logic_vector      -- counter output.
);
end entity;
architecture arch of RotaryEncoderWithCounter is
signal cnt_r       : unsigned(cnt_o'range) := TO_UNSIGNED(INITIAL_CNT_G, cnt_o'length);
constant MAX_CNT_C : natural             := 2**(cnt_r'length) -1;
signal en_s        : std_logic;
signal cw_s        : std_logic;
begin
u0 : RotaryEncoder
port map(
clk_i => clk_i,
a_i   => a_i,
b_i   => b_i,
en_o  => en_s,
cw_o  => cw_s
);
process(clk_i)
begin
if rising_edge(clk_i) then
if reset_i = YES then
cnt_r <= TO_UNSIGNED(INITIAL_CNT_G, cnt_o'length);
elsif en_s = HI then              -- A rotational increment occured.
if cw_s = YES then              -- A clockwise movement occured.
if ALLOW_ROLLOVER_G or cnt_r /= MAX_CNT_C then
cnt_r <= cnt_r + 1;
end if;
else                -- A counter-clockwise movement occured.
if ALLOW_ROLLOVER_G or cnt_r /= 0 then
cnt_r <= cnt_r - 1;
end if;
end if;
end if;
end if;
end process;
cnt_o <= std_logic_vector(cnt_r);
end architecture;`

authors: jancumps xesscorp


text:
returns instances connected to old master in JedisSentinelPool.getResource()

Using JedisSentinelPool, after failover, any borrowed instances connected to old master will return to pool. Calling getResource also returns instances that are connected to old master(which is now a slave), and hence throws: JedisDataException: READONLY You can't write against a read only slave.
How to handle this situation?

i got this situation several times when master has changed

authors: monkeymq poojagarg

repo: xetorthio/jedis


text:
Packaging license file

Would be great to have the license file included in the sdist on PyPI. Basically this amounts to adding a MANIFEST.in file that has the following.
include LICENSE

This is relevant for issue ( https://github.com/xgcm/xgcm/issues/100 ).

@raphaeldussin - could you have a look at this when you get the chance?

authors: jakirkham rabernat

repo: xgcm/xgcm


text:
Lesser clg

abstract
This PR goes towards #156.
checklist

[ ] Make sure you read and understood the CONTRIBUTING.md.
[ ] Make sure you applied sufficient labels, milestone and assignee.
[ ] Make sure all TODOs are addressed.
[ ] Make sure there is sufficient documentation.
[ ] Make sure there are sufficient tests.
[ ] Make sure all commits are squashed before merging.
[ ] Make sure to delete the feature branch after merging.

Current coverage is 93.48% (diff: 93.50%)

Merging #230 into master will decrease coverage by 0.07%

Powered by Codecov. Last update 43b54e6...359361f


text:
_onBackspacePress这个函数怎么写的，百度谷歌了半天没有找到删除textInput内容的解决方案

_onBackspacePress这个函数怎么写的，百度谷歌了半天没有找到删除textInput内容的解决方案

@cloudsafe 你可以参考我的这个写法，原理很简单
https://github.com/ShareTechChina/AppReact/blob/master/app/pages/comment/index.js#L116

@xiewang thx昨天用js截取字符串的方式搞了半天，emoji删除有bug看了下你发的这个，还是这个简单。

emoji数据源中，如果要去掉某一个应该怎么搞，比如有个港Du的旗子得去掉。。对emoji数据源不熟悉，这几天精力主要放在即时通讯上了。。web即时通讯与app的刚实现互发消息。。。

@cloudsafe 属性 concise={true} 开启精简模式，这是我自己挑选的一些emoji
例图
后续版本我会考虑允许用户自选的emoji表情list传进来
你要是着急用，可以手动修改这里：https://github.com/xiewang/react-native-emoticons/blob/master/index.js#L31
数组里每个值是emoji的short name（https://github.com/iamcal/emoji-data）

@xiewang 我把concise设置fasle了，我去找下那个吧它手动删除了吧。非常感谢。

authors: cloudsafe xiewang

repo: xiewang/react-native-emoticons


text:
drawableleft。。。。

是否支持drawableft这种图片更换，我看到例子中都是imageview设置图片的

可以的，看以下这里

我记得上次用的是1.2.8版本的，结果换肤之后发现有些图片没有换掉，具体是不是drawableleft之类的忘记了，能不能说下不支持的还有哪些，或者已经支持的有哪些，麻烦作者了

默认支持的可以看更新日志

authors: ximsfei yumengyang

repo: ximsfei/Android-skin-support


text:
关于gif图的报错

用一个gif图在huggingface上面测试，一切正常. 当时使用inference.py脚本执行的时候，会出现错误. 错误信息如下：
D:\work\Tag2Text>python D:/work/Tag2Text/inference.py --image C:/Users/gaoyo/Desktop/9346691egw1fb9c0fxebug20zk0jg4bl.gif
Traceback (most recent call last):
  File "D:/work/Tag2Text/inference.py", line 92, in <module>
    image = transform(raw_image).unsqueeze(0).to(device)
  File "C:\Users\gaoyo\.conda\envs\base\lib\site-packages\torchvision\transforms\transforms.py", line 95, in __call__
    img = t(img)
  File "C:\Users\gaoyo\.conda\envs\base\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\Users\gaoyo\.conda\envs\base\lib\site-packages\torchvision\transforms\transforms.py", line 277, in forward
    return F.normalize(tensor, self.mean, self.std, self.inplace)
  File "C:\Users\gaoyo\.conda\envs\base\lib\site-packages\torchvision\transforms\functional.py", line 363, in normalize
    return F_t.normalize(tensor, mean=mean, std=std, inplace=inplace)
  File "C:\Users\gaoyo\.conda\envs\base\lib\site-packages\torchvision\transforms\_functional_tensor.py", line 928, in normalize
    return tensor.sub_(mean).div_(std)
RuntimeError: output with shape [1, 384, 384] doesn't match the broadcast shape [3, 384, 384]

测试使用的git图：

huggingface上面执行正常的截图：

期望是：inference.py 里面也可以工作正常
@xinyu1205  麻烦看一下，是哪里出问题了，多谢.

Hi, 感谢您的关注以及非常有价值的issues。该问题应该是在读取图像时，需要将git图像转为RGB三通道的格式。
具体解决办法应该是inference.py里的#90行代码
raw_image = Image.open(args.image).resize(
(args.image_size, args.image_size))
改为
raw_image = Image.open(args.image).convert("RGB").resize(
(args.image_size, args.image_size))
我自己已经通过了测试，后面会在仓库中修复该BUG。祝好~

可以了！测试通过！感谢感谢


text:
关于rtsp认证的疑问

在回调on_mk_rtsp_auth中只能获取到用户的用户名，客户端传过来的密码或者加过密的密码要怎么获取呢？
还有must_no_encrypt这个参数是在那边设置的呢？
谢谢！

must_no_encrypt这个知道在哪配置了，是在配置文件里面
[rtsp] authBasic=1

on_mk_media_play中也可以进行认证，那么这个认证和on_mk_rtsp_auth之间是什么关系呢？是不是择一使用？
谢谢！

on_mk_media_play是url参数鉴权，这个是通用的，支持所有播放协议。
on_mk_rtsp_auth是rtsp专有鉴权，不通用

多谢回答！
那on_mk_rtsp_auth中如何获取到客户端传过来的密码或者加密的密码呢？
------------------ 原始邮件 ------------------
发件人: 夏楚 <notifications@github.com>
发送时间: 2020年7月10日 11:00
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: lyg1949 <zh.ghlong@qq.com>, Author <author@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)

不能 客户端只是把密码的md5签名传过来了，所以没法知道密码。
你只能把密码传给zlmediakit，zlm会把你的密码生成签名，然后比对签名是否一致
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: lyg1949 <notifications@github.com>
发送时间: 2020年7月10日 11:20
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: 夏楚 <771730766@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
多谢回答！
那on_mk_rtsp_auth中如何获取到客户端传过来的密码或者加密的密码呢？
------------------ 原始邮件 ------------------
发件人: 夏楚 <notifications@github.com>
发送时间: 2020年7月10日 11:00
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: lyg1949 <zh.ghlong@qq.com>, Author <author@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

那怎么能够获得客户端发过来的密码md5签名呢？谢谢！
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: 夏楚 <notifications@github.com>
发送时间: 2020年7月10日 11:25
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: lyg1949 <zh.ghlong@qq.com>, Author <author@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
不能 客户端只是把密码的md5签名传过来了，所以没法知道密码。
你只能把密码传给zlmediakit，zlm会把你的密码生成签名，然后比对签名是否一致
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: lyg1949 <notifications@github.com>
发送时间: 2020年7月10日 11:20
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: 夏楚 <771730766@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
多谢回答！
那on_mk_rtsp_auth中如何获取到客户端传过来的密码或者加密的密码呢？
------------------ 原始邮件 ------------------
发件人: 夏楚 <notifications@github.com&gt;
发送时间: 2020年7月10日 11:00
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com&gt;
抄送: lyg1949 <zh.ghlong@qq.com&gt;, Author <author@noreply.github.com&gt;
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

我了解了，实际上客户端传过来的密码的md5签名zlmediakit有了，需要我传真正的密码给zlmediakit，由zlmediakit做验证，对吗？
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: 夏楚 <notifications@github.com>
发送时间: 2020年7月10日 11:25
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: lyg1949 <zh.ghlong@qq.com>, Author <author@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
不能 客户端只是把密码的md5签名传过来了，所以没法知道密码。
你只能把密码传给zlmediakit，zlm会把你的密码生成签名，然后比对签名是否一致
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: lyg1949 <notifications@github.com>
发送时间: 2020年7月10日 11:20
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: 夏楚 <771730766@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
多谢回答！
那on_mk_rtsp_auth中如何获取到客户端传过来的密码或者加密的密码呢？
------------------ 原始邮件 ------------------
发件人: 夏楚 <notifications@github.com&gt;
发送时间: 2020年7月10日 11:00
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com&gt;
抄送: lyg1949 <zh.ghlong@qq.com&gt;, Author <author@noreply.github.com&gt;
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

对，用户名密码签名需要依赖其他好几个参数，这个算法比较复杂，不合适把这些东西hook给开发者去生成签名，所以ZLMediaKit设计的是用户提供密码，让ZLMediaKit生成签名并比对是否一致。
RTSP这种鉴权其实也考虑了明文密码传递给媒体服务器不安全的问题，所以设置了realm机制，也就是你只要提供md5(username:realm:password)即可。如果你在on_rtsp_realm hook中提供随机的realm，在on_rtsp_auth hook中提供md5(username:realm:password)，那么就能做到不泄露你业务系统中的明文密码。

rtsp专属鉴权支持md5和base64两种，base64就必须提供明文密码以便比对了。所以hook中才会有must_no_encrypt这个参数，
也就是base64方式鉴权必须你提供明文密码，而md5方式你可以提供明文password或md5(username:realm:password)。

这是md5签名生成方式
 /*
        response计算方法如下：
        RTSP客户端应该使用username + password并计算response如下:
        (1)当password为MD5编码,则
            response = md5( password:nonce:md5(public_method:url)  );
        (2)当password为ANSI字符串,则
            response= md5( md5(username:realm:password):nonce:md5(public_method:url) );
         */

多谢解答！
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: 夏楚 <notifications@github.com>
发送时间: 2020年7月11日 22:10
收件人: xiongziliang/ZLMediaKit <ZLMediaKit@noreply.github.com>
抄送: lyg1949 <zh.ghlong@qq.com>, Author <author@noreply.github.com>
主题: 回复：[xiongziliang/ZLMediaKit] 关于rtsp认证的疑问 (#405)
rtsp专属鉴权支持md5和base64两种，base64就必须提供明文密码以便比对了。所以hook中才会有must_no_encrypt这个参数，
也就是base64方式鉴权必须你提供明文密码，而md5方式你可以提供明文password或md5(username:realm:password)。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

repo: xiongziliang/ZLMediaKit