login to youtube not working

[x ] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2019.05.20
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
youtube-dl.exe -i -u ...... -p ....... :ytsubs --max-downloads 5 --skip-download -j --no-check-certificate --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-i', '-u', 'PRIVATE', '-p', 'PRIVATE', ':ytsubs', '--max-downloads', '5', '--skip-download', '-j', '--no-check-certificate', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.05.20
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg N-89894-g18e2ac032e, ffprobe N-67388-g37425fc, phantomjs 2.1.1, rtmpdump 2.4-47-gc26c541
[debug] Proxy map: {}
WARNING: Unable to log in: HTTP Error 400: Bad Request

Description
Hi guys,
Since yesterday evening, about 12-15 hrs ago, I get:  "Unable to log in HTTP Error 400: Bad Request".  I've logged in with the same credentials in a browser and that works just fine.
Hopefully you can fix this...  or tell me what I'm doing wrong... [although I've been using the same commandline with those params (minus the verbose) for years successfully]
Thanx!

Nice that you closed this...  but a duplicate to what issue?   What I found with this error is that youtube-dl needed to be fixed in the past...
Thanx!

@dstftw Could you please provide a link how to solve this...?  The duplicate tag doesn't help as other issues from the past with this error do not provide a solution...  :-(

This is for people that run into this issue too:
I've been looking for a workaround for hours, and finally found one!
What I've done is install the cookies plugin in chrome:
https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=en
Then go to https://youtube.com, login and press that cookie plugin button to save a cookies.txt
As an extra I also went to https://accounts.google.com/ and save another cookies2.txt file
I merged those 2 text files into one YT-cookies.txt file and then addes the following parameter to youtube-dl:
--cookies=YT-cookies.txt
of course you can prefix the txt file with the path.
...then login works again. :-)   at least, for me...
Shouldn't this be in the FAQ for youtube-dl?

@matrixview, thanks for your last comment. I followed your instructions and am again able to log into my Youtube account. Appreciate it!

@hub2git Thanx for your appreciation, glad to have helped someone with this.
What seems to be even better is that youtube-dl automatically updates the given cookie file, so it doesn't seem to expire. I found out because I had the cookie file open in Notepad++ and it reports changes once I run my script (containing the youtube-dl line with the cookie parameter)
I understand it is frustrating for the admins of this project to support youtube-dl and so many sites, google authentication, etc... while users keep asking the same questions regularly, but sometimes you just don't know how to solve an error and any past reported issue that comes remotely close doesn't have a workaround either or got solved by a fix/update to the program itself.
I really love Youtube-DL, I use it almost as much as PowerShell and Xidel. It's invaluable in any webscraping/downloading toolbox.

I tried the steps outline by @MatrixView after already attempting the same in Firefox. I still get the 400: Bad Request
[youtube:channel] Downloading login page
[youtube:channel] Looking up account info
[youtube:channel] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request
[youtube:channel] replaced-here-for-privacy: Downloading channel page
[youtube:playlist] Downloading login page
[youtube:playlist] Looking up account info
[youtube:playlist] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request
[youtube:playlist] replaced-here-for-privacy: Downloading webpage
[download] Downloading playlist: Uploads from Adison Briana
[youtube:playlist] replaced-here-for-privacy: Downloading page #1
[youtube:playlist] replaced-here-for-privacy: Downloading page #2
[youtube:playlist] playlist Uploads from replaced-here-from-someone: Downloading 225 videos
[download] Downloading video 1 of 225
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request

Same problem for me.

Hello kérlek téged bocsánatot kérek mindenkitől de  én nem akárnék
proplémát soha nem is akartam senkivel én ha tudom megse próbáltam volna
soha
2020. febr. 27. 14:39 ezt írta ("Peter Uhrig" notifications@github.com):

Same problem for me.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ytdl-org/youtube-dl/issues/21313?email_source=notifications&email_token=AOUYR4WZSIW5LBU7HC5SXMTRE67AZA5CNFSM4HU24W2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENENBVQ#issuecomment-591974614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOUYR4U4YLPPSK6WXF4UEL3RE67AZANCNFSM4HU24W2A
.


Vue: core

depends on https://github.com/jhipster/jhipster-lite/issues/286

First step is to put the minimum things to make a Vue project work (linter, test framework, config files).
I will propose something.

Replaced by Vite+Vue3


ASB Topic Session ID

My Azure Service Bus Queue has its Session enabled. Is there a way to define ASB SessionID when I call NotificationService.Execute?

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

ID: cdeb5cbb-1192-38de-8ecf-774274f0db2f
Version Independent ID: 0ce65351-57b1-b9cb-94da-b39b01011ecb
Content: Sample: Azure aware custom workflow activity (Developer Guide for Dynamics 365 Customer Engagement)
Content Source: ce/customerengagement/on-premises/developer/sample-azure-aware-custom-workflow-activity.md
Service: crm-online
GitHub Login: @JimDaly
Microsoft Alias: jdaly

No.  People enable sessions for queues because they want to establish a FIFO guarantee, but the concept of Session is very flexible. As mentioned in Message sessions

Typically, however, an application has a clear notion of where a set of related messages starts and ends. Service Bus doesn't set any specific rules.

Sessions is an optional feature. We don't have any general guidance about how you might use it.
The RemoteExecutionContext data you send to your queue doesn't include a Session property or any property intended for this purpose.
Our service simply pushes out the contextual data about the event as it happens. If the specific order is important to your process and you want to have some guarantee, you could examine the data sent and see if there is any pattern that you want to avoid and try to use some of the available ID values.
But I think this is typically managed by having control over what events are sent and to which resource. If you have multiple duplicate calls that need to be disambiguated, then perhaps track down where those are coming from and eliminate them?
Session ID can be any identifier you want it to be. There are several that are included in RemoteExecutionContext. For example, RequestId. If you want to use sessions, you can experiment with the available ones and see if this adds value for your specific situation.
It might be found  in one of the properties within the InputParameters depending on the nature of the operation you are sending.


[HOTFIX] Fix master branch build error introduced by #611

What is this PR for?
This PR provides HOTFIX for master branch build error introduced by #611
What type of PR is it?
Hot Fix
Todos

[x] - Fix unittest

Is there a relevant Jira issue?
N/A
How should this be tested?
N/A
Screenshots (if appropriate)
N/A
Questions:

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

Merging this HOTFIX into the master.


Migration error

Following Docker installation guide, and hit with an error when creating django-migrations container for the first time.  Here is the error -
Traceback (most recent call last):
File "/home/jovyan/py-trading-bot/manage.py", line 22, in
main()
File "/home/jovyan/py-trading-bot/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/opt/conda/lib/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/conda/lib/python3.9/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/opt/conda/lib/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/conda/lib/python3.9/site-packages/django/apps/registry.py", line 124, in populate
app_config.ready()
File "/home/jovyan/py-trading-bot/orders/apps.py", line 13, in ready
if len(StockStatus.objects.all())==0:
File "/opt/conda/lib/python3.9/site-packages/django/db/models/query.py", line 380, in len
self._fetch_all()
File "/opt/conda/lib/python3.9/site-packages/django/db/models/query.py", line 1881, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/opt/conda/lib/python3.9/site-packages/django/db/models/query.py", line 91, in iter
results = compiler.execute_sql(
File "/opt/conda/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
cursor.execute(sql, params)
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
File "/opt/conda/lib/python3.9/site-packages/django/db/utils.py", line 91, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "orders_stockstatus" does not exist
LINE 1: ...tegy_id", "orders_stockstatus"."order_in_ib" FROM "orders_st...

I hit the same problem running with WSL2:
Traceback (most recent call last):
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
    autoreload.raise_last_exception()
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
    raise _exception[1]
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/__init__.py", line 394, in execute
    autoreload.check_errors(django.setup)()
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/apps/registry.py", line 124, in populate
    app_config.ready()
  File "/home/hmei/py-trading-bot/py-trading-bot/orders/apps.py", line 13, in ready
    if len(StockStatus.objects.all())==0:
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/query.py", line 382, in __len__
    self._fetch_all()
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/query.py", line 1928, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/query.py", line 91, in __iter__
    results = compiler.execute_sql(
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
    cursor.execute(sql, params)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 122, in execute
    return super().execute(sql, params)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 79, in execute
    return self._execute_with_wrappers(
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 100, in _execute
    with self.db.wrap_database_errors:
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "orders_stockstatus" does not exist
LINE 1: ...tegy_id", "orders_stockstatus"."order_in_ib" FROM "orders_st...

Ok, I will try it on my side today evening. Sorry for the inconvenience.

I confirm that there are some issues there. I will work on it.

So I added a
    try:
        if len(StockStatus.objects.all())==0:
            create_ss_sub()
    except:
        pass

To handle the problem.
In addition, I added a try/except to handle the fact that keras may not be installed.
I hope it will work on your side.

Hi @psemdel,
Thanks a lot for spending time looking into the issue. I tried running again with my wsl2 environment, however there is still a problem with the missing relation.
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
    cursor.execute(sql, params)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 122, in execute
    return super().execute(sql, params)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 79, in execute
    return self._execute_with_wrappers(
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 100, in _execute
    with self.db.wrap_database_errors:
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "orders_stockex" does not exist
LINE 1: ...in_index_id", "orders_stockex"."calc_report" FROM "orders_st...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/hmei/py-trading-bot/py-trading-bot/reporting/views.py", line 14, in reportsView
    return render(request, 'reporting/reports.html', context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/base.py", line 171, in render
    return self._render(context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/base.py", line 1065, in render
    return render_value_in_context(output, context)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/template/base.py", line 1042, in render_value_in_context
    value = str(value)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/forms/utils.py", line 79, in __str__
    return self.as_widget()
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/forms/boundfield.py", line 108, in as_widget
    return widget.render(
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/forms/widgets.py", line 278, in render
    context = self.get_context(name, value, attrs)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/forms/widgets.py", line 764, in get_context
    context = super().get_context(name, value, attrs)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/forms/widgets.py", line 715, in get_context
    context["widget"]["optgroups"] = self.optgroups(
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/forms/widgets.py", line 655, in optgroups
    for index, (option_value, option_label) in enumerate(self.choices):
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django_filters/fields.py", line 256, in __iter__
    yield from iterable
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/forms/models.py", line 1422, in __iter__
    for obj in queryset:
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/query.py", line 518, in _iterator
    yield from iterable
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/query.py", line 91, in __iter__
    results = compiler.execute_sql(
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1565, in execute_sql
    cursor.close()
psycopg2.errors.InvalidCursorName: cursor "_django_curs_139757766047296_sync_1" does not exist

[24/Mar/2024 11:22:35] "GET / HTTP/1.1" 500 211282

PS, I tried running the optional 'import dump.json' as well, and got the following error:

python3 manage.py loaddata dump.json

Traceback (most recent call last):
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/serializers/json.py", line 69, in Deserializer
    objects = json.loads(stream_or_string)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 6 (char 5)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/hmei/py-trading-bot/py-trading-bot/manage.py", line 22, in <module>
    main()
  File "/home/hmei/py-trading-bot/py-trading-bot/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/base.py", line 413, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/base.py", line 459, in execute
    output = self.handle(*args, **options)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/commands/loaddata.py", line 102, in handle
    self.loaddata(fixture_labels)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/commands/loaddata.py", line 163, in loaddata
    self.load_label(fixture_label)
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/management/commands/loaddata.py", line 251, in load_label
    for obj in objects:
  File "/home/hmei/miniconda3/envs/vectorbtpro/lib/python3.10/site-packages/django/core/serializers/json.py", line 74, in Deserializer
    raise DeserializationError() from exc
django.core.serializers.base.DeserializationError: Problem installing fixture '/home/hmei/py-trading-bot/py-trading-bot/dump.json':

Cheers.

No problem, I like also when the code is working.
The errors you see, django_curs_139757766047296..., are because the migration did not take place. Check the migration job.
For the dump, there was that at the beginning (and yes, no idea, why I did not see that yesterday):
[2023-12-08 16:47:11] INFO 159 NumExpr defaulting to 4 threads.
I deleted it, it seems fine now.
I use Python 3.9. I am building an environment with Python 3.10... to test it with it.

It seems to work also with Python 3.10

That's the log?

Yes.

I need to investigate more in details... Probably this weekend. I suppose, I still have to work on this docker image.

So sorry, that it took me so long. I am quite busy right now. So I did it all step by step (each yaml file applied one after the others, checking each step). I confirm it works. To be even more sure, I will use from now the Docker version on daily basis, normally I just run it locally.
Concerning your error, it is often caused by a missing configuration map or secret. Did you do the:
kubectl delete pvc py-trading-bot-postgres-pvc
kubectl delete pv py-trading-bot-postgres-pv


Role mappings not working properly.

Configure inbound SAML SP
Outbound SAML IDP.
Configure role mappings. (IDP role name test to test123 local role)
Enable JIT provisioning.
check the role list of the provisioned user.

Roles are not provisioned properly.

Fixed in https://github.com/wso2/carbon-identity-framework/pull/2164


adding support to handle ARGV being passed to the ruby script

Hey Daniel, Danijel here :-)
First of all: Great tool! SUPER useful. Only thing I was missing were the ARGV parameters that got lost on the way to the destination.rb file.
Plz check out this pull request. It's a minor change but works fine.
Will probably do more additions to your tool in the future since again: it's a super helpful tool.
Many servers just don't have ruby installed (and I code all my DevOps-Tools in Ruby :-)). Will probably also work on supporting different Ruby versions, too!
Cheers
Dan

Thank you Danijel, the PR works like a charm. Feel free to make more contributions in the future.


Crashplan on Synology keeps disconnecting

Hi, I'm running the jlesage Crashplan docker container on my Synology NAS, everything was working great and had managed to upload 49% of my 7.4TB backup set to Crashplan, until I started to get Inotify limit reached messages, I increased this limit, the warning message no longer appeared, but then my NAS has started disconnecting repeatedly. I have contacted Crashplan (although aware they do not support NAS) they are asking for me to supply the Crashplan logs to troubleshoot further, I am unfamiliar with Command Line in all but the most basic understanding, and do not know how to do this, could you please advise how to get these log files exported from the Container on the NAS? Do you also have a suggestion on why the disconnections are happening, is it to do with file permissions?

The symptoms might indicate that you have too little memory assigned to Crashplan. I think I have seen a recommendation of 1GB memory per 1 TB backup.
I had to buy a bigger Synology NAS when my backup size outgrew my memory size.

Thanks, I've assigned 5GB up to now. As far as I understand Crashplan's guidance they recommend up to 4GB for 4TB or more. Trying to confirm if lack of memory (or permission issues) is causing this repeated disconnection (I can't also restore files either) is what I am hoping to achieve through a conversation with Crashplan, but need some help with knowing how to export the Crashplan log files from the Container docker on my Synology. I have also followed instructions on deleting the cache as recommended by jlesage's instructions.

The file they are looking for is probably log/service.log.0, that you can find under the directory you mapped to /config.
Also, if there is a lack of memory, you should get a pop-up window telling you this.
You can look at the log file and share any errors you see here.
Finally, in your discussions with CrashPlan, never mention that you are running the software on a NAS or in Docker container, as they will quickly tell you that they don't support this ;)

Thank you for your reply. Could you please advise on how I can retrieve this file, my knowledge of command line is almost non-existent.

When you created your container, you should have mapped /config to a directory on your Synology.  You can find the log file under this directory.

Closing this issue.  Please re-open if needed.


macos.os missing on on OS X

Hi,
I've stumbled onto that problem when running on OS X. Apparently the nuget might not be configured correctly. I Copied the macos.os manually into my folder and it worked ok.
Here is the exception:
Exception has occurred: CLR/System.DllNotFoundException
An unhandled exception of type 'System.DllNotFoundException' occurred in Desktop.Robot.dll: 'Unable to load shared library './macos.os' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(./macos.os, 1): image not found'
at Desktop.Robot.OSX.Robot.setMousePosition(UInt32 x, UInt32 y)
at Desktop.Robot.OSX.Robot.MouseMove(UInt32 x, UInt32 y)
at Desktop.Robot.Robot.MouseMove(UInt32 x, UInt32 y)
at WSJTBuddy.Program.Main(String[] args) in /Users/macbookpro/Documents/DevMac/WSJTBuddy/Program.cs:line 14

Oh I see...
I think I need to include it when packaging the solution.
Thank you for reporting it =)


Upgrade to 6.6 removes home screen widget

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App version
6.6
Where did you get the app from?
Google Play
Android version
13
Device model
Samsung S20+
Steps to reproduce

Ensure you have pre-6.6 installed whatever the last version was distributed in the play store.
Add a K-9 widget, I use the first one to give number of unread message badge.
Update to 6.6
Observe that widget was removed.

Expected behavior
Upgrade should not remove home screen widget.  If it's not possible to fix (I assume it's an Android thing) then you should mention it in the changelog.
Actual behavior
K-9 widget was removed from my home screen when the app was upgraded to 6.6.  As I have my home screen locked this means it's a handful steps to restore how I want to the app.
Logs
No response

I have the same problem on my Galaxy S10+ since the update to K9 Mail 6.6. The Android version of my phone is 12.

Can you please check if K-9 Mail 6.601 fixes this issue for you: https://github.com/thundernest/k-9/releases/tag/6.601

K-9 Mail 6.601 fixed it for me.

Thanks for checking :+1:

I've got a Fairphone 4 with Android 12 (FP4.SP25.B.058.20230318), and the widget on the home screen is gone with the release 6.601. Someone else have the same trouble?

The widget might have been removed when the app was updated to 6.600. You should be able to add it again using K-9 Mail 6.601.

It's working fine on my Fairphone 4. Try rebooting. If that doesn't work try uninstalling, then reinstalling the app.


This is an attempt to factor out Navigator's named route functionality to make it more general.

Note: at the moment, this is a strawman: I'm not sure of several of the decisions here, so I'm mainly looking for comment on the approach (at least from @Hixie, who encouraged me to see if I could find a solution).  I haven't updated most of the doc strings yet, or written a new test for BasicNavigator (although all the old tests pass), and there are probably formatting issues.
The goal here was to factor out the Navigator's named route functionality so that we can later support different kinds of route-building from names, such as from URLs, which at least two platforms use for inter-app communication.
I did this by splitting Navigator into BasicNavigator and Navigator (which now extends BasicNavigator), and by factoring out a base class for their states (still called NavigatorState, unfortunately).  The Navigator would have liked to be renamed NamedNavigator, but that was just too invasive of a change. I did change the Route<T> navigator field to be called navigatorState, which is much more accurate (I did leave the old navigator accessor, but deprecated it). The BasicNavigator has all the functionality of the old Navigator, except that it doesn't have anything that deals with named routes or the initial route as a string.
It is unfortunate that NavigatorState was originally exposed in the Route<T> class, because it means that the API for NavigatorState now needs to be supported for all navigators, even ones that don't support pushNamed, etc.  I've done this by making a base class out of NavigatorState that the new _NavigatorState and _BasicNavigatorState extend.  The base class now has to be a generic that takes a BasicNavigator subclass, which does cause some weak warnings in the analyzer about not specifying the generic type.  It works, but that's probably the most annoying part of this change.
I haven't looked too deeply into what changes this implies to the *App classes, but there could probably be some changes there.

Ugh.  I'm going to nuke some things and come back with a new PR.  I've messed up git something horrible... :-)


Created Regions Not Removed When Using 'Regions.Remove()'

Bug description
Attempting to ensure that only one region can be created at a time.  I created code that removes  regions, however, that are still visible on screen although the list of regions has been reduced.
Utilizing region.remove() does not visibly remove regions created with 'regions.addRegion'
I thought it was possibly my environment but I pasted the minimal code snippet into https://wavesurfer.xyz/examples/?regions.js and obtained the same behavior.
Environment

Browser: Firefox

Minimal code snippet

regions.addRegion({{
    start: 12,
    end: 17,
    content: 'Drag me',
    color: 'rgba(0, 255, 0, 0.1)
    resize: false,
}})

regions.enableDragSelection({{
    color: 'rgba(255, 0, 0, 0.1)',
    drag: false,
    resize: true,
}})

var regionTest = [];

// Listen for region creation
regions.on('region-created', (region) => {{
    const now = Date.now();

    // Add the new region with its timestamp
    regionTest.push({ region, timestamp: now });

    // If there is more than one recent region, remove all but the last
    if (regionTest.length > 1) {{
        const regionsToRemove = regionTest.slice(0, -1); // All but the last
        console.log('regionsToRemove', regionsToRemove);

        // Remove each region except the last
        regionsToRemove.forEach(item => {{
            console.log('removing region', item.region);
            item.region.remove(); // Remove the region from Wavesurfer
        }});

        // Keep only the last region in the array
        regionTest = [regionTest[regionTest.length - 1]];
    }}
}});

Expected result
Removal of all regions except the last created region, regardless of whether it was created with '.addRegion' or user drag creation associated with enableDragSelection.
Additionally, any drag creation of a region would remove previously created regions, leaving only the newly created region.
Obtained result
Regions that were created with 'regions.addRegion' remain on screen
Screenshots

Same here
As workaround I clear all regions and then add every region that should exit

The code you pasted works as intended for me:
https://wavesurfer.xyz/examples/?5cc63deca8da61df67c85b01d4004247
Tested in Chrome and Firefox.

I borrowed the portion of https://wavesurfer.xyz/examples/?regions.js example that creates the regions.
The full code shown will remove the  most recently created region when you perform a drag selection to create a region but the other existing regions remain visible.
// Regions plugin

import WaveSurfer from 'wavesurfer.js'
import RegionsPlugin from 'wavesurfer.js/dist/plugins/regions.esm.js'

// Initialize the Regions plugin
const regions = RegionsPlugin.create()

// Create a WaveSurfer instance
const ws = WaveSurfer.create({
  container: '#waveform',
  waveColor: 'rgb(200, 0, 200)',
  progressColor: 'rgb(100, 0, 100)',
  url: '/examples/audio/audio.wav',
  plugins: [regions],
})

// Give regions a random color when they are created
const random = (min, max) => Math.random() * (max - min) + min
const randomColor = () => `rgba(${random(0, 255)}, ${random(0, 255)}, ${random(0, 255)}, 0.5)`

// Create some regions at specific time ranges
ws.on('decode', () => {
  // Regions
  regions.addRegion({
    start: 0,
    end: 8,
    content: 'Resize me',
    color: randomColor(),
    drag: false,
    resize: true,
  })
  regions.addRegion({
    start: 9,
    end: 10,
    content: 'Cramped region',
    color: randomColor(),
    minLength: 1,
    maxLength: 10,
  })
  regions.addRegion({
    start: 12,
    end: 17,
    content: 'Drag me',
    color: randomColor(),
    resize: false,
  })

  // Markers (zero-length regions)
  regions.addRegion({
    start: 19,
    content: 'Marker',
    color: randomColor(),
  })
  regions.addRegion({
    start: 20,
    content: 'Second marker',
    color: randomColor(),
  })
})

regions.enableDragSelection({
  color: 'rgba(255, 0, 0, 0.1)',
})

regions.on('region-updated', (region) => {
  console.log('Updated region', region)
})

var regionTest = [];

// Listen for region creation
regions.on('region-created', (region) => {{
    const now = Date.now();

    // Add the new region with its timestamp
    regionTest.push({ region, timestamp: now });

    // If there is more than one recent region, remove all but the last
    if (regionTest.length > 1) {{
        const regionsToRemove = regionTest.slice(0, -1); // All but the last
        console.log('regionsToRemove', regionsToRemove);

        // Remove each region except the last
        regionsToRemove.forEach(item => {{
            console.log('removing region', item.region);
            item.region.remove(); // Remove the region from Wavesurfer
        }});

        // Keep only the last region in the array
        regionTest = [regionTest[regionTest.length - 1]];
    }}
}});

/*

        <input type="checkbox" checked="${loop}" />
        Loop regions

        Zoom: <input type="range" min="10" max="1000" value="10" />

      📖 Regions plugin docs

*/

That's because you're adding and immediately removing regions. Adding a small timeout inside the region-created callback will help.

I may not be doing it in a way that you suggested.  I added a one second delay to see the outcome.
All of the regions were not removed.  The goal is to have only one region be active, even when multiple ranges exist.
var regionTest = [];

// Listen for region creation
regions.on('region-created', (region) => {
    const now = Date.now();

    // Add the new region with its timestamp
    regionTest.push({ region, timestamp: now });

    // If there is more than one recent region, remove all but the last
    if (regionTest.length > 1) {
        const regionsToRemove = regionTest.slice(0, -1); // All but the last
        console.log('regionsToRemove', regionsToRemove);

        // Delay the removal of regions except the last one
        setTimeout(() => {
            // Remove each region except the last
            regionsToRemove.forEach(item => {
                console.log('removing region', item.region);
                item.region.remove(); // Remove the region from Wavesurfer
            });

            // Keep only the last region in the array
            regionTest = [regionTest[regionTest.length - 1]];
        }, 1000); // 1000ms delay (1 second)
    }
});

Jackpot --- What you said worked, I just had to think about it differently
var regionTest = [];

// Listen for region creation
regions.on('region-created', (region) => {
    const now = Date.now();

    // Add the new region with its timestamp
    regionTest.push({ region, timestamp: now });

    // If there is more than one recent region, remove all but the last
    if (regionTest.length > 1) {
        const regionsToRemove = regionTest.slice(0, -1); // All but the last
        console.log('regionsToRemove', regionsToRemove);

        // Remove each region with a delay
        regionsToRemove.forEach((item, index) => {
            const delay = 50 * (index + 1); // Delay increases for each region removed (e.g., 1s, 2s, 3s)
            setTimeout(() => {
                console.log('removing region', item.region);
                item.region.remove(); // Remove the region from Wavesurfer
            }, delay);
        });

        // Keep only the last region in the array
        regionTest = [regionTest[regionTest.length - 1]];
    }
});

Cool! I'll keep this issue open because ideally it should work w/o a delay. I suspect the root cause is a virtualized rendering.


EventConsumer Start after Stop

Hello,
In brief i have an application that consumes from two clusters. Dc1 and Dc2. At any point in time consumption is done from only one cluster. So I consume from Dc1 and if If I detect that all brokers are down for Dc1 then i failover to Dc2. Eventually if i detect that Dc1 is available again then i failover back to Dc1. Both DC1 and DC2 are 3-node clusters.
So here is the chain of method calls:
1.Subscribe to Dc1.
2.Call start on consumer to Dc1.
...
I detect that i need to failover:
3.Call EventConsumer.Stop on Dc1 consumer.
4.Create connection to Dc2.
5.Subscribe to Dc2.
6.Call start on consumer to Dc2.
...
I detect that Dc1 is back again:
7.Clean Dispose of connection to Dc2.
8.Subscribe to Dc1.
9.Call start on consumer to Dc1.
10.Consume from last (Kafka) committed offset.
After rebooting the servers of Dc1, i noticed that all the steps from 1-10 have completed. So far so good.
But then my application is not receiving any messages. At this point the topic (ABC) is at offset 150,000 and the consumer for Dc1 is still at 120,000 and stays there. I can confirm that the internal polls of RdKafka are executing (so both of):
1.EventConsumer.consumerTask
2.Handle.callbackTask
, are running.
Unfortunately i did not enable complete logging for my application. But if i attach a debugger here is some of the internal linbrdkafka logs i see:
"rdkafka#consumer-5|7|BROKERFAIL|Dc1Machine2:9092/2: failed: err: Local: Broker transport failure: (errno: Unknown error)"
"rdkafka#consumer-5|7|OFFSET|Topic ABC [0]: setting offset INVALID for commit"
"rdkafka#consumer-5|7|BRKTP|Dc1Machine2:9092/2: Undelegating ABC [0]"
"rdkafka#consumer-5|7|OFFSET|Topic ABC [0]: setting offset INVALID for commit"
Do you have any ideas?

Are you supposed to call Subscribe+Start if you have previously called Stop? The way my application is written i guarantee that i do not call Dispose if i failover from Dc1, i only dispose of the Dc2 consumer once i failback.
I can confirm that this strategy generally works. It is the first time though, that i see this behaviour.

Some more details. If i start another process to read from that topic (ABC) from Dc1 then it gets the messages. It is just that process that is stuck.
If i can trust the symbol files i used it looks like in SafeKafkaHandle.ConsumerPoll, LibRdKafka.consumer_poll(handle, timeoutMs) always returns IntPtr.Zero.

I'm seeing that OnPartitionsRevoked is triggered during failback? What exactly does this mean and what should i do about it?

Ok i think i have the answer. Please confirm if this is correct Andreas.
I should perform an assign in OnPartitionsRevoked just as i do one in OnPartitionsAssigned. Is that correct?

Yes, you're right. See https://github.com/edenhill/librdkafka/blob/master/src/rdkafka.h#L875, OnPartitionsAssigned is the rebalance callback.
And I haven't forgotten about your PR, just need to find some time.

Thank you!

Actually looks like something else is going on. Even though in "OnPartitionsRevoked" i do:
Console.WriteLine($"Assigned partitions: [{string.Join(", ", partitions)}], member id: {consumer.MemberId}");
var fromBeginning = partitions.Select(p => new TopicPartitionOffset(p.Topic, p.Partition, Offset.Beginning)).ToList();
Console.WriteLine($"Updated assignment: [{string.Join(", ", fromBeginning)}]");
consumer.Assign(fromBeginning);
, (as you have suggested in #22) it is not reliable. The consumer just sits without getting any messages.
Is there a reliable way to force the consumer to get messages if there was a "OnPartitionsRevoked" event for the connection?

What really puzzles me is why does the OnPartitionsRevoked get invoked at all.
My consuming application generates a unique (GUID) consumer group name. Why would partitions be revoked if the app is the only one in its group?

For reference, have asked Eden about this:
https://github.com/edenhill/librdkafka/issues/764


Fix 'no-ec'

Merged.  cf53cbea5bbf9c3a1998e2ddd0173881a5a97475

Why did we not see a run-checker failure because of this?

is this the source of the cisco build failures?


Add docs for sharing UI support

Codecov Report

Merging #44 into v5.2 will decrease coverage by 2.84%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##             v5.2      #44      +/-   ##
==========================================
- Coverage   71.93%   69.09%   -2.85%
==========================================
  Files         179      182       +3
  Lines        7779     8127     +348
==========================================
+ Hits         5596     5615      +19
- Misses       2183     2512     +329

Impacted Files
Coverage Δ

LineSDK/LineSDK/SharingUI/ShareTarget.swift
0% <ø> (ø)
:arrow_up:

...ssaging/Request/PostMultisendMessagesRequest.swift
100% <ø> (ø)
:arrow_up:

...SDK/LineSDK/SharingUI/MessageShareTargetType.swift
0% <ø> (ø)
:arrow_up:

...ineSDK/SharingUI/ShareViewControllerDelegate.swift
0% <0%> (ø)
:arrow_up:

...DK/LineSDK/SharingUI/ShareRootViewController.swift
0% <0%> (ø)
:arrow_up:

...ineSDK/LineSDK/SharingUI/ShareViewController.swift
0% <0%> (ø)
:arrow_up:

LineSDK/LineSDK/SharingUI/ColumnDataStore.swift
96.05% <0%> (-0.56%)
:arrow_down:

...eSDK/SharingUI/ShareTargetSelectingTableCell.swift
0% <0%> (ø)
:arrow_up:

... and 8 more

Continue to review full report at Codecov.

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


build: stabilize tests with external resources

Codecov Report

Merging #1653 (3e4dab0) into master (ab917b0) will decrease coverage by 5.01%.
The diff coverage is 50.27%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master    #1653      +/-   ##
==========================================
- Coverage   54.85%   49.84%   -5.01%
==========================================
  Files          49       79      +30
  Lines        1659     3551    +1892
  Branches      406      958     +552
==========================================
+ Hits          910     1770     +860
- Misses        671     1643     +972
- Partials       78      138      +60

Impacted Files
Coverage Δ

...mponents/sbb-accordion-item/sbb-accordion-item.tsx
0.00% <0.00%> (-37.21%)
:arrow_down:

src/components/sbb-icon/sbb-icon.tsx
92.30% <ø> (ø)

src/components/sbb-image/sbb-image.helper.tsx
0.00% <ø> (-64.52%)
:arrow_down:

src/components/sbb-image/sbb-image.tsx
0.00% <ø> (-62.97%)
:arrow_down:

...mponents/sbb-journey-header/sbb-journey-header.tsx
88.23% <ø> (+1.27%)
:arrow_up:

...onents/sbb-journey-summary/sbb-journey-summary.tsx
80.55% <ø> (ø)

src/components/sbb-link-list/sbb-link-list.tsx
84.00% <ø> (-4.24%)
:arrow_down:

src/components/sbb-link/sbb-link.tsx
60.41% <ø> (-31.02%)
:arrow_down:

src/components/sbb-logo/sbb-logo.tsx
0.00% <ø> (ø)

src/components/sbb-menu-action/sbb-menu-action.tsx
65.21% <ø> (ø)

... and 85 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Uncaught runtime exception - property not found

I am attempting to upgrade our IDPs at Brown University.  I followed @langedb  configuration from the Shib wiki and arrived at a functional configuration under version 1.0.1 of the shib-mfa-duo-auth.  I then attempted to add a custom duo-authn-flow.xml definition because I need to pass additional data to the velocity template for Duo.  I upgraded to 1.1.3 and started receiving the following.  I then downgraded to 1.1.2 and still received the following error.  I was going to try 1.1.1 but I was not able to build that version locally and didn't see it available pre-built for download.
2016-07-06 14:05:51,318 - INFO [net.unicon.iam.shibboleth.idp.authn.duo.authn.ValidateDuoResponse:-2] - Profile Action ValidateDuoResponse: Duo Login succeeded 2016-07-06 14:05:51,322 - DEBUG [net.shibboleth.idp.authn.AbstractValidationAction:311] - Profile Action ValidateDuoResponse: Adding custom Principal(s) defined on underlying flow descriptor 2016-07-06 14:05:51,330 - ERROR [net.shibboleth.idp.authn:-2] - Uncaught runtime exception org.springframework.binding.expression.PropertyNotFoundException: Property not found 	at org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:87) Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Property or field 'UpdateSessionWithAuthenticationResult' cannot be found on object of type 'org.springframework.webflow.engine.impl.RequestControlContextImpl' - maybe not public? 	at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:224)

Could you try the latest master? There was a shift in how things are configured. Thanks

I would be happy to but I am unable to build from source.  When following the readme, I get the following when trying to build:
FAILURE: Build failed with an exception.

Where:
Build file '/Users/ckeith/LocalGit/Unicon/shib-mfa-duo-auth/build.gradle' line: 84

What went wrong:
A problem occurred evaluating root project 'shibboleth-duo-auth'.

Could not find property 'bintrayUsername' on task ':uploadDist'.

okay, looks like I was missing a couple properties used for deploying the artifact. Could you try building now? Thanks

Thanks.  Build worked fine for 1.1.4-Snapshot.  After installing, I ultimately discovered that the error I was seeing was caused by the customizations I was attempting to make to duo.vm.


Refactor - Adding a special parameter in tear down step is replacing with the content of the file

Expected behavior
Adding a special parameter in tear down step should replace with special parameter
Actual behavior
Adding a special parameter in tear down step is replacing with the content of the file
Steps to reproduce

Something
=========

wwwwwwww
--------
* Verify "email" "blah"

___ somewhere
* Tear down step
step 1

With the implementation

    @Step("Verify <email> <blah>")
    public void implementation7(String argEmail, String argBlah) {
    }

    @Step("Tear down step")
    public void implementation5() {
    }

Add a text file email.txt

Id,Name
1,The Way to Go On
2,Ivo Jay Balbaert

Refactor the step 'Tear down step' to 'Tear down step file:specs/email.txt'

Gauge version
Gauge version: 0.4.1.nightly-2016-04-19

Plugins
-------
html-report (2.1.0)
java (0.3.4.nightly-2016-04-19)

Refactor the step 'Tear down step' to 'Tear down step file:specs/email.txt'

This works on Gauge 0.6.3, since it does not introduce a new parameter. However this
gauge --refactor "Tear down step" "Tear down step <file:specs/email.csv>"

has this output:
Note: src/test/java/StepImplementation.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Cannot perform refactoring: Refactoring failed: null

0 specifications changed.

0 concepts changed.

0 files in code changed.

Command line refactoring will be deprecated in favour of IDE refactoring.


configure: Fix a error msg typo

I got this error message and noticed the typo in the message. It
directed the user to run llama stack build first, which is not a
valid command.
Signed-off-by: Russell Bryant<EMAIL_ADDRESS>

Please do sign the CLA so I can merge this.

Please do sign the CLA so I can merge this.

just did! It was giving me an error earlier today, but it worked this time.

Thanks for the fixes! 🚀


fix(versions): update Activiti/activiti-cloud-example-chart-modeling versions into master

UpdateBot pushed helm dependency: activiti-cloud-modeling to: 7.1.97

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-modeling 7.1.97

 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-x-bot 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.


New app - Aperture Science Clock

This is a new clock face inspired by the Portal videogame series.
More info in the README.

Thanks! Looks like the supports field in metadata.json needs to be an array though: "supports": ["BANGLEJS"],

Alright, I corrected the file, everything should be good to go now.

Great - thanks!


Add optional prometheus scrape interval to Helm chart

Closes #373

Codecov Report

Merging #416 (db93942) into main (4027a0a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #416   +/-   ##
=======================================
  Coverage   75.58%   75.58%
=======================================
  Files          17       17
  Lines        1491     1491
=======================================
  Hits         1127     1127
  Misses        286      286
  Partials       78       78

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


top_k function error

❓ Questions and Help
When I testing my checkpoint, I encounter some errors like follow:
objectness, topk_idx = objectness.topk(pre_nms_top_n, dim=1, sorted=True)
this code is in rpn/inference.py
error like this : /rpn/inference.py", line 101, in forward_for_single_feature_map     box_regression = box_regression[batch_idx, topk_idx] RuntimeError: CUDA error: device-side assert triggered
and I find my topk_idx is out of index, as follow
batch_dix: tensor([[0],         [1],         [2],         [3]], device='cuda:0'), topk_idx: tensor([[9223372034707292159,                   0,<PHONE_NUMBER>559808512,           ...,<PHONE_NUMBER>,                   0,<PHONE_NUMBER>707292159],         [<PHONE_NUMBER>,<PHONE_NUMBER>707292159,                   0,           ...,                   0,<PHONE_NUMBER>707292159,<PHONE_NUMBER>707292159],         [9223372032559808512,<PHONE_NUMBER>707292159,<PHONE_NUMBER>,           ...,<PHONE_NUMBER>559808512,<PHONE_NUMBER>707292159,                            0],         [9223372032559808512,<PHONE_NUMBER>,                   0,           ...,<PHONE_NUMBER>707292159,<PHONE_NUMBER>,<PHONE_NUMBER>707292159]], device='cuda:0')

I have checked other issus about classes not matched,  and not found errors about my labels.  because I have only one class of 'text', its class_id is 1, no zero(zero is background).  and my ROI_BOX_HEAD.NUM_CLASSES is 2, its also no problem.
Cloud someone tell me why?Thanks os much.
I use the model  maskrcnn_resnet50, is it not convergen?

@weiyaowu666 I have the same problem. Did you solve it? Thanks!

@weiyaowu666 I have the same problem:topk_idx is out of index. Did you solve it? Thanks!
Due to the model has  diverged, so you need to check your datasets and network config(such as lr, architecture, etc.) to ensure any steps are right.

@weiyaowu-md  @LIszu   How you solved the problem?  I also met the same question

@WeihongM

@weiyaowu-md @LIszu How you solved the problem? I also met the same question

Yes，the problem comes from the model is divergency. Try to decrease the learning rate and check out the dataset is well processed.

I have checked the dataset, it seems no problem.  @weiyaowu-md  It is confusing why I can't train the model now, whose training process is normal earlier...  Can you give me some suggestions?

I have checked the dataset, it seems no problem. @weiyaowu-md It is confusing why I can't train the model now, whose training process is normal earlier... Can you give me some suggestions?

@WeihongM Maybe the environment is damaged, you can reinstall it and try it again. Clone a new coderepo and install it maybe better.


clean up go modules

Testify is included twice in two different ways. This consolidates to single import path.
cc: @kolaente (this hopefully resolves the go module issues you have had with my libraries)

Codecov Report

Merging #1260 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1260      +/-   ##
==========================================
- Coverage    57.4%   57.39%   -0.02%
==========================================
  Files          44       44
  Lines        7811     7811
==========================================
- Hits         4484     4483       -1
  Misses       2772     2772
- Partials      555      556       +1

Impacted Files
Coverage Δ

xorm.go
68.18% <0%> (-1.52%)
:arrow_down:

Continue to review full report at Codecov.

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

I think this bug will block any usage of xorm with go mod if vendored after https://github.com/go-xorm/xorm/pull/1210

I can confirm this PR fix at least my case by testing with:
replace github.com/go-xorm/xorm => github.com/techknowlogick/xorm v0.7.2-0.20190330194841-10f0de7dc384

Thanks! @techknowlogick  @sapk


Access private Github repos

I set up a private github repos for hosting wiki, but newly added collaborator of the repos still gets HTTP 403. Does Jingo support this use case? Can a selected group of Github users collaborate wiki over Jingo?

It looks like if I make the repos public, it still does not work I got
failed to fetch user profile (status: 401 data: {"message":"Requires authentication","documentation_url":"https://developer.github.com/v3"})

Google login works fine.  Anyone tried github login?

Hi @lazydino
Github authentication for Jingo, is only used to authenticate users on Jingo itself (so that unauthorised users cannot access the document stored on the local repository). How jingo accesses the private repos it up to the local configuration of git itself. For this reason you may use ssh keys.
I just checked the github authentication and it works with no problems.

For future reference, if you desire to have jingo pull from a private GitHub.com repo:

Create an SSH key on your server. Instructions at https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/.

Add the SSH key to your GitHub account (which can access the private repo). https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

Change to your repo folder.

Run git remote add origin git@github.com:repouser/reponame to add the repo.

Run an initial git pull origin master and git push origin master.

Ensure origin is added as the repo in the jingo config YAML.

@concentrateddon I added a page into the wiki with those instructions. Thanks!
https://github.com/claudioc/jingo/wiki/How-to-have-jingo-pull-from-a-private-GitHub.com-repo


File System Watcher + Playlist Improvements

Closes #322
Closes #332
Here's the new file system watcher:

Here's the new create playlist dialog:

Also added a library mode indicator icon to the bottom bar:

C#'s FileSystemWatcher on Linux is backed by libnotify...can confirm that no extra flatpak permissions are needed for this to function correctly, works with no problems.
NOTE: GNOME flatpak runtime contains libnotify so no worries there either.

C#'s FileSystemWatcher on Linux is backed by libnotify

This doesn't make sense to me, libnotify is a library to send desktop notifications 😕
One more thing I want to change is filter in the file dialog can be used to select format instead of a separate comborow, I will work on that later today.

This doesn't make sense to me, libnotify is a library to send desktop notifications 😕

inotify sorry 😅

One more thing I want to change is filter in the file dialog can be used to select format instead of a separate comborow, I will work on that later today.

I don't know i feel like all the formats arent exposed to the user this way.
What we can do is if the user specifies the format in the file dialog (by providing the extension) then we can automatically select it in the format row.

I don't know i feel like all the formats arent exposed to the user this way.
What we can do is if the user specifies the format in the file dialog (by providing the extension) then we can automatically select it in the format row.

I don't get how they are not exposed, a dropdown in the dialog doesn't differ much from a comborow, but this way users will set filename with extension and the format in one place, and this will prevent situation when file extension doesn't match the format.

One more thing I want to change is filter in the file dialog can be used to select format instead of a separate comborow, I will work on that later today.

Will the filter in the FileDialog only filters out files of that type. If the user isn't overwriting a file and just specifies the name without the extension, it doesn't get added on automatically...it's our job to do that...so we need to know the format the user wants still.

If the user isn't overwriting a file and just specifies the name without the extension, it doesn't get added on automatically...

And then the validation should fail because the format is unknown. I think it's expected to always save playlist file with extension.

And then the validation should fail because the format is unknown. I think it's expected to always save playlist file with extension.

It's expected to save a playlist file with an extension yes, but we can't always expect the user to provide said extension as that's the nature of FileDialog...for example they may think that choosing the filter through the dialog is enough for choosing the format.
Similar how in Denaro a user can never sepcificy .nmoney at the end of an account file, and we add it on manually.
That's why I suggested that we keep the format row, but if the user specifies an extension in the file dialog we can change the format row to the extension they chose, otherwise they can still choose the format from the row and we will add the extension manually if needed.

we can't always expect the user to provide said extension as that's the nature of FileDialog...for example they may think that choosing the filter through the dialog is enough for choosing the format.

Ah, I understand now, okay.

That's why I suggested that we keep the format row, but if the user specifies an extension in the file dialog we can change the format row to the extension they chose, otherwise they can still choose the format from the row and we will add the extension manually if needed.

Okay, will do this then.

Okay, will do this then.

I could take care of this should just be a couple of lines and I'll time during the atternoon I believe to do it :)

we can't always expect the user to provide said extension as that's the nature of FileDialog...for example they may think that choosing the filter through the dialog is enough for choosing the format.

Huh, it seems like it depends on file chooser. Here on KDE it always adds .m3u, probably because it's the first format in the filter. Even if I write another supported extension, .m3u will be added anyway 🤔

Huh, it seems like it depends on file chooser. Here on KDE it always adds .m3u, probably because it's the first format in the filter. Even if I write another supported extension, .m3u will be added anyway 🤔

If you change the filter in the KDE dialog does it add the right extension?

So... Let's talk about the idea of setting the format in file dialog? 😄

Well what I have in mind for fixing this will handle both these cases on Gnome and KDE

Also, FPL should be removed from the list.

👍, however, i'll open an issue on ATL because it's listed there as supported.

however, i'll open an issue on ATL because it's listed there as supported.

https://github.com/Zeugma440/atldotnet/issues/230

If you change the filter in the KDE dialog does it add the right extension?

I will check, it should, currently we have only "All formats" so it was using the first one inside it

If you change the filter in the KDE dialog does it add the right extension?

I will check, it should, currently we have only "All formats" so it was using the first one inside it

Ah I thought I added all individual ones as well. Will do that and the fixes I had planned and we can check after if that solves everything. Just be a little bit till I get home from work...busy day today 😅

If you change the filter in the KDE dialog does it add the right extension?

If I choose individual filter then an extension is added correctly.

@fsobolev Okay try latest commit, should all be good!


ENH: added Dexela detector

During a visit at NSLS-II SRX beamline, we with @ke-zhang-rd figured out we miss the Dexela detector (from this list). This PR intends to fix this omission.

Missing the cam? Original was https://github.com/NSLS-II-HXN/hxntools/blob/master/hxntools/detectors/dexela.py#L63 - is SRX's modified compared to HXN's?

Thanks, @mrakitin. I believe this is the first model we have added since @klauer's initial work years ago. Once it's ready, let's all await final approval from @klauer required before merging.

Sounds good.
Somewhat related: I also have a 66.667% ready-to-submit PR that includes support for all AreaDetector plugin versions from 1-9-1 to 3-3. I haven't done anything with the cams just yet, though. That work still shouldn't conflict with this specific PR, but just so you're aware it's coming down the line.

Sorry for the delay, this PR was lost after I returned back from vacation in December. Going to revive it this week. @klauer, do you think your PR mentioned above will affect this one somehow?

Ready for your review; the cam was copied from https://github.com/NSLS-II-HXN/hxntools/blob/baa8a9819b965db6ca2fe19b40d3981823d9a41c/hxntools/detectors/dexela.py#L34-L60.

Codecov Report

Merging #656 into master will increase coverage by 0.78%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #656      +/-   ##
==========================================
+ Coverage   90.73%   91.52%   +0.78%
==========================================
  Files          60       63       +3
  Lines        9236    10367    +1131
==========================================
+ Hits         8380     9488    +1108
- Misses        856      879      +23

Impacted Files
Coverage Δ

ophyd/areadetector/cam.py
100% <100%> (ø)
:arrow_up:

ophyd/areadetector/detectors.py
100% <100%> (ø)
:arrow_up:

ophyd/scaler.py
69.76% <0%> (-6.19%)
:arrow_down:

ophyd/ophydobj.py
95.67% <0%> (-3.1%)
:arrow_down:

ophyd/tests/conftest.py
94.04% <0%> (-2.39%)
:arrow_down:

ophyd/tests/test_quadem.py
98.3% <0%> (-1.7%)
:arrow_down:

ophyd/areadetector/trigger_mixins.py
54.38% <0%> (-1.65%)
:arrow_down:

ophyd/signal.py
94.42% <0%> (-1.54%)
:arrow_down:

ophyd/pseudopos.py
91.78% <0%> (-1.06%)
:arrow_down:

ophyd/areadetector/base.py
99.05% <0%> (-0.95%)
:arrow_down:

... and 34 more

Continue to review full report at Codecov.

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

Thank you, @klauer!


Background processing after process_request

I have a function being called with    $jaxon->processRequest();  that is called from a client browser.
The PHP function uses register_shutdown_function() php command to queue up another function that takes a long time to run which I want to execute in the background AFTER the object response has been returned to the client.
In the past I've forced the flushing of output to the client using these commmands after the processRequest.
ob_flush();
ob_end_flush();
session_write_close();
fastcgi_finish_request();
die(); //then the function registered will run on server after
But I notice with version 4 these commands never get exectued if they come after $jaxon->processRequest();   In earlier versions they did get executed and it worked fine.
I tried putting them in the after callback -- but when that is called the object response to the client has not been sent yet so I can't flush the output and exit?
Is there a way to reference the response to be sent in the callback so I can just print it and do the flushing to "complete" the php program so data is sent and the client connection is closed BEFORE the Long running shutdown function is executed?
As it stands since I can't flush and close the  client session -- the response doesn't get flushed until after my long background processes completes.
The problem is that I am trying to queue up a slow function to run in a PHP relong running function (sending mail)

I found the option   core.process.exit
$jaxon->setOption('core.process.exit', true);
Which causes the exit() to be called when the processRequest is finished.
However I have found that this is not enough to "FORCE" the connection to the client to be totally flushed and closed so the client will not have to wait for the register_shutdown function to complete.
The solution I use is to do:
ob_flush();
ob_end_flush();
session_write_close();
fastcgi_finish_request();
Before the exit.
I will submit a pull request to add these commands to the AjaxSendTrait.php file.

Hi,
What if you set this option to false $jaxon->setOption('core.process.exit', true);, and you add your specific code after the $jaxon->processRequest(); call as you used to do?

This solution works.   Setting the core.process.exit to false makes it work the way earlier versions did, and I can put my code to flush buffers after the processRequest call.


Add a note on binds for text object motions

Thought I'd drop this in the readme to explain how to mimic comment motions, a la commentary.
See also #315, #260. Thanks for continuing to provide community support for nerdcommenter!

Thanks for taking the time to contribute! I agree this isn't quite as good as having first-class motion support, but it's nice to have the documentation on-hand for what people that might want one or two equivalents for their favorite motions.

Thanks for taking the time to contribute! I agree this isn't quite as good as having first-class motion support, but it's nice to have the documentation on-hand for what people that might want one or two equivalents for their favorite motions.


write python code to generate terrain json file

Remember - json's are just Python dictionaries
... which is to say, you just need to build your terrain out as a dict and then save that out to  a json using json.dumps or something:
https://www.geeksforgeeks.org/how-to-convert-python-dictionary-to-json/

deferring this until the next iteration of the ARGP...


Expose card list open/close controls

would be nice to be able to toggle the state of the cards from the project

https://github.com/Teleopti/styleguide/pull/305


Date range picker: Month switches sides upon date selection

Reproduction link
https://stackblitz.com/edit/itzefl--run?file=src/app/app.component.ts
Steps to reproduce
When clicking into the date range picker, a dropdown is displayed that includes the calendars for two months, side-by-side. Click on any date in the right-side month, and note that that month will be immediately moved to the left hand side.
What is expected?
When selecting a day on one of the month calendars shown in the date range picker, that month should remain where it is.
What is actually happening?
Click on any date in the right-side month when selecting a start date on an empty date range, and note that that month will be immediately moved to the left hand side.

Environment
Info

ng-zorro-antd
11.0.1

Browser
Chrome - latest

This applies to the regular date range picker (i.e., Jan 1, 2021 - Jan 7, 2021). I haven't tested it on the time / week / month pickers.
The React version of this control works as expected - the month calendars remain where they are as you select dates. https://ant.design/components/date-picker/

https://user-images.githubusercontent.com/28040084/103936261-3321e100-50f5-11eb-8710-f2405ecb216d.mov
https://user-images.githubusercontent.com/28040084/103936268-35843b00-50f5-11eb-9b17-7b3d81517856.mov
Here's an example recording from the component demo page, along with one demonstrating the expected behavior from the React component demo page.

https://user-images.githubusercontent.com/28040084/103936261-3321e100-50f5-11eb-8710-f2405ecb216d.mov
https://user-images.githubusercontent.com/28040084/103936268-35843b00-50f5-11eb-9b17-7b3d81517856.mov
Here's an example recording from the component demo page, along with one demonstrating the expected behavior from the React component demo page.

This has been assigned the wrong label - it's the DatePicker component, not Select.

The users of my app complain about this a lot - it really makes the RangePicker almost unusable.

I agree with @jimcorban especially on date edit it's lead to swap the months in the calendar which makes no sense and confuse the user, please check the GIF :

+1


changes regarding types and comparisons

addresses #146
closes #144, #158 and #159

Spectacular.

Merged with https://github.com/nicolaiarocci/cerberus/commit/63a082449f54fd984560b4ab00f5493a5d22359a


Add dynamic targeting functionality for factory services to DS.

Add dynamic targeting functionality for factory services to DS.

move CreateFactoryComponent from ConfigurationNotifier to new class ComponentFactoryImpl
Process targets from configuration objects in CreateFactoryComponent
Add one test. (more to be added later). Signed-off by<EMAIL_ADDRESS>

Our requirements document only has use cases for factory services. I'm not aware of any use cases for dynamic targets for non-factory services. I'm not sure it makes sense.
Having a singleton service dependent on a factory service is not allowed (Section 3.4 of requirements document).
If a singleton is dependent on another singleton the targets in the manifest.json should suffice so we wouldn't need dynamic targets?

Our requirements document only has use cases for factory services. I'm not aware of any use cases for dynamic targets for non-factory services. I'm not sure it makes sense. Having a singleton service dependent on a factory service is not allowed (Section 3.4 of requirements document). If a singleton is dependent on another singleton the targets in the manifest.json should suffice so we wouldn't need dynamic targets?

Yes, however I thought that the functionality was to allow the target property of a service component's references to be dynamically updated by config admin at runtime, which doesn't care about the type of service (factory, singleton, etc...).

Our requirements document only has use cases for factory services. I'm not aware of any use cases for dynamic targets for non-factory services. I'm not sure it makes sense. Having a singleton service dependent on a factory service is not allowed (Section 3.4 of requirements document). If a singleton is dependent on another singleton the targets in the manifest.json should suffice so we wouldn't need dynamic targets?

Yes, however I thought that the functionality was to allow the target property of a service component's references to be dynamically updated by config admin at runtime, which doesn't care about the type of service (factory, singleton, etc...).

I can provide use cases where it would be useful to be able to update the target of a singleton service via Config Admin at runtime. One is where we have multiple services which satisfy a reference, but the "best" one (by service.ranking) is not the one we want to use. Being able to update the target would allow make it possible to ensure the correct service is chosen.
I think it would be very valuable to have this feature for all configurable service components, instead of only factories. Very happy for factories to be prioritised and released first though, as they are the majority of the use cases I believe!

Merging latest changes from development into this pull request


all entities unknown

Have tried to get this integration to work with a SUN-10K-SG04LP3-EU but all entities in shows "unknown".
Does anyone know of a solution for this?

I have the same problem with DEYE-SUN-M60G3-EU

Same for me. Logger serial starts with 4, according to doc, this should be supported right?

The serial for my logger starts with 27

I think the problem is that the extension broke with the 2024.02 release of homeassistant

Same for me all entities in shows "unknown".
I have 3 phase Sofar

I have the Same Problem

My serial starts with 23****. All in "unknown". How can use the mentioned V4?

Same here.
Newest HA.
IP:<IP_ADDRESS>
SN:17......
port:8899
1
deye_hybrid.yaml

My suggestion is to downgrade do version 1.4.3.
I had the same issues and now its all ok. I will stay on that version for longer.

My suggestion is to downgrade do version 1.4.3. I had the same issues and now its all ok. I will stay on that version for longer.

This is sad, isn't this developed any longer? How to downgrade?

My suggestion is to downgrade do version 1.4.3. I had the same issues and now its all ok. I will stay on that version for longer.

This is sad, isn't this developed any longer? How to downgrade?

https://hacs.xyz/docs/faq/select_version/

My suggestion is to downgrade do version 1.4.3. I had the same issues and now its all ok. I will stay on that version for longer.

This is sad, isn't this developed any longer? How to downgrade?

https://hacs.xyz/docs/faq/select_version/

Thanks, but seems not to work, whenever I select 1.43 in select box, it refreshes and shows 1.5.1 again.

Try to remove the integration first, restart HA and then  install it again but this time install the 1.4.3 version.

Downgrade to 1.4.3 did not help here. Still all unknown...

Downgrade to 1.4.3 did not help here. Still all unknown...

Downgrade worked for me after a restart.

Downgrade to 1.4.3 did not help here. Still all unknown...

Downgrade worked for me after a restart.

Ok, did you also downgrade the HA?
My version:
Core
2024.2.5
Supervisor
2024.02.0
Operating System
12.0
Frontend
20240207.1

Downgraded version 1.4.3 with current HA 2024.2.5 works.

After another reboot, again "Unknown" even with 1.4.3. As the developer doesn't seem to be interested to fix this, I will develop my own integration for this.

Please keep us posted if you get you own integration working!

Downgraded version 1.4.4 with current HA 2024.2.5 also works for me!

1.5.1
Core 2024.2.5
Supervisor 2024.02.1
Operating System 12.0
Frontend 20240207.1
SUN-M80G3-EU-Q0
S/N 23..
works with both
deye_4mppt.yaml or deye_2mppt.yaml
Problem starts after upgrade firmware from 1.57  to  MW3_16U_5406_2.32-D1
after some hours I run in this "unknown" problem
but resolve ist by remove the device and add it again with IP + S/N
the it runs for some hours again
it stops working while the inverter is still online and reporting to https://globalhome.solarmanpv.com/
once "unknown" nothing but re add the device can fix it

I have no way to work. I have tried all versions of the integration... my SN is 23**** and there is no way. any ideas?

Logger: custom_components.solarman.solarman
Quelle: custom_components/solarman/solarman.py:88
Integration: Solarman (Dokumentation, Probleme)
Erstmals aufgetreten: 09:35:39 (92 Vorkommnisse)
Zuletzt protokolliert: 09:58:10
Querying [1 - 125] failed with exception [V5FrameError: V5 frame contains invalid start or end values]
Querying [1 - 125] failed with exception [V5FrameError: V5 frame contains invalid sequence number]

In all Versions of SOLARMAN, i get this error

I have the same problem with DEYE-SUN-M60G3-EU

@sebastiansiede  see issue #467


Internal, external CSS not formatted equally

Indentation is inconsistent between styles in different locations.
Internal:
https://github.com/acdh-oeaw/apis-core-rdf/blob/8ba926298f20faf41f3dced76914c19c2775ea12/apis_core/core/templates/partials/backtotopbtn.html#L1-L9
External:
https://github.com/acdh-oeaw/apis-core-rdf/blob/8ba926298f20faf41f3dced76914c19c2775ea12/apis_core/core/static/css/core.css#L1-L8
See also #1326.

grep -r '<style>' *

does not list any internal CSS anymore, so I'm closing this


Check inputs in the parseConnectionError API

Hi
I have mentioned about the following problem of error handling of websocket here
https://github.com/WalletConnect/walletconnect-monorepo/issues/548#issuecomment-1057572355
The fix to this is simply to add (e != undefined) check in the parseConnectionError API
WebSocket connection to 'wss://relay.walletconnect.org/?env=browser&host=localhost%3A8001&projectId=...&protocol=wc&version=2' failed: Error during WebSocket handshake: Unexpected response code: 502
 Uncaught TypeError: Cannot read property 'message' of undefined

how to add (e != undefined) ? I still can't configure


Remove default nginx ingress controller

Hi,
Is it possible to remove the default nginx ingress controller?. At my current employer, we do not need to deploy the default public ingress controller, instead we just need only an internal one. With the current implementation of aks-app-routing-operator (source), the default controller always gets created which always creates a public load balancer.

I have seen https://github.com/Azure/aks-app-routing-operator/pull/189, but not sure how to use it.
BTW, even w/o that PR, you still can replace the default one like here: https://github.com/Azure/AKS/issues/4233#issuecomment-2076336636

Hi,
Is it possible to remove the default nginx ingress controller?. At my current employer, we do not need to deploy the default public ingress controller, instead we just need only an internal one. With the current implementation of aks-app-routing-operator (source), the default controller always gets created which always creates a public load balancer.

This will be a new feature in the next month or two as part of the AKS ARM configuration. You'll be able to specify if you want a public, internal, or no default Ingress Controller.

@JoeyC-Dev thank you for the insight. I just wanted to avoid patching a resource that we do not control directly (the default controller). On the other hand, what @OliverMKing mentioned sounds even better. Looking forward for the update :)

@OliverMKing Would this include the ability to create a connected Private Link Service as per this doc or would we still need to patch the default resource? https://learn.microsoft.com/en-us/azure/aks/internal-lb?tabs=set-service-annotations#create-a-private-link-service-connection

@OliverMKing Would the new feature include the ability to create a connected Private Link Service as per this doc or would we still need to patch the default resource?
https://learn.microsoft.com/en-us/azure/aks/internal-lb?tabs=set-service-annotations#create-a-private-link-service-connection

The feature would allow you to specify "no default" and go completely custom. In that case, you'd fully control the lifecycle of all NginxIngressController custom resources and could connect with Private Link Service that way.

This is now possible: https://learn.microsoft.com/en-us/azure/aks/app-routing-nginx-configuration?tabs=bicep#control-the-default-nginx-ingress-controller-configuration

Looks like the az-cli support is coming soon: https://github.com/Azure/azure-cli-extensions/pull/7865

See https://github.com/hashicorp/terraform-provider-azurerm/issues/27109 for the azurerm provider. Since it is still in preview they will wait for it to go to GA.


.eslintignore is not working

I'm not sure is that a right place for an issue. I have such .eslintrc file:
// http://eslint.org/docs/rules
{
  "parser": "babel-eslint",
  "env": {
    "browser": true,
    "node": true
  },
  "plugins": [
    "react"
  ],
  "rules": {
    "strict": 0,
    "quotes": [2, "single"],
    "no-underscore-dangle": 0,
    "no-unused-vars": 1,
    "no-unused-expressions": 0,
    "react/jsx-no-undef": 2
  }
}

And .eslintignore in the root folder with one line:
lib/**/*.js

However files in the lib folder are still linted and highlighted with warnings in Sublime..

Plugin does not execute eslint in the directory of file and it does not use its .eslintignore. Copy your ignore settings to .sublimelinterrc
{
    "linters": {
        "eslint": {
            "excludes": ["lib/**/*.js"]
        }
  }
}

@roadhump thanks!


Not able to see Crash report on MS-App Center.

Bug Report
Plugin(s)
npm i @capacitor-community/appcenter @capacitor-community/appcenter-analytics @capacitor-community/appcenter-crashes --save-exact
npx cap sync
Capacitor Version
💊   Capacitor Doctor  💊
Latest Dependencies:
@capacitor/cli: 3.6.0
@capacitor/core: 3.6.0
@capacitor/android: 3.6.0
@capacitor/ios: 3.6.0
Installed Dependencies:
@capacitor/cli: 3.6.0
@capacitor/core: 3.6.0
@capacitor/android: 3.6.0
@capacitor/ios: 3.6.0
[success] iOS looking great! 👌
[success] Android looking great! 👌
npm notice
npm notice New minor version of npm available! 8.5.5 -> 8.13.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.13.2
npm notice Run npm install -g<EMAIL_ADDRESS>to update!
npm notice
Platform(s)
Android, iOS
Current Behavior
When added Crashes.generateTestCrash() in app-component.ts file Not able to generate the test crash the app in both Android and iOS platforms and not able to see report on MS-App Center
Expected Behavior
Should be able to crash the app and see logs on MS-App Center.

@omsatam123 Can you share console logs or error messages?

@johnborges : Can you please assist what kind of log or error messages required. Is it XCode  or Android Studio level error messages/console level messages?
See the below snippet implementation code for app-component.ts file:
import { Component } from '@angular/core';
import Crashes from '@capacitor-community/appcenter-crashes';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
})
export class AppComponent {
   constructor() {
       Crashes.generateTestCrash();

}
}


[AMBARI-23130] Retrieve cluster template as artifact with passwords filtered out.

What changes were proposed in this pull request?
Cluster templates are saved as artifacts during blueprint cluster creation and can be retrieved via the artifact resource provider API. Passwords are replaced with references during retrieval.
How was this patch tested?
Tested manually. Wrote new unit tests. Unit test run is pending.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1705/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1730/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1735/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1736/
Test FAILed.
Test FAILured.


Possible memory leak in TAllergies

TAllergies creates a TList and a TDictionary, but does not release them. This is usually done in the constructor (which is not defined).

@PKGeorgiev thanks for taking the time to review my example solution for the exercise Allergies.  You have pointed a couple of things that I can improve.

The TList that you mention is actually never used and is never instantiated so I will remove its declaration from TAllergies.
I will add a destructor that will clean up the instance of TDictionary that is created within the constructor.

@PKGeorgiev take a moment to look over my changes.  I'll allow my PR to sit for a couple of days before I merge it.  Let me know if you have any questions and thanks again for your input.


Fairplay streaming with iOS simulator

What do you want to do with Clappr?
Play Fairplay stream on iOS simulator's Safari with Clappr and HTML5playback plugin
Device: iPad Pro 11-inch v13.2.2 (Simulator)
Browser: Safari mobile v13.2.2 (gets the simulator version)
What have you tried so far?
Playing encrypted content on Mac OS with Safari has been working well, now I've been trying to run the same application on a simulator with no success, it seems that the event "webkitneedkey" is not fired, no errors are being displayed - just silence.
Apple's Debugging FairPlay Streaming doc is clearly pointing out that this event will be fired when running on Safari on macOS, I couldn't find any reference for Safari on Simulator.
Here is some of the code to maybe help understand this more clearly:

Index.html
player.bundle.js is a simple webpack bundle with clappr built in it

<!DOCTYPE html>

    <meta charset="UTF-8">
    <title></title>

    <button id="play-btn">Play</button>

Player.js

const Html5playback = require('./html5playback');
let player;

class Player {
    async play() {
        const urlParams = new URLSearchParams(window.location.search);
        const source = urlParams.get('assetUrl');
        this.player = new Clappr.Player({
            source: source,
            parentId: '#player',
            plugins: [Html5playback.Html5playback],
            events: {
                onPlay: function () {
                    console.info("event onPlay")
                }.bind(this),
                onTimeUpdate: function (statusObject) {
                    console.info(`event onTimeUpdate current time: ${statusObject.current}, total: ${statusObject.total}`);
                }.bind(this),
                onError: function (err) {
                    console.info(`event onError message: ${JSON.stringify(err)}`);
                }.bind(this)
            }
        });
    }
}

window.onload = async () => {
    player = new Player();
    const btnElement = document.getElementById('play-btn');
    btnElement.addEventListener('click', async() => { await player.play(); });
};

html5playback.js

const Clappr = require('clappr');
const utils = require('./utils');

class Html5playback extends Clappr.HTML5Video {
    constructor(...args) {
        super(...args);
        this.onVideoWebkitNeedKey = this.onVideoWebkitNeedKey.bind(this);
    }

    base64DecodeUint8Array(input) {
        const raw = window.atob(input);
        const rawLength = raw.length;
        let array = new Uint8Array(new ArrayBuffer(rawLength));

        for (let i = 0; i < rawLength; i++) {
            array[i] = raw.charCodeAt(i);
        }
        return array;
    }

    async onVideoWebkitNeedKey(event) {
        const video = event.target;
        let initData = event.initData;
        const keyRef = String.fromCharCode.apply(null, new Uint16Array(initData.buffer)).substr("lskd://".length + 1);
        initData = utils.concatInitDataIdAndCertificate(initData, this.contentId, this.serviceCert);

        if (!video.webkitKeys) {
            video.webkitSetMediaKeys(new WebKitMediaKeys("com.apple.fps.1_0"));
        }
        this.keySession = video.webkitKeys.createSession("video/mp4", initData);
        this.keySession.contentId = this.contentId;

        this.keySession.addEventListener("encrypted", async (licenseEvent) => {
            const licenseChallenge = btoa(String.fromCharCode.apply(null, new Uint8Array(licenseEvent.message)));
            const license = await utils.sendLicenseKeyRequest(keyRef, licenseChallenge, this.authToken, this.contentId);
            const licenseDataByteArray = this.base64DecodeUint8Array(license);
            this.keySession.update(licenseDataByteArray);
        }, false);

        this.keySession.addEventListener("webkitkeyerror", function(event) {
            console.log(`Error webkitkeyerror code ${event.error.code}`)
        }, false);
    }

    async play() {
        this.$el.on("webkitneedkey", this.onVideoWebkitNeedKey);
       //this is where the event listener is being added
       //tried also: this.$el[0].addEventListener("webkitneedkey", this.onVideoWebkitNeedKey); - which basically is the same, with no success

        this.serviceCert = await utils.getServiceCertificate();
        this.contentId = this.$el.attr('src').split('/').slice(-2)[0];
        this.authToken = await utils.getAuthToken(this.contentId);

        super.play();
    }
    pause() { super.pause(); }
    mute() { super.mute(); }
    stop() { this.$el[0].src = ''; }
}

module.exports = {
    Html5playback
};

Any Idea?
Thanks in advance.

@amirl1086 AFAIK DRM protected content is not supported on iOS Simulator, both on Safari and the AVFoundation native SDK.
There are some features that are not available on the iOS Simulator. In this case, it probably is to prevent reverse-engineering the DRM implementation.

@towerz , thank you for the response.
Do you know where is the reference to that?

@amirl1086 actually it's not stated directly by Apple. The only official statement is that the simulator is not guaranteed to have the same behavior (or even a complete implementation) as a real device.
It is documented in most FairPlay DRM implementors and player SDKs. Just citing a couple of examples:

Bitmovin
Brightcove iOS SDK

The reason is that DRM is usually tied to the hardware itself, and the iOS simulator creates a software layer between the iOS SDKs and the actual hardware of the Mac running on macOS. It could probably introduce a security issue, so they decided to not include support for this feature.


Readme Misinformation

Describe the bug
Readme mentions "and run on managed Azure Kubernetes Services (currently in preview)", this could be misleading as AKS is in GA.

We see on this page (https://azure.github.io/Industrial-IoT/deploy/):
Azure Kubernetes Services should be used to host the cloud micro-services (this is currently in preview, please see our documentation).
@suneetnangia is this the location you are referring to? If not, pls post a link to the page you saw this.

Hi Hans, I saw it here https://github.com/Azure/Industrial-IoT, I am not sure why we are suggesting it's in preview as AKS is not in preview. If a correction is needed, we should also fix it at the location you specified as well.

Fixed in linked commit.


Fix Version: Yubico.Authenticator - Added scope to installers

Updated manifest
added machine scope to installers

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Adding machine scope to installer as the installer will only install to program files. There is no user scope.
Microsoft Reviewers: Open in CodeFlow

Whoops, did not mean to pull in 2 requests at once. Should I close this request and start a new one.


Provide a path for model installation

Is there an option (or could it be added) to give a path where to download and look for the models? Instead of always installing them into a hidden folder at the user profile home directory?

Hi @StRigaud , thank you for the question.
The environment variable SAMAPI_ROOT_DIR can be used for that!
https://github.com/ksugar/samapi/blob/914703a61328cde291816f80363d0fa0402115bb/src/samapi/main.py#L60
I will include that information to README.
Please let me know if you have any further questions.

Hi @ksugar, thanks for the tips! That's what I needed.


Add emoji picker field.

https://github.com/missive/emoji-mart

Another library/guide that's out there: https://sowenjub.me/writes/emoji-picker-controller-with-stimulus-js/ using https://github.com/joeattardi/picmo .

General feeling is that emoji-mart feels cleaner from a UI perspective.

Looks pretty straightforward.  I can ahead with emoji-mart using the Stimulus controller technique in the article.


Example for finding features with epistatic effects with scikit-mdr

It seems that the utilities in mdr.utils is designed for this purpose but there is no documentation about how to use them. I have a quick look into those codes and made the demo for calculating scores for n-way combinations and I think it maybe a way to finding feature combinations with epistatic effect. Please let me know if it is the correct way.
from mdr import MDRClassifier
import pandas as pd
from mdr.utils import n_way_models
import operator

genetic_data = pd.read_csv('https://github.com/EpistasisLab/scikit-mdr/raw/development/data/GAMETES_Epistasis_2-Way_20atts_0.4H_EDM-1_1.tsv.gz', sep='\t', compression='gzip')

features = genetic_data.drop('class', axis=1).values
labels = genetic_data['class'].values
feature_names = list(genetic_data.columns)

my_mdr = MDRClassifier()
my_mdr.fit(features, labels)
print("Score for using all features", my_mdr.score(features, labels))

#n: list (default: [2])
#The maximum size(s) of the MDR model to generate.
#e.g., if n == [3], all 3-way models will be generated.
n = [2]
mdr_score_list = []
#  Note that this function performs an exhaustive search through all feature combinations and can be computationally expensive.
for _, mdr_model_score, model_features in n_way_models(my_mdr, features, labels, n=n, feature_names=feature_names):
    mdr_score_list.append((model_features, mdr_model_score))
mdr_score_list.sort(key=operator.itemgetter(1), reverse=True)
print("The combination with highest score:", mdr_score_list[0])

Exported output:
Score for using all features 0.998125
The combination with highest score: (['P1', 'P2'], 0.793125)

The test code worked for me and did what I had wanted to do. Thanks!


Docker Go Tests fail on commits to k3s-io branches

Environmental Info:
When commits are made to branches in k3s-io, often in depedabot or other automated bot branches.
Describe the bug:

The new docker go tests see the "skew" test consistently fail, as the logic around "Determine parent branch" is does not handle commit branches.
Steps To Reproduce:
https://github.com/k3s-io/k3s/actions/runs/12038906686/job/33565935782?pr=11336
Expected behavior:
Skew test should find "master" or other "release-1.XX" branch as parent.

Actual behavior:
Skew test finds the branch it is currently on as parent

Additional context / logs:

Validated on https://github.com/k3s-io/k3s/pull/11336 as working again.


Support rpm and apt install on linux distros

https://github.com/stripe/stripe-cli/actions/runs/2067585980 here is an example of Stripe's CLI build action to release across different OS platforms

To start, we don't need rpm or apt install, probably a simple downloadable binary on Linux will suffice, Stripe examples:

Striple releases on github, binary for every platform directly downloadable: https://github.com/stripe/stripe-cli/releases/tag/v1.8.6
Stripe Github action example for releases: https://github.com/stripe/stripe-cli/actions/runs/2067585980