Unable to get SSID if disconnecting and reconnecting to the WIFI, when APP is in background.

Environment
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Memory: 14.39 GB / 31.86 GB
Binaries:
Node: 10.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.15.2 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.1.0 - ~\AppData\Roaming\npm\npm.CMD
Watchman: 20210102.202219.0 - C:**\watchman-v2<IP_ADDRESS>-windows\bin\watchman.EXE
SDKs:
Android SDK:
API Levels: 23, 24, 25, 26, 27, 28, 29
Build Tools: 23.0.1, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.2, 29.0.3
System Images: android-16 | Google APIs Intel x86 Atom, android-19 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version  <IP_ADDRESS> AI-192.7<IP_ADDRESS>41897
Visual Studio: 16.5.29911.84 (Visual Studio Professional 2019), 15.5.27130.2020 (Visual Studio Community 2017), 15.6.27309.0 (Visual Studio Community 2017), 15.9.28307.108 (Visual Studio Professional 2017)
Languages:
Java: Not Found
Python: 2.7.15
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ~0.63.4 => 0.63.4
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Platforms
Android
Versions

Android: 10
iOS: -
react-native-netinfo: ^5.9.10
react-native: 0.63.4
react: 16.13.1

Description
When starting up the react native APP, it works fine. I get the SSID without a problem.
If disconnecting and reconnecting (automatically) to the WIFI while APP is in background, (By this i mean cutting the power to the router. Don't set flight mode or disable Wifi on the phone), i get internet connection just fine, but no SSID
When i'm not able to get SSID with react-native-netinfo at this time, I'm able to get SSID with react-native-wifi-reborn. (I'm doing this as a fix in my main App atm.)
Reproducible Demo
Step 1: Create new react native app with @react-native-community/netinfo
Step 2: Insert the following in App.js
Step 3: Start app, and put it in the background and turn off screen
Step 4: Shutdown the wifi, and wait until the android is reconnected
Step 5: Open app
// React Native NetInfo
// https://aboutreact.com/react-native-netinfo/

// import React in our code
import React, { useState, useEffect } from "react";

// import all the components we are going to use
import { SafeAreaView, StyleSheet, View, Text, Button, PermissionsAndroid } from "react-native";

import NetInfo from "@react-native-community/netinfo";

export const grantAccessFineLocationPermission =  async() => {
  console.log(PermissionsAndroid.PERMISSIONS.ACCESS_NETWORK_STATE, PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION)
  const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, {
      title: 'Location permission is required for WiFi connections',
      message: 'This app needs location permission as this is required to scan for wifi networks.',
      buttonNegative: 'DENY',
      buttonPositive: 'ALLOW',
    });

    return granted === PermissionsAndroid.RESULTS.GRANTED;
}

const App = () => {
  const [netInfo, setNetInfo] = useState("");
  useEffect(() => {
    grantAccessFineLocationPermission();
    // Subscribe to network state updates
    const unsubscribe = NetInfo.addEventListener((state) => {
      setNetInfo(
        `Connection type: ${state.type}
        Is connected?: ${state.isConnected}
        IP Address: ${state.details.ipAddress}
        SSID: ${state.details.ssid}`
      );
    });

    return () => {
      // Unsubscribe to network state updates
      unsubscribe();
    };
  }, []);

  const getNetInfo = () => {
    // To get the network state once
    NetInfo.fetch().then((state) => {
      alert(
        `Connection type: ${state.type}
        Is connected?: ${state.isConnected}
        IP Address: ${state.details.ipAddress}
        SSID: ${state.details.ssid}`
      );
    });
  };

  return (
    <SafeAreaView style={{ flex: 1 }}>
      <View style={styles.container}>
        <Text style={styles.header}>
          React Native NetInfo
          {"\n"}
          To Get NetInfo information
        </Text>
        <Text style={styles.textStyle}>
          {/*Here is NetInfo to get device type*/}
          {netInfo}
        </Text>
        <Button title="Get more detailed NetInfo" onPress={getNetInfo} />
      </View>
    </SafeAreaView>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "white",
    padding: 10,
    justifyContent: "center",
  },
  header: {
    fontSize: 22,
    fontWeight: "600",
    color: "black",
    textAlign: "center",
    paddingVertical: 20,
  },
  textStyle: {
    marginTop: 30,
    fontSize: 16,
    textAlign: "center",
    color: "black",
    paddingVertical: 20,
  },
});

export default App;

```

This library is not really designed to be used in the background. You also won't be able to use hooks when in the background because these are run inside mounted UI components and will not be present when the app is in the background.
You might be able to get something going with the addEventListener method and HeadlessJS on Android, but iOS wont be supported:
https://reactnative.dev/docs/headless-js-android


Octal literals

Running via node --use_strict yields: SyntaxError: Octal literals are not allowed in strict mode.

don't use --use-strict


Prometheus scrapes data for custom exporter with multiple identical HELP and TYPE when promtool fails

What did you do?
Wrote a custom exporter for Spectrum Performance Center that puts out duplicate HELP and TYPE statements.  The custom exporter is being fixed on our end but Prometheus scraped the data without issue.  Eventually data stopped collecting even though Prometheus showed the scrape as just fine.
How the exporter is called:
http://localhost:8001/int/myrouter1
Output:
# HELP interface_bw Interface BW for Gi1
# TYPE interface_bw summary
interface_bw_in_bits{device="myrouter1",interface="Gi1",} 11
interface_bw_out_bits{device="myrouter1",interface="Gi1",} 16
# HELP interface_bw Interface BW for Gi2
# TYPE interface_bw summary
interface_bw_in_bits{device="myrouter1",interface="Gi2",} 1477
interface_bw_out_bits{device="myrouter1",interface="Gi2",} 125709
# HELP interface_bw Interface BW for Gi3
# TYPE interface_bw summary
interface_bw_in_bits{device="myrouter1",interface="Gi3",} 132831
interface_bw_out_bits{device="myrouter1",interface="Gi3",} 8135

Discovered the issue when promtool choked on the duplicate help and type.
What did you expect to see?
Prometheus should fail the scraper job and put something in the logs
What did you see instead? Under which circumstances?
Prometheus went along fat dumb and happy until at some point after a few days it decided to stop collecting data on myrouter1
Environment

System information:
Linux 3.10.0-693.5.2.el7.x86_64 x86_64

Prometheus version:
prometheus, version 2.1.0 (branch: HEAD, revision: 85f23d82a045d103ea7f3c89a91fba4a93e6367a)
build user:       root@6e784304d3ff
build date:       20180119-12:01:23
go version:       go1.9.2

Alertmanager version:

Prometheus configuration file:

# my global config
global:
  scrape_interval:     300s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 60s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      # - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ['localhost:9090']

  - job_name: 'myrouter1'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    metrics_path: /int/myrouter1

    static_configs:
      - targets: ['SPCexporter:8001']

    basic_auth:
      username: nunya
      password: bidness

  - job_name: 'myrouter2'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    metrics_path: /int/myrouter2

    static_configs:
      - targets: ['SPCexporter:8001']

    basic_auth:
      username: nunya
      password: bidness

  - job_name: 'aws-gis-transit-prod-dx'
    static_configs:
      - targets: ['cloudwatch-exporter:9100']

  - job_name: 'Grafana Stats'
    scrape_interval: 5s
    static_configs:
      - targets: [ 'mygrafana' ]

Alertmanager configuration file:

n/a

Logs:

nothing came out in the logs

I don't think your issue is related to the duplicates, though you should fix that too.
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.

So prometheus not throwing an error on an illegal exporter data output is not an issue?

This is as expected for Prometheus 2.x, it's a tradeoff for performance.

Ahh ok cool


414 Request-URI Too Large

Hi there!,
This is really an amazing tool to convert our code to latex and can fetch our code using the pdf viewer.
But I have been facing an issue. As stated in the README.md, I have implemented my app using the
latexonline.cc/compile?text=${texCode}.
In my code I have'nt used any request like GET, PUT, POST instead I have used an <embed /> tag

For shorter code lengths there isn't any problem. After having code length more than 4000 chars, I was unable to compile the code and stated the error below

After some research, I got to know that the fault was the length of the request parameter (i.e text feild) is high.
Please help me in solving this error.
Thank You Sir.

@likhithareddyputturu @jldiaz @lologhi @udalov @Toflar
Yeah I am also getting the same error
I am struck. Please help me in solving this


Hsexperiment release on beta

Closing this as https://github.com/atlanhq/atlas-metastore/pull/770 is merged


fatsort: <IP_ADDRESS>2 -> <IP_ADDRESS>5

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/fatsort/versions.
meta.description for fatsort is: "Sorts FAT partition table, for devices that don't do sorting of files"
meta.homepage for fatsort is: "http://fatsort.sourceforge.net/"
meta.changelog for fatsort is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/i7l4cwb22nza5mma7cmss18ighp9166r-fatsort-<IP_ADDRESS>5/bin/fatsort passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found <IP_ADDRESS>5 in filename of file in /nix/store/i7l4cwb22nza5mma7cmss18ighp9166r-fatsort-<IP_ADDRESS>5

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
docbookrx
fatsort

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/i7l4cwb22nza5mma7cmss18ighp9166r-fatsort-<IP_ADDRESS>5 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A fatsort https://github.com/r-ryantm/nixpkgs/archive/340f44c83df480121f37dd64aa9b50e4cfb0f7fb.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/i7l4cwb22nza5mma7cmss18ighp9166r-fatsort-<IP_ADDRESS>5
ls -la /nix/store/i7l4cwb22nza5mma7cmss18ighp9166r-fatsort-<IP_ADDRESS>5/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

fatsort

Maintainer pings
cc @kovirobi for testing.

@ofborg eval


@conda-forge-admin, please add bot automerge

Additional comment:
No response

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/pycrostates-feedstock#3.


feat(c/driver/sqlite): port SQLite driver to nanoarrow

Fixes #120.
Also related: #144.

Also TODO here: use ArrowCharView where it makes sense

Thanks for the review. I think I'm down to needing to fix apache/arrow-nanoarrow#76 (which is the Go failure here) and apache/arrow-nanoarrow#75, which I'll do shortly.

Packaging build here: https://github.com/lidavidm/arrow-adbc/actions/runs/3568235381

I guess I'll wait for arrow-nanoarrow to be updated so I can update the vendored nanoarrow before merging.


Document ApplicationCallbackExecCtx

Comment to provide needed ctx for #17981 as well as fixing the documentation for ExecCtx

Thanks. Reviewer comments addressed, and squashed. Will merge when tests go green.


Reworked update into rectify

When merged this will close #249 and close #164.

Merging this will also close #250.


jupyter-js-services

Switched from jupyter-kernel-launcher to jupyter-js-services
Switched from iPython server to Jupyter Kernel Gateway
Added keymap and menu commands
Updated style to match native UI and syntax themes
Fixed issue with process.env.PATH so that it can spawn child processes without requiring Atom to be launched from the command line
Fixed issue with receiving Jupyter stream/async messages

Well this is awesome. Thank you @gnestor!

I'm glad you're using the kernel gateway here too. /cc @parente

I'm going to go ahead and merge this so you can shipit and iterate freely. This hasn't been touched in a while; it's good to have you.

@rgbkrk Happy to help. Thanks for adding me to the repo. More to come...


[CloudReady Beta 74.2] cannot create /sys/kernel/debug/dri/drm_master_relax: Operation not permitted

sudo edit-chroot -all
name: bionic
encrypted: no
/usr/local/bin/enter-chroot: 403: /usr/local/bin/enter-chroot: cannot create /sys/kernel/debug/dri/drm_master_relax: Operation not permitted
Unmounting /mnt/stateful_partition/crouton/chroots/bionic...

Please describe your issue:
Hello. Ever since I updated to CloudReady Beta 74.2, I cannot get Crouton working. It always results in the same error whether I try to update my chroot, startxfce4, or even the list command as pasted above. I can delete the chroot, but unfortunately installing again results in the same error. I also tried "Disabling RootFS Verification", but that made no difference. I'd rather not reinstall CloudReady, at least not without knowing if it'll change anything. Please help, thank you.
If known, describe the steps to reproduce the issue:
sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton (same result without this step)
sudo crouton -r bionic -t xfce,xiwi,xorg (fails here, same with default xenial)
sudo startxfce4 (also fails here)

@T7J7L,
There was a crouton pull request merged a while back -

Enable drm_master_relax: Allow normal user to set/drop DRM master. #602

It would "Allow X server running as normal user to set/drop DRM master"
I'm not sure why it can't create that file on the newer CloudReady Beta 74.2
Maybe one of the devs will drop by and lend a hand and/or maybe the Neverware Zendesk support site could help out.
Hope this helps,
-DennisLfromGA

I updated my old thread at CloudReady support, here's what they said:
https://neverware.zendesk.com/hc/en-us/community/posts/360029034174-Cannot-start-Crostini-Flatpak-buggy-apps?mobile_site=true&page=1#community_comment_360004808593

@T7J7L,
Thanx for the link.
We can keep this open for now since it's not clear to me at least what may be required.
You can close it of course if you're satisfied with the Zendesk response.
-DennisLfromGA

Since the installation was already not in a state I'd prefer, I poked around some more and decided to start fresh for this bug.
So fresh install it is, this time with a spare/testing Gmail that is pretty much clean/default. Updated to Beta 74.2, and followed "The easy way" in README.md, but failed with exact same error as before. See attached screenshot (made before) for more details.
TBH, I'm more likely going to restore my past MX Linux install than to set up everything with my main Gmail again at this point...

@T7J7L,
I'm wondering if you have the flag #enable-myfiles-volume and if disabling it helps at all?
-DennisLfromGA

Disabling/Enabling the flag made no difference unfortunately, even after full reboots.

I'm guessing everything is in control, and I don't need to do anything? So I can restore that machine back to what it had before this CloudReady mess of sorts? Though seriously please let me know soon, because I'm itching to just do that likely before tomorrow ends...

Did you ever find a solve for this? I'm encountering the same issue and can't find anything useful.

@mabalacat I actually tried Stable 74.4 not too long ago and experienced the same disappointment again. CloudReady Beta 76.2 is available now though, and they said the MyFiles issue is fixed. Maybe try that and please let me know? Thanks.

Bemused to report that nothing's changed on CloudReady 76.3 and w/e version of Crouton is the latest as of now. Though I didn't bother to "Install OS" onto internal drive (and signed in with a virtually barebones test Gmail), I doubt running it as a "Live Media" was the issue as the error is exactly the same other than Crouton's /tmp directory changes. Oh well, I can't say I won't bother with CloudReady or Crouton anymore, but disappointed to say the least.

Hello,
maybe I've found a fix. Here you can find my solution:
https://neverware.zendesk.com/hc/en-us/community/posts/360033733113-Problem-installing-Crouton
I also ask if the Crouton developers can check if it is the correct solution.


Allow for custom file extensions

Given the shift to multi-vendor support, in the plugin config, you should be able to provide a list of file extensions.
We could likely create another issue to set a filte extension check for each platform.
For now, we should focus on allowing the list to be edited.
As an example:
Arista: ".swi"
Cisco: ".bin"
Fortinet: ".out"
Palo Alto: no extension (might be challenging, but most use the UI)
Cumulus: ".bin"
Sonic: looks like no file extension
Juniper: I cannot remember
Opengear: ".flash"
Typing this out, we may want to allow any filename/extension.  Thoughts?

I left only .bin filter as plugin can upload/upgrade only Cisco IOS boxes. Someone can try to upload/upgrade device with wrong type of image in case of filter will be less strict. Also I do not have infrastructure to test upload/upgrade for other kind of vendors.
Probably, SoftwareImage model can have reference to Manufacturer model... will think about it. But (imho) just extending image filter can be dangerous.

Yep I agree.  I think the gaurs tail you put in place for upgrades by not allowing non bin files to be uploaded should just move to the upgrade process that would check platform is logic.  I'm happy to help and think about this also.


deprecated Tag::resetInput()

Using phalcon 3.3.1, there's a warning about the way forms are cleared. Create a new user to reproduce.
PHP Deprecated:  Function Phalcon\Tag::resetInput() is deprecated

This is also happening with Phalcon 3.3.2, its just happening everywhere when Tag:resetInput is used.

Fixed in the development branch. Feel free to open a new issue if the problem appears again. Thank you for contributing.


Add Dockerfile and docker-compose

Signed-off-by: Kesten Broughton<EMAIL_ADDRESS>

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


Fragmented MP4

Can this library take "standard" mp4 file and transcode it into fragmented mp4?

@ivanjaros
No, it can't.
This library can interpret only mp4 container layer.

ok, thanks.


[BUG] - When the connection is lost, it doesn't resubscribe to the events.

Description
When disconnected with code 1006, it doesn't resubscribe to the events upon reconnection and continues to be disconnected with code 4003.
At that time, I was testing Eventsub using the Bot class. While it was left connected, it seems the network was briefly disconnected, and it kept getting disconnected with code 4003.
Reproduction steps
1. Establishing a WebSocket connection.
2. Disconnecting the PC from the network.
3. We will restore the network connection shortly.
4. It keeps getting disconnected with code 4003.

  Attempting a reconnect in 8s
Traceback (most recent call last):
  File "c:\****\Lib\site-packages\twitch\gateway.py", line 133, in poll_handle_dispatch
    raise WebSocketClosure
twitch.gateway.WebSocketClosure

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

Traceback (most recent call last):
  File "c:\****\Lib\site-packages\twitch\client.py", line 446, in connect
    await self.ws.poll_handle_dispatch()
  File "c:\****\Lib\site-packages\twitch\gateway.py", line 136, in poll_handle_dispatch
    raise ConnectionClosed(self.socket, code=code) from exc
twitch.errors.ConnectionClosed: WebSocket closed with 1006 close code.
[2024-08-31 01:33:20] [DEBUG] twitch.gateway: Connected to WebSocket. Session ID: AgoQxs9NmZ5qRmGzEuF2MhdlGhIGY2VsbC1h
[2024-08-31 01:33:20] [DEBUG] twitch.client: Dispatching event ready
[2024-08-31 01:33:30] [DEBUG] twitch.gateway: Received WSMessage(type=<WSMsgType.CLOSE: 8>, data=4003, extra='connection unused')
[2024-08-31 01:33:30] [ERROR] twitch.client: WebSocket closed with 4003 close code. Attempting a reconnect in 8s
Traceback (most recent call last):
  File "c:\****\Lib\site-packages\twitch\gateway.py", line 133, in poll_handle_dispatch
    raise WebSocketClosure
twitch.gateway.WebSocketClosure

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

Traceback (most recent call last):
  File "c:\****\Lib\site-packages\twitch\client.py", line 446, in connect
    await self.ws.poll_handle_dispatch()
  File "c:\****\Lib\site-packages\twitch\gateway.py", line 136, in poll_handle_dispatch
    raise ConnectionClosed(self.socket, code=code) from exc
twitch.errors.ConnectionClosed: WebSocket closed with 4003 close code.
[2024-08-31 01:33:38] [DEBUG] twitch.gateway: Connected to WebSocket. Session ID: AgoQm79taUjjSVGTFdFDikqAZRIGY2VsbC1h
[2024-08-31 01:33:38] [DEBUG] twitch.client: Dispatching event ready
[2024-08-31 01:33:48] [DEBUG] twitch.gateway: Received WSMessage(type=<WSMsgType.CLOSE: 8>, data=4003, extra='connection unused')
[2024-08-31 01:33:48] [ERROR] twitch.client: WebSocket closed with 4003 close code. Attempting a reconnect in 8s
Traceback (most recent call last):
  File "c:\****\Lib\site-packages\twitch\gateway.py", line 133, in poll_handle_dispatch
    raise WebSocketClosure
twitch.gateway.WebSocketClosure

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

Traceback (most recent call last):
  File "c:\****\Lib\site-packages\twitch\client.py", line 446, in connect
    await self.ws.poll_handle_dispatch()
  File "c:\****\Lib\site-packages\twitch\gateway.py", line 136, in poll_handle_dispatch
    raise ConnectionClosed(self.socket, code=code) from exc
twitch.errors.ConnectionClosed: WebSocket closed with 4003 close code.

OS
Windows

I didn't test on an unstable connection, but I see the issue now. When the WebSocket disconnects, it should reconnect and re-subscribe to all cached events. I'm working on a fix and appreciate your patience!


feat: add Maven native dependency client

WIP. DO NOT REVIEW OR MERGE.

Codecov Report
Attention: Patch coverage is 12.80992% with 211 lines in your changes missing coverage. Please review.

Project coverage is 65.23%. Comparing base (dcf71dd) to head (3e389cf).

Files
Patch %
Lines

...nternal/resolution/client/maven_registry_client.go
0.00%
138 Missing :warning:

internal/resolution/datasource/maven_registry.go
33.33%
43 Missing and 3 partials :warning:

...rnal/resolution/datasource/maven_registry_cache.go
0.00%
23 Missing :warning:

cmd/osv-scanner/fix/main.go
0.00%
4 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1207      +/-   ##
==========================================
- Coverage   65.89%   65.23%   -0.66%
==========================================
  Files         168      170       +2
  Lines       14072    11133    -2939
==========================================
- Hits         9273     7263    -2010
+ Misses       4289     3356     -933
- Partials      510      514       +4

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


pentaphenylphosphorane

Please create an entry for pentaphenylphosphorane, (C6H5)5P
pentaphenylphosphorane has parent hydride phosphorane (CHEBI:30285)
IUPAC name: pentaphenyl-λ5-phosphane
CAS 2588-88-7
https://pubchem.ncbi.nlm.nih.gov/compound/2785233
https://www.chemspider.com/Chemical-Structure.2065130.html
https://en.wikipedia.org/wiki/Pentaphenylphosphorus and literature references therein (refs. 2, 4, 5)
Thanks

A new ChEBI entry has now been created (CHEBI:194485).


Remove Magento from this repo.

This is kind of nuts, but the "Magento as a dependency" concept is too intriguing to ignore.

hi,
You can split into 2 parts:

deploy a repository (this could be a sample demo or a custom site git repo) and use composer to install all requirements
add shared files/folders on top

Win?

first, using composer you get a faster and you always have latest versions
second, for shared files, you only do it once, you can use a container running one in a lifetime to set it up, then just remap with symlinks

Heyaa! Thanks for your interest. I will come back to this project, and when I do I will think about your suggestion more. Currently, I'm doing some work on instrumenting Magento 1.x with Prometheus. After, I'll do the same with 2 -- as part of that, I'll revive this track.
Thanks! I'll keep you updated.

I accidentally remove my previous comment :+1:
Thanks!


Create Guess Number in python

@Sumitpathak721 star the repo if you think it helped you for hacktoberfest :)


Buttons are off the bottom of the window when window frame is set to thin or full and tab location is set to left or right

In 1.0.121 and 1.0.122, some buttons are off the bottom of the window when the window frame is set to thin or full, and tab location is set to left or right. There is no problem when window frame is set to native.
Possibly related to #3186?

same issue here, the button overflows its container

I am experiencing this when tab location is Bottom, but only for Full frame mode:
Full

(note none of the content in the tabs/buttons on the bottom are visible; the small spaces are still clickable if you know where things should be)
Thin

Native

I am experiencing this when tab location is Bottom, but only for Full frame mode:
Full

(note none of the content in the tabs/buttons on the bottom are visible; the small spaces are still clickable if you know where things should be)
Thin

Native


Decompiling fails for a contract 0x236C5285cA0AF7d946222296257BEAb4B6B4e099

The decompilation fails for mainnet contract 0x236C5285cA0AF7d946222296257BEAb4B6B4e099 with error message:
...  # Decompilation aborted, sorry: ("decompilation didn't finish",)

JxhxhvdjhhdjxigzjdkgzjskxigfskdfskjgBxbdkgsbxmhvzhzjkxjxjjxjjjxjxjjxjjxjjcjjjcjcjjxjcjjxjxjxjjxjxjjssjhshshgsggsgsggsxiixuxjdmmdodkgz dkxjhskshskvdjxhgdmdkidjxkskdbdbksldjvsksk

62d17d30

🤔🧐🙁


No makefile

A way of building the OS would be nice :)

Makefile now available to build in UNIX-like systems.


i18n(ko-KR): update middleware.mdx

Description (required)

update middleware.mdx
#9240

Related issues & labels (optional)

Closes #
Suggested label:

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File
Note

ko/guides/middleware.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

The changes in this PR are included in #10258. I will close this PR when #10258 is merged.


[CPD4.6.2] Deploy global connection monitor failed

TS012386351: https://ibmsf.lightning.force.com/lightning/r/Case/5003p00002m2zCGAAY/view
I followed doc https://ibm.github.io/cp4d-monitors/monitors/cp4d-platform-global-connections/manual to deploy teh monitor.
Image pushed successfully, cj created and running fine, but the cj pod exited with errors.

<EMAIL_ADDRESS>~]# oc get cm |grep connection
config-wdp-connect-connection                                  5      12d
cp4d-platform-global-connections-1-ca                          1      7m33s
cp4d-platform-global-connections-1-global-ca                   1      7m33s
cp4d-platform-global-connections-1-sys-config                  1      7m33s
zen-alert-cp4d-platform-global-connections-monitor-extension   1      36s
zen-connection-extension-points                                1      12d
<EMAIL_ADDRESS>~]#
<EMAIL_ADDRESS>~]# oc logs zen-watcher-6df9859cf5-6gq6m |tail -n10
time="2023-03-15 19:37:03" level=info msg="AddonController.runWorker: processing next item"
time="2023-03-15T19:37:03Z" level=info msg="Dropping \"zen/jobs-api\" out of the queue: no pod found for service jobs-api"
time="2023-03-15T19:37:03Z" level=info msg="AddonController.processNextWorkItem: start"
time="2023-03-20 15:37:39" level=info msg=processConfigData event="adding extensions from zen-alert-cp4d-platform-global-connections-monitor-extension to the database"
time="2023-03-20 15:37:48" level=info msg=watchConfigMap event="config zen-alert-cp4d-platform-global-connections-monitor-extension added"
time="2023-03-20 17:39:59" level=info msg=DeleteConfigMap event="received delete event for configMap zen-alert-cp4d-platform-global-connections-monitor-extension"
time="2023-03-20 17:39:59" level=info msg=processHandlerForMultipleExtensions arguments="[zen-alert-cp4d-platform-global-connections-monitor-extension]" event="processing action: delete for extensions retrieved by condition:source = ?"
time="2023-03-20 17:39:59" level=info msg=processHandlerForMultipleExtensions event="processing action: delete for extension:zen_alert_monitor_cp4d-platform-global-connections"
time="2023-03-20 17:49:47" level=info msg=processConfigData event="adding extensions from zen-alert-cp4d-platform-global-connections-monitor-extension to the database"
time="2023-03-20 17:49:55" level=info msg=watchConfigMap event="config zen-alert-cp4d-platform-global-connections-monitor-extension added"
<EMAIL_ADDRESS>~]

<EMAIL_ADDRESS>~]# oc get bc
NAME                               TYPE     FROM   LATEST
cp4d-platform-global-connections   Docker   Git    1

<EMAIL_ADDRESS>~]# oc get cj |grep global
cp4d-platform-global-connections-cronjob   */15 * * * *   False     0        7m50s           117m

Cron job pod failed on my cluster:```

oc logs -f cp4d-platform-global-connections-cronjob-27988955-lrqdx
Starting Cloud Pak for Data Platform connections monitor....

Executing CP4D Monitor python file: /cp4d-monitoring-scripts/cp4d_platform_global_connections.py
Got error for the command: "/opt/app-root/bin/cpdctl config context set default --username=admin --password=WSyIqucvo03p --url https://ibm-nginx-svc --output json"
Please refer to the response for details: Command "set" is deprecated, Functionality of contexts is replaced by profiles. More information: https://github.com/IBM/cpdctl#configuration
Got error to create cpd context.
Exiting Cloud Pak for Data Platform connections monitor....

My customer followed the same doc, got different errors:
>oc logs cp4d-platform-global-connections-cronjob-pjngp
...
Starting Cloud Pak for Data Platform connections monitor....
Executing CP4D Monitor python file: /cp4d-monitoring-scripts/cp4d_platform_global_connections.py
Found Cloud Pak for Data Platform Assets Catalog Id: 5f62d9a9-84c0-49a2-b648-8c21a2ad9d1e
Found 2 Global Platform Connections.
Testing Resource Postgres_DB with asset_id: 3aabc3b7-7d58-4e9a-9996-7cd85f9ca821
Testing Result code: 400
Testing Result content: {"trace":"ewc6oljlne3ttqfkwk9dynf3m","errors":[{"code":"validation_failed","message":"The connection requires personal credentials which have not been set for this user.","more_info":"Set the credential properties and resubmit the request.","extra":{"environment_name":"icp4data","http_status":400,"id":"CDICO9032E","source_cluster":"NULL","source_component":"wdp-connect-connection","timestamp":"2023-03-17T12:34:23.056Z","user":"1000330999"}}]}
{"trace":"ewc6oljlne3ttqfkwk9dynf3m","errors":[{"code":"validation_failed","message":"The connection requires personal credentials which have not been set for this user.","more_info":"Set the credential properties and resubmit the request.","extra":{"environment_name":"icp4data","http_status":400,"id":"CDICO9032E","source_cluster":"NULL","source_component":"wdp-connect-connection","timestamp":"2023-03-17T12:34:23.056Z","user":"1000330999"}}]}
Testing Resource Watson Query with asset_id: acc5fa36-2f23-4754-a57d-f21ffcd63115
Testing Result code: 400
Testing Result content: {"trace":"dp0axroeocvwjrdrbyubutujc","errors":[{"code":"validation_failed","message":"One of the properties [access_token, api_key, password, username] is required.","more_info":"null","extra":{"environment_name":"icp4data","http_status":400,"id":"CDICO9007E","source_cluster":"NULL","source_component":"wdp-connect-connection","timestamp":"2023-03-17T12:34:24.264Z","user":"1000330999"}}]}
{"trace":"dp0axroeocvwjrdrbyubutujc","errors":[{"code":"validation_failed","message":"One of the properties [access_token, api_key, password, username] is required.","more_info":"null","extra":{"environment_name":"icp4data","http_status":400,"id":"CDICO9007E","source_cluster":"NULL","source_component":"wdp-connect-connection","timestamp":"2023-03-17T12:34:24.264Z","user":"1000330999"}}]}
Sending events to zen-watchdog:
[{"monitor_type": "cp4d_platform_global_connections", "event_type": "global_connections_count", "metadata": "global_connections_count=2", "severity": "info", "reference": "Cloud Pak for Data Global Connections Count"}, {"monitor_type": "cp4d_platform_global_connections", "event_type": "global_connection_valid", "metadata": "global_connection_valid=0", "severity": "warning", "reference": "Global Connection - Postgres_DB"}, {"monitor_type": "cp4d_platform_global_connections", "event_type": "global_connection_valid", "metadata": "global_connection_valid=0", "severity": "warning", "reference": "Global Connection - Watson Query"}]
Response status_code: 400
Response content: {"message":"invalid event type or monitor type. error retrieving alert type for event with monitor type cp4d_platform_global_connections and event type global_connections_count","status":400}
-------------------------------------------------------------
Exiting Cloud Pak for Data Platform connections monitor....

@arthurlaimbock is helping on this issue.

In the end it was quite a change. Up to CP4D 4.5 new monitor types are always accepted, allowing you to post new events. However, since 4.6, an additional check is made, and new events are rejected by default, unless they are registered. This is however where CP4D development made a crucial mistake. They "misuse" the monitor type for both the name of the cronjob that is generated and the monitor_type property of the event. Now unfortunately these 2 items have very different restrictions to their naming conventions:

a CronJob can only contain a-z and "-" characters. Having any other characters will error when creating the cronJob
a monitor type can only contain a-z and "_" characters. Have any other character will currupt the CP4D influx DB, which means all the Alert events are no longer accessible.

So the current way around is to only allow a-z characters for the monitor type
Then the cpdctl tool has an extreme fast deprecation timeline. Where the cpdcptl context was still valid in 4.5, in 4.6 you must use cpdctl profile and the use context will immediately throw an error.


Testing out the Weekly 4,4,5 Date Table

Describe the problem
Error 800: An exception occurred while executing the DAX template engine.
Query (71, 33) An argument of function 'DATE' has the wrong data type or the result is too large or too small.
Bravo version
1.0.5 (1.0.8623.25801)
Tabular model
Power BI Desktop, import mode
Power BI
Version: 2.121.903.0 64-bit (September 2023)
Steps to reproduce the behavior

Go to Manage Dates
Change Template to Weekly
Click Preview Changes

Additional context
No response
Screenshots

Anything else ?
Trace Id: 00-5d8e1d356d08a5b34e80ce86a0f042f7-7b3c5f450b5969c7-00

Thanks for reporting. The message indicates that an error occurred during the execution of the query generated by the DAX template engine. This is definitely a bug but unfortunately we are unable to reproduce it since the query generated by the engine is dynamically built based on your data model and its data. Are you able to share an .pbix with some dummy data that shows this issue ?


Add typeasserts to convert(::Type{Face}, ::Dict)

This removes a ton of implicit converts from this code, which are easily invalidated.

So that assumption is actually true - the unintuitive part here is that the compiler can't do that for d[key]
(because it doesn't know whether the dictionary is aliased and being secretly modified by another name elsewhere)


Revert "TP2000-225 Fix geo area search"

Reverts uktrade/tamato#617
Lots of countries are missing from search (e.g. Erga Omnes 1011, North Macedonia) and the detail view returns a multiple objects returned for countries with multiple descriptions. I think filtering by transaction order works better (my bad for suggesting to change that), but, looking at it again, I'm not sure we want to be changing the main queryset in GeoAreaMixin and using objects.all(), as I think this is causing the multiple objects returned errored. Needs a bit more thought and probably we should separate out the filtering logic and annotation logic from with_latest_description_string.

Just missed my chance to check before this was approved and merged, but is this a straightforward git-revert of commit for TP2000-225-geo-area-search2?


Better handling of delayed transaction commits

Added some code and documentation to help prevent race conditions due to delays in committing the status record for new tasks.  I ran afoul of this when testing a view with atomic requests enabled.

Current coverage is 100% (diff: 100%)

Merging #8 into master will not change coverage

@@           master    #8   diff @@
===================================
  Files          12    12
  Lines         419   419
  Methods         0     0
  Messages        0     0
  Branches       48    48
===================================
  Hits          419   419
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 3c62dfc...f37dfa1


feat: refresh readme to stay consistent with website.

Codecov Report

Merging #233 (fe4c011) into develop (c6e8fb5) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head fe4c011 differs from pull request most recent head 402c603. Consider uploading reports for the commit 402c603 to get more accurate results

@@           Coverage Diff            @@
##           develop     #233   +/-   ##
========================================
  Coverage    54.67%   54.67%
========================================
  Files           44       44
  Lines         4536     4536
========================================
  Hits          2480     2480
  Misses        1912     1912
  Partials       144      144

Flag
Coverage Δ

unittests
54.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 c6e8fb5...402c603. Read the comment docs.


Wifi-2040. ManufacturingRecord: Populate device mac in qr code.

Adding code to fall-back and read eth0 address incase the
manufacturing data is not present for the id/mac_address field.
The same is also populated in the qr code field of AWLAN_Node.
Signed-off-by: ravi vaishnav<EMAIL_ADDRESS>

Merged 315e9531, thanks


Is it possible to get a key in the old format?

Is it possible to get a key in the old format? Login + password.

No, but you can create an account (argument: --account), which will allow you a free period after authorization in the antivirus

And is it possible to get a login+password combination there? I didn't find such an option :(

If you mean with the EAV prefix, no way.

I meant that you can generate a regular account and then use it to activate the antivirus through it


Revert "Update CL import."

This reverts commit 135314d7c79e6495caf9f284a975999b715a1787.
There are some weird issues with missing cell labels. cc @ukemi

It turns out cl-basic has lost all its labels and definitions.


Merge branch 'master' into Missing-score-on-Games-tab-#1

Awesome dude!

Needs some more styling, but hey!


Log-in button on campaigns works as a 'Signup'

Just logged in with newly created user on https://www.dosomething.org/campaigns/just-because
It automatically signed me to this campaign.

cc @mikefantini

@sergii-tkachenko that is what is supposed to happen


Enroll and Watch LangChain for LLM Application Development

https://www.deeplearning.ai/short-courses/langchain-for-llm-application-development/

@TheVicBro @BallenAlain @laxitshahi @MohamedAhmed74 @OfficalGlitch @DesNahback @dinuja9
Due date is before our next meeting on Tuesday.

Updated
Requested by Adrian:
Watch these 2 courses first:

https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/
https://www.deeplearning.ai/short-courses/building-systems-with-chatgpt/

Then watch the langchain video:

https://www.deeplearning.ai/short-courses/langchain-for-llm-application-development/


refine types: arrays may be readonly

chokidar does not modify passed arrays, thus they may also be marked as readonly in type definition.

Thanks!

Just a quick clarification from what i've understood.
ReadonlyArray is an interface, not a subclass. That's why it's good to use. I've thought it was a subclass. A more modern version of that would be readonly string[], which is only supported by TS 3.4+.


Mono/C#: Use /restore instead of /t:restore when building

Documentation recommends not to use /t:restore together with other targets (like /t:build), as it messes with the environment.

Thanks!


[FLINK-29623][Metrics][Prometheus] Update Prometheus Java Client to 0.16.0

What is the purpose of the change

Flink uses an old and no longer supported version of io.prometheus:simpleclient. We should upgrade to the latest version

Brief change log

Updated POM and NOTICE files

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): yes
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

last time I looked into it I found that they changed the data model and we should look at the ramifications of that first before bumping anything.

They've made such a change in their 0.10 version:

[CHANGE] Switch data model to OpenMetrics. Primarily this means that _total if present is stripped from the metric name of counters, and _total is now always a suffix on the sample value. This means that all Counter samples now have a _total suffix (https://github.com/prometheus/client_java/pull/615)
[CHANGE] The io.prometheus.client.Collector.Type enum' value UNTYPED renamed to UNKNOWN (https://github.com/prometheus/client_java/pull/615)

We should actually check if there are proper tests for this too.


fix update assignment column name should case insensitive

Proposed changes
pick from master PR #30071
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Conditional expression given does not handle and as expected

When you want to write some conditional query with Scanamo you may encounter need to use and operator for description of more complex condition, e.g.:
table.given('id -> "item_id" and 'secret -> "item_secret")
.update(
    'id -> "item_id" and 'secret -> "item_secret",
    set('attribute -> "important data")
)

But for now it does not compile, due to error:

could not find implicit value for evidence parameter of type com.gu.scanamo.query.ConditionExpression[com.gu.scanamo.query.AndEqualsCondition[com.gu.scanamo.query.KeyEquals[String],com.gu.scanamo.query.KeyEquals[String]]]

So the solution may be:
com.gu.scanamo.query._
table.given(Condition('id -> "item_id") and 'secret -> "item_secret")
.update(
    'id -> "item_id" and 'secret -> "item_secret",
    set('attribute -> "important data")
)

It works fine, but the following code does not compile, but it should:
table.given(Condition('id -> "item_id") and Condition('secret -> "item_secret"))
.update(
    'id -> "item_id" and 'secret -> "item_secret",
    set('attribute -> "important data")
)

I have a question here, I'm trying to use a much more complex condition for filtering and I got it to compile, but I do see some errors of the sort
 com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: Value provided in ExpressionAttributeNames unused in expressions: keys: {#and_l_and_l_and_l_and_l_and_r_conditionttr, #and_l_and_r_condition, #and_l_and_l_and_l_and_r_conditionttr}
Would this be related to this fix or potentially an error on my side?

@dtboctor that can't be related to the fix for this, as I haven't released it yet, but if you are able to provide more details, either in a new issue or in the Gitter channel, then I can dig into it.


Smaller map and tree logos

Current coverage is 91.97%

Merging #254 into master will not affect coverage as of 39eabaf

@@            master    #254   diff @@
======================================
  Files           25      25
  Stmts         1683    1683
  Branches         0       0
  Methods          0       0
======================================
  Hit           1548    1548
  Partial          0       0
  Missed         135     135

Review entire Coverage Diff as of 39eabaf

Powered by Codecov. Updated on successful CI builds.


Rewrite CONTRIBUTING.md

This work should come after #655
The CONTRIBUTING guide is too heavy on development set up, whereas in my view it should be more focused on minimal contribution guidelines which provide recommendations on issue and pull request creation.
Here are a couple of CONTRIBUTING examples:
https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/contributing.md
https://github.com/cli/cli/blob/trunk/.github/CONTRIBUTING.md

Since then Contributing changed and it is light enough (at least for me). @craicoverflow WDYT? Can we close this?

Yes


Unification and allowedHosts in local dev

I got a request to add allowedHosts to our dev server as an extra measure of security.
This PR unifies dev-server generation in all of our webpack configurations, and, of course, add allowedHosts as an optional environment variable.
After this is merged you will need to run npm install to get everything to work correctly.

CC @RolandCsibrei

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/14440/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14440/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14440/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/14440/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/14440/merge
https://gui.babylonjs.com/?snapshot=refs/pull/14440/merge
https://nme.babylonjs.com/?snapshot=refs/pull/14440/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/14440/merge#BCU1XR#0


AppArmor Issue on non-GNOME environments?

torbrowser-launcher appears to not work properly with the AppArmor rules on non-GNOME environments like XFCE, LXQt, and KDE in latest versions.
Apparmor denies connect access to the runtime bus which in turn prevents Firefox of the TBB to actually load up to the connection screen, or start things.
This results in a hard segmentation fault on the underlying Tor Browser firefox.
Testing this, an apparmor rule to permit readwrite on /run/user/{gid,uid}/bus seemed to permit it.  Is it possible this is a new requirement, or something introduced recently that could be breaking things on non-GNOME environments?

This was traced on Ubuntu Impish development so that we can just do the following:
#include if exists <abstractions/dbus-session>
#include if exists <abstractions/X>
```

However, there is a regression in the X abstractions on Ubuntu Impish where read/write is just 'read only' on the unix sockets.  This is the core problem, so even if we add the above, we still have to fix stuff.

I'll make a PR for the abstractions to fix the dbus failures and the X abstraction bits after Ubuntu SEcurity Team addresses the Impish issue.


Browser sample?

I'm using Monaco directly in a flat browser file, is it possible to get an example of how to include this library in browser without npm dependency?
Thanks!

Thanks @troy351!


Login using WebServerOAuthFlow failed

When I run the project, and click login, I got this
`
An error has occurred.
Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
Newtonsoft.Json.JsonReaderException
   at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at Salesforce.Common.AuthenticationClient.d__28.MoveNext() in C:\Users\ZhenYong.Lu\workspace\A4\Force.com-Toolkit-for-NET-master\src\CommonLibrariesForNET\AuthenticationClient.cs:line 132
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at WebServerOAuthFlow.Web.Controllers.CallbackController.d__4.MoveNext() in C:\Users\ZhenYong.Lu\workspace\A4\Force.com-Toolkit-for-NET-master\samples\WebServerOAuthFlow\WebServerOAuthFlow.Web\Controllers\CallbackController.cs:line 24
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.TaskHelpersExtensions.d__31.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()</StackTrace></Error>

Your login failed, and the Toolkit is attempting to parse the HTML returned by the token request endpoint as JSON. Look at the request in Fiddler for more information. You'll probably see an internal error which might mean you need to whitelist your IP in Salesforce.

To be clear, since similar issues have been repeatedly closed here: This is a bug in the toolkit. You can work around it by changing your request to not get an authentication error from SF, but the toolkit ought not to attempt to parse HTML as JSON.

Totally agree, @CraigStuntz. Recently tried to fix this bug here: https://github.com/developerforce/Force.com-Toolkit-for-NET/commit/b01650f91897081deef04cba31d16cab09ef2c7a. Do we have a repro that I can use to fix any further issue here?

@wadewagner I can consistently reproduce the exception if I don't use TLS 1.2 (i.e., use SSL v3, which isn't supported) and then request a token from Salesforce. This produces an internal error (500) HTML response, which the Force Toolkit attempts to parse as JSON (same stack trace as original issue reported above.

@wadewegner Reviewing that commit, I see a couple areas for improvement. Simply rethrowing a new exception with the same message isn't going to make developers any less confused. People will continue to make duplicate reports here.
One thing which might make sense is to detect if TLS or SSL is in use and add a specific message if appropriate.
Another thing which would make sense is to use the content type header to determine whether to parse as JSON (presuming Salesforce sets it; this seems likely, but I'm not at my desk to check).
Ideally, if an exception must be thrown it would contain the body of the response instead of a parsing error.

Good feedback. I'll work on it. In particular, thanks for the idea around TLS 1.2 -- definitely something I too can reproduce.

One other code change I think might help is to change all the demo projects in this folder to use TLS 1.2, as lots of people probably follow those examples.

If this is still an issue (see latest updates to code) please re-open with more specifics.


Does not load images on iPads (iOS 10.2.1)

The problem happens on both Safari and Google Chrome.
The initial image gets displayed however.

Are there any error messages or warnings in the console?

On the iPad with Safari, it shows this error after taking a photo :

Cross-origin image load denied by Cross-Origin Resource Sharing policy.

How do you apply initial image? If you use images from another domain, please use initial-image prop instead of using slot.
See more in #12

When I am browsing your demo page, I use the button 'Choose File', the picture comes directly from the camera. Same problem when I select it from the iPad's picture library.

Sorry I don't have an iPad so I can't test it at the moment.
Please try this demo and see if the error still occurs.
https://jsfiddle.net/jdcvpvty/6/

For a reason which I don't understand, it now works when choosing the files from the picture library. It still shows an error when the picture directly comes from the camera.

For a reason which I don't understand, it now works when choosing the files from the picture library. It still shows an error when the picture directly comes from the camera.

Does this happen on the jsfiddle demo I post (https://jsfiddle.net/jdcvpvty/6/) ?

Yes, exact same behavior in the jsfiddle demo.

Same behavior with the iOS 10.2.1 iPad.

I see what is wrong. I found this:
https://stackoverflow.com/questions/31643096/why-does-safari-throw-cors-error-when-setting-base64-data-on-a-crossorigin-an
I will fix it asap. Thank you for your feedback.

Try this one: https://jsfiddle.net/zhanziyang/jdcvpvty/7/
If it works, then just upgrading to v0.1.4 will solve the problem.

With this new version, it works on both iPad (iOS 10.2.1 and iOS 9.3.5), uploading and taking pictures.


Adjusted the sprite of vent and scrubber

Made it easier direction identification in blueprint mode

About the PR
Screenshots

https://user-images.githubusercontent.com/60119809/165509484-02d49f97-7aac-45e4-9dc2-9978023b66bc.mov
https://user-images.githubusercontent.com/60119809/165509521-5ef4d407-d374-45cd-996f-b2eb6700d726.mov

Changelog

:cl:Ripmorld

add: Slight adjustments were made to the sprite of vents and scrubbers for QoL

As mentioned in discord, this is fine however the visualiser overwrites the sprite when it’s on so it’s kinda hard to see.
If using the half pipe visualiser / layer is possible then that would be better for the placement ghost since it’s hard to tell currently.

Re-open if you get a chance to work on it.


Remove auto-submit on funding widget and enable submit button

Trello card
DAC Audit 2023: On input - Funding widget
Context
To improve accessibility, this PR removes the auto-submit event on the funding widget and re-enables the submit button
Changes proposed in this pull request
A simple change to remove auto-submit
Guidance to review
Please review in:

desktop browser
desktop browser + screen reader
mobile/tablet
mobile/tablet + screen reader

Thanks @martyn-w - this approach definitely makes more sense :-)
I'll add my testing feedback as separate comments
Firstly - if I select the See funding button before choosing a subject, the default text for subjects with no bursaries/scholarships is displayed, which doesn't make much sense?

@martyn-w Secondly I think the error message needs to go above the interactive element

Example from our mailing list:

https://design-system.service.gov.uk/components/error-message/

@martyn-w Thirdly, do we have to include an error summary as well?
https://design-system.service.gov.uk/components/error-summary/

Some more feedback from a call on 19/1/2024:

Review the CTA “See funding” text
I’ll move the error summary to the top of the page as per GDS recommendations
I’ll fix the tabbing bug which makes the error message appear in white when you tab to it
I’ll add a 5px border to the left of the select field which will only appear in an error state
change spacing to 1em (19px) between field label, error message, field and CTA


Handle prefetchCount > max Short value

The AMQP spec says that prefetchCount is a short (16-bit) value. Despite this, the java amqp-client accents an int parameter. The int then has its MSB stripped off, and the remainder is reinterpreted as a short.
For example, if you supply a prefetch of 1_000_000, that gets interpreted as a prefetchCount of 16960
0b11110100001001000000 // 1_000_000
-----0b100001001000000 // 16_960

I have two proposals:

fs2-rabbit can change its own prefetchCount parameter of BasicQos to be a Short instead of an Int. Then invalid values simply can't be passed. Comments can direct the user about what to do
(binary compatible) fs2-rabbit can log an error when there's an attempt to basicConsume with prefetchCount > 2^16. We can also optionally "round" the requested count down to exactly 2^16

I've opened an issue upstream as well: https://github.com/rabbitmq/rabbitmq-java-client/issues/640

Following up, it seems the technical limit is a logical "unsigned short" (see https://github.com/rabbitmq/rabbitmq-java-client/issues/640#issuecomment-606891124 ). So @Daenyth is correct with 2^16, or 65535


Nullable custom types break OpenAPI3 export

Nominal
Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:
    + images (required, nullable, ImagesType)

into this:
    images:
        type: ImagesType
        nullable: true
        …

Actual
Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:
    + images (required, nullable, ImagesType)

results in this error stack trace:
Error
    at Object.<anonymous> (/usr/local/lib/node_modules/apib2swagger/node_modules/json-schema-to-openapi-schema/index.js:8:30)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/apib2swagger/src/requests.js:4:19)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10) {
  name: 'InvalidTypeError',
  message: 'Type "null" is not a valid type'
}

Remarks
#65 is related but only shows a workaround which is not useful if you want to use a certain type to be not nullable and nullable in different areas of your API.

Thank you for reporting!
I have fixed this bug at v1.14.3.
Please confirm.

Looks good to me!


changing branch

##Updates
I updated the readme file. Please review and accept

thoughts
I probably shouldnt, but okay.:+1:


I am unable to get queryId from hive operation

Are there any specific hive commands for which this works or it does not work at all? I am doing this:
const hiveQueryOperation = await this.hiveSession.executeStatement(query);
await utils.waitUntilReady(hiveQueryOperation, false, () => {});
const queryId = await hiveQueryOperation.getQueryId();
For "msk repair" query, I am able to see hive job id in HUE whereas in hive-driver, it says "GetQueryId" is not a method error.
Appreciate any inputs on this.

Hi @ntallapa12 ! Probably it depends on your Hive version. Unfortunately, I didn't manage to find better documentation than source code. All API methods that can be executed by the client listed in TCLIService.thrift.
But to find out what commands a server supports you should look through API in official Hive repository.
For instance, here is a current API for the latest Hive version.
But in Hive 1.1.1 getQueryId method is not implemented.
So you can choose from tag list the version of Hive you use, and check what methods implemented in ThriftCLIServiceClient.java.
Also, you can check TCLIService.thrift responses, probably there you may find some information you are looking for.
And one more thing I should mention. Instead of result from operation, you can get some log. To do this, you should execute operation.setFetchType(1); before fetching the result. And I did not implement representation of log, so you should handle raw result on your own. I mean, if you represent it as JSON using utils.getResult, ther is a probability you get an error.

got it thanks.


Add Moodle section

Description
Add support for Moodle https://moodle.org/. This will read the version.php file on Moodle repository.
The icon is close to the Moodle logo.
Screenshot

@denysdovhan Hello, Thanks for the review, I corrected the whitespaces and added the missing documentation. I hope it's all right now, even if new section are frozen :stuck_out_tongue:. Have a nice day.

Hey, @ragusa87, Spaceship has changed the vector in terms of adding new section. This doesn't seem to fit requirements for new section.
Don't be upset, you can publish this as a custom section and add it to our registry!

Hello @denysdovhan, do you mean that I need to create a custom repository for this section instead of submitting a MR ?
In other word, a MR like the one below won't be merged ?
https://github.com/spaceship-prompt/spaceship-prompt/compare/master...ragusa87:feature/moodle?expand=1


Lua Binding

This library is a fantastic effort that will seriously improve access to 3D audio.
I'd like to provide a Lua binding. This is useful for many game engines, as well as enabling MUSHClient to use Synthizer.
Is this something that would be accepted upstream?

If something makes it into this repo and/or under this org, I'm making a commitment to maintain it.  For that reason, I'm only taking bindings upstream that I have the interest and bandwidth to maintain myself.
The real problem with Lua is that  there's something like 3 or 4 ways to do it, so even if I did have the bandwidth/interest it's not possible to satisfy everyone.  I think the only "global" way is a Lua C extension, but pretty sure that falls over as soon as someone's using LuaJIT.  I can't justify maintaining something for the small percentage of Lua users who happen to be able to consume the bindings however they get written plus happen to be using something where you can just bring in a third party C thing (e.g. if Synthizer is in an engine, you probably have to work out how to share it between the script and the rest of the engine, which is entirely different than stand-alone library for Mushclient).
Feel free to write/maintain one, though.  The API surface area is pretty small, though things will shift around a bit more until 1.0.

If something makes it into this repo and/or under this org, I'm making a commitment to maintain it.  For that reason, I'm only taking bindings upstream that I have the interest and bandwidth to maintain myself.
The real problem with Lua is that  there's something like 3 or 4 ways to do it, so even if I did have the bandwidth/interest it's not possible to satisfy everyone.  I think the only "global" way is a Lua C extension, but pretty sure that falls over as soon as someone's using LuaJIT.  I can't justify maintaining something for the small percentage of Lua users who happen to be able to consume the bindings however they get written plus happen to be using something where you can just bring in a third party C thing (e.g. if Synthizer is in an engine, you probably have to work out how to share it between the script and the rest of the engine, which is entirely different than stand-alone library for Mushclient).
Feel free to write/maintain one, though.  The API surface area is pretty small, though things will shift around a bit more until 1.0.


AnalysisTransformation2D layer

closes #65
Prerequisites

[ ] #114

Hello @0x00b1 could you rebase?

@mmuckley rebased!


Shopping List - Edit button sends you to the wrong screen

Clicked into Shopping Lists
Clicked 3 stacked dots
Clicked Edit
Create a Shopping list screen shows

cant reproduce maybe a old list?


Travis snapshot build broken

Need to update encrypted environment variables

Fixed: https://travis-ci.org/pinterest/ktlint/builds/523293666


Add per-controller control over operational advertising to Matter.framework.

Fast-tracking platform-specific fix with platform owner review.


Okta provider refresh method doesn't save the new refresh token

Expected Behavior
While the refresh the function executeRefreshTokenStrategy resolves with the new refresh token, the method refresh takes this new token. It saves it on the object result providerInfo, and the method refresh OAuthAdapter saves the new refresh token into the cookie.
Current Behavior
At this moment, the method OktaAuthProvider.refresh doesn't care about the new refresh token, and it is not saved into the cookie, so at the refresh with the old token, Okta sends
{   statusCode: 400,
data: '{"error":"invalid_grant","error_description":"The refresh token is invalid or expired."}'
}
and backstage forces the logout
Possible Solution
I am going to create a PR for the solution
Steps to Reproduce

Login on OKTA
Refresh the page
Wait some minutes
Refresh again

Context
If you are logged in with Okta and refresh the page, the logout is forced, and you should sign in again.
Your Environment

NodeJS Version (v14):  v14.18.1
Operating System and Version: Amazon Linux 2
Browser Information:  Chome v96.0.4664.110

https://github.com/backstage/backstage/pull/8633


[request] Feature extraction documentation

Related issues:

#1
#2
#15
#48
#69
#73
#90

May I ask how to use the file dinov2_vitl14_pretrain.pth and fine-tune it again based on my dataset?
There is only backbone information in the file dinov2_vitl14_pretrain.pth, but no head weight information？
Thank you very much!

@patricklabatut May I ask how to use the file dinov2_vitl14_pretrain.pth and fine-tune it again based on my dataset?
There is only backbone information in the file dinov2_vitl14_pretrain.pth, but no head weight information？
Thank you very much!

@patricklabatut @vkhalidov @niavasha @leo-gan @goggle
Excuse me, May I ask how to use the file dinov2_vitl14_pretrain.pth and fine-tune it again based on my dataset?
There is only backbone information in the file dinov2_vitl14_pretrain.pth, but no head weight information and I can not fine-tune the model based on the weight file dinov2_vitl14_pretrain.pth？
Thank you very much!


Odd permissions in the package tar.gz file as published to NPM

Sometime between node-0.6.8 and node-0.6.11, the way NPM untars package files seems to have changed, and I believe this has revealed a latent problem with Hogan's package tar.gz file as published to the NPM registry.
In particular, none of the directories in the archive seem to have the execute permission flag set, which means that, once unpacked, it is impossible to actually read their contents (without altering the permission flags). This didn't bug the old NPM, but the current one will complain when attempting to install Hogan, along these lines:
npm ERR! path /tmp/npm-1330464275415/1330464275783-0.16246374556794763/___package.npm/package/bin/hulk
npm ERR! code EACCES
npm ERR! message EACCES, permission denied '/tmp/npm-1330464275415/1330464275783-0.16246374556794763/___package.npm/package/bin/hulk'

If you download, untar, and inspect the package file, you can see what's up:
$ curl -k -o hogan.tar.gz https://registry.npmjs.org/hogan/-/hogan-1.0.5-dev.tgz
[...]
$ tar xzf hogan.tar.gz
$ ls -alF package/
total 64
drwxrwxr-x 8 ec2-user ec2-user  4096 Feb 28 21:32 ./
drwxr-xr-x 9 ec2-user ec2-user  4096 Feb 28 21:32 ../
drw-rw-r-- 2 ec2-user ec2-user  4096 Jan 28 21:44 bin/
-rw-rw-r-- 1 ec2-user ec2-user    14 Jan 28 21:44 .git_ignore
-rw-rw-r-- 1 ec2-user ec2-user    89 Jan 28 21:44 .gitmodules
drw-rw-r-- 2 ec2-user ec2-user  4096 Jan 28 21:44 lib/
-rw-rw-r-- 1 ec2-user ec2-user 10349 Jan 28 21:44 LICENSE
-rw-rw-r-- 1 ec2-user ec2-user  1324 Jan 28 21:44 Makefile
-rw-rw-r-- 1 ec2-user ec2-user   558 Jan 28 21:44 package.json
-rw-rw-r-- 1 ec2-user ec2-user  2607 Jan 28 21:44 README.md
drw-rw-r-- 4 ec2-user ec2-user  4096 Jan 28 21:44 test/
drw-rw-r-- 2 ec2-user ec2-user  4096 Jan 28 21:44 tools/
drw-rw-r-- 6 ec2-user ec2-user  4096 Jan 28 21:44 web/
drw-rw-r-- 2 ec2-user ec2-user  4096 Jan 28 21:44 wrappers/
$

I'd expect all the directories to show up as drwxrwxr-x, which is what you'll see in pretty much every other NPM package (or tarball in general for that matter).

See also Tar module issue #7.

+1 for this issue. I see this too. cannot install hogan by npm-install :(

@9len @BenWard @DanaDanger ping.
This one is critical — folks (and me) cannot even use hogan.


(Question) Why not a Rust-like language?

If you mean just the syntax, we chose a python-looking one because people seem to have an easier time with it in general.
Personally I prefer Rust syntax, but I've also molded my brain to be C-shaped over the course of 10-15 years

If you mean the functionality (the type system, the approach to compilation, the philosophy, etc), then there is no reason to make Rust when Rust already exist.
The team obviously likes rust, it's why we chose it to write the compiler

@developedby By Rust, I mean the memory safety, thread safety, lack of NULLs and compiler suggestions to better algorithms.

Memory safety is not relevant here since users don't manage memory directly. You could say bend is memory safe, like javascript is for example.
Thread safety is not relevant since the whole point of bend is parallelism without needing explicit and manual parallelization primitives like threads.
Obviously we also dont have null pointers since we don't have pointers.
Your last point I don't really understand, sorry.


Available username plugin

I would love a plugin which checks if a username is available on a bunch of websites.
my target list is

github
gitlab
bitbucket
wikimedia
openstreetmap
openhub
wordpress
openSUSE

https://github.com/WebBreacher/WhatsMyName is a possible way to support many sites.

And possibly, enhance https://github.com/manu-chroma/username-availability-checker (low activity in coala in October 2016) : https://username-check.herokuapp.com/ - has REST-ish api : Facebook, Twitter, Instagram, Soundcloud, Github, Pinterest, & Tumblr.
Then the bot can use that service to do the grunt work.

This seems interesting. I can try my hands on it?

Yes. Features upstream would be good place to start.
This can be used as auto helper for gitter people signed in using twitter if they dont yet have a github acct.

https://github.com/manu-chroma/username-availability-checker/issues/15 and https://github.com/manu-chroma/username-availability-checker/issues/11

Hey, I made a list of few plugins. I'm thinking to make an API for the same which would take the username and would return the status of the username in all the sites. 😄

@jayvdb What are your thoughts on that?

That's a nice target list at the top. However, I am not sure if we should account for proprietary websites like Facebook and Twitter. I would love to hear some constructive agreement/disagreement for this

Hey @jayvdb I started developing a Python Script for the same. It checks Github, Gitlab, Bitbucket as of now. Working on other websites. :smile:
The link to the code is https://github.com/ashwini0529/is-username-available

@ashwini0529 , please enhance https://github.com/manu-chroma/username-availability-checker , ideally so that it uses the data from https://github.com/WebBreacher/WhatsMyName .
@SanketDG , the objective is to help newcomers find a username that does not conflict with another existing open source/content developer.  To do that effectively, we need to mention any site which the proposed username is already taken on, and the newcomer may want to use.

@jayvdb do you need an enhancement tool in https://github.com/manu-chroma/username-availability-checker? So should I contribute to that repository?
My idea was to make a standalone python script to fetch the required details that could be consumed by corobo directly. I think that would be a better option?

Also, https://github.com/manu-chroma/username-availability-checker is rendering websites and checking the status codes which might not be a good practise as few websites don't provide a 404. I think we should revamp it and make a standalone python script for that.
Please have a look at https://github.com/ashwini0529/is-username-available and let me know if this works?

@ashwini0529 , we are going to use https://github.com/manu-chroma/username-availability-checker  .  See https://github.com/manu-chroma/username-availability-checker/issues ; specifically https://github.com/manu-chroma/username-availability-checker/issues/11#issuecomment-317619307 and https://github.com/manu-chroma/username-availability-checker/issues/15


[Suggestion] Predefined routes?

It would be nice if there were predefined routes that travel all around the world. Like for example: seaMap, which contains the best places for catching water type pokemon and you visit them with believable time laps. Or you just choose mountainMap, which has the best mountains...
The user just has to choose the type of pokemon he/she wants, and the bot will start "mining" in the perfect places.

I believe it would be a good amount of work and other things should be prioritized over this.
But this would be a very cool feature to be implemented in the future

This tool will convert a google maps route to a GPX file for spoofing location on an iOS device using xcode. A GPX file contains coordinates as well as timestamps for moving along the route.
https://mapstogpx.com/pokemon.php

You don't need exactly a route to do this, all you need are close coordinates of dots, of places, since that bot goes around a certain place, all you need is a list of close spots on the same type of terrain... and the distance/time teleportation issue could be resolved with just adding the right amount of time between two places: 1km = 2 min, 2km = 4 min.

A good feature would be have a option to define 2 points, start point (when bot starts) and finish point and bot goes between this 2 points.

This will be very possible once we get to behavior trees: https://github.com/PokemonGoF/PokemonGo-Bot/issues/142


fix(site) Dont remove files from gh-pages

I manually tweaked our site source code (https://github.com/webpack/webpack.js.org/tree/feat/v3-docs) to generate a build that runs in a subfolder for webpack 3 docs, which I deployed to https://webpack.js.org/v3/ using gh-pages branch.
There is a daily cronjob that updates gh-pages branch with latest changes from master, it also deletes current files from that branch, which deletes previous v3 build.
This PR adds a flag to gh-pages dependency to save previous files, I am afraid that it will also increment size of the branch, but I think it won't affect website performance.
This is a temporary solution until we develop a solution to support versioned docs, as lodash.com, hopefully this will be done in less than a month.

I don't know if this might endanger some other aspects of the deployment like when a file name changes or a route gets deleted in the future.
Does the build job brings all the content from the v3 tag and deploys it in the subdirectory folder? SO this would mean that in the future we can just delete the folder and remove this option and kill the subdirectory files.

Does the build job brings all the content from the v3 tag and deploys it in the subdirectory folder
No

This is not going to work, we will need to do build it like you say, which is a wasting of time since it will never change

Not a solution.


Streaming choice feature

Description
A checkbox in the UI to switch between streaming and non-streaming response output
Type of Change
Please delete options that are not relevant.

[*] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[*] I stared at the code and made sure it makes sense
[*] Tested functionality within UI

Test Configuration:

Python: 3.11.9

Checklist:

[*] I have performed a self-review of my code
[*] My changes generate no new warnings

Notes:
Code under summarize is commented because I did not have success in employing that mode. While debugging I found that summarization would loop the output within the console and never result in output within the UI.

Can you do make check; make test; and fix any issue in the code?


Providing services to another flows

Hello, thank you for great sample "how to explore CleanArch with RX using swift"!
I have few questions, I would be thankful for clarification.

If I have few flows, likes authentication and home (an example: tab bar with slide menu, where a lot use cases). Should I group use cases like authenticationUseCases which consist of AuthenticationServiceLocator which provide cases just for this flow and so on for other flows?

If answer for first question is yes, so how can I provide services to other flows? I mean, when I start application, I can configure welcome scene (as at your example), where I have authentication flow with authenticationService. After it I should redirect user to another flow, with another useCases (something like HomeServiceLocator). Where should I initialize HomeScene with HomeServiceLocator?

Hi, @dotprox
The way we do it is that we have Dependencies which contains "lower level" abstractions, e.g Network and we have an Assembly per flow which knows how to build a module. So Dependencies are responsible for creating Assembly injecting required stuff  and Assembly creates a ViewModel with injected UseCases

Feel free to reopen if you have any questions


xLocale

xLocale depends on being able to visually see the elements, which is manual and seems prone to failure (you might miss it, or forget to check a hidden UI element, or it could be an attr passed down and manifest itself in an unexpected way).
I wonder if there'd be a way to, say, log these instances to the console. One idea would be a variation of DEBUG mode, which would turn on logging. It'd be rad if the component that tried to render the text and the line number could be logged, too, but I'm not sure how feasible that is.
Just an idea 💭

Hmm, wondering if the behavior of the props worked like this then:

xLocale is used for the short-circuit to place XXXXX on the UI
debug is used to toggle the additional DOM property and logging

Still want to chat today?


Publisher onError: Error (Timed out while attempting to publish.) in publisher

D/opentok: [ERROR] otk_session_private.cpp:2938 - otk_session_stream_create_response Failed to complete publisher peer connection
D/opentok: [ERROR] otk_messenger_v2.cpp:3727 - otk_messenger_v2_on_stream_create_response_implraptor sess is null or parsing ICE info failed.
D/opentok: [ERROR] raptor_message_v2.cpp:258 - content object does not exist or is not an object
onError: Error (Unable to Publish.) in publisher
Access denied finding property "persist.camera.legacy_perf"

plz update status

Thanks, @kalpeshkanani, for filing this issue.
What are the steps to reproduce?  What version of the SDK did you use?  Can you try to reproduce using the latest version please?

Closing, given lack of steps to reproduce.  Please feel free to refile.  Thanks!


[Snyk] Fix for 1 vulnerabilities

Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

661/1000  Why? Recently disclosed, Has a fix available, CVSS 7.5
Authentication Bypass SNYK-JAVA-ORGAPACHESHIRO-1066416
org.apache.shiro:shiro-core:  1.6.0 -> 1.7.1  org.apache.shiro:shiro-spring:  1.6.0 -> 1.7.1  org.apache.shiro:shiro-web:  1.6.0 -> 1.7.1
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Closed: Updates captured in this PR #4


Cookie lifetime isn't extended on authenticated request

I'ts my expectation from reading the source and documentation that upon authentication, any new web-request made with a valid authentication will re-new the lifetime of the authentication cookie.
So if you have a 10-minute cookie lifetime, making at least one request before the 10 minutes runs out will reset the counter to 10 minutes again.
Looking at the source (and my cookie-tracker), I;m not seeing the expire-time being reset when new cookies are sent.

I think the following block needs to be changed:
static authn_status
authn_linotp_check_password(request_rec *r, const char *username, const char otp_given)
{
[snip]
/ check for the existence of a cookie: do weak authentication if so /
if ((cookie = spot_cookie(r)) != NULL) {
ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server, "Found cookie=%s for user=%s : ", cookie, r->user);
/ valid username, passwd, and expiry date: don't do LinOTP auth */
if (valid_cookie(r, cookie, otp_given)) {
ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server,"cookie still valid.  Serving page.");
We should re-set the cookie here
              expires = time(NULL) + conf->timeout;
              add_cookie(r, r->headers_out, cookie, expires);

Something along these lines...
	  returnValue=AUTH_GRANTED;
	  goto cleanup;
	} else {			/* the cookie has probably expired */

[snip]

This patch (tested) seems to do what I want / what the documentation seems to mean:
diff --git a/mod_authn_linotp.c b/mod_authn_linotp.c
index 0934d2b..9c05b8d 100644
--- a/mod_authn_linotp.c
+++ b/mod_authn_linotp.c
@@ -639,6 +639,9 @@ authn_linotp_check_password(request_rec *r, const char *username, const char ot
/ valid username, passwd, and expiry date: don't do LinOTP auth */
if (valid_cookie(r, cookie, otp_given)) {
ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server,"cookie still valid.  Serving pa

            /* Renew active cookie with new timeout */

            expires = time(NULL) + conf->timeout;

            add_cookie(r, r->headers_out, cookie, expires);
            returnValue=AUTH_GRANTED;
            goto cleanup;
          } else {                        /* the cookie has probably expired */

Any feedback please.... or at least a merge of this pull-request ?


Allow successful/failed authn attempts into the stats page as a chart

Closes the last remaining item on https://github.com/apereo/cas/issues/2068

@mindblender this looks like it's got changes that don't have anything to do with authn graphs. Do I have the right branch here?

Specifically the Dashboard.js file: is that complete? If we merged this as is, is it going to break/remove the existing dashboard functionality?

@mmoayyed No it would not cause any problems since the files are not referenced.  I wen ahead and removed them from this PR.

Great. Thanks. I'll merge and resume testing a bit.

When I build and deploy, I see cas/js/statistics-bundle.js 404 () in the console. What do I need to do to build the JS bundle?

Also it looks like webpack cannot build:
> Task :webapp:runWebpack
Hash: e4605ac23da5642e23a7
Version: webpack 2.1.0-beta.25
Time: 13964ms
               Asset    Size  Chunks             Chunk Names
statistics-bundle.js  696 kB       0  [emitted]  statistics
    + 1170 hidden modules

ERROR in Entry module not found: Error: Can't resolve './resources/static/js/components/dashboard/Dashboard' in '/Users/Misagh/Workspace/GitWorkspace/cas-server/webapp'

FAILURE: Build failed with an exception.

Ended up removing a number of references to Dashboard. Now I can see this:

However, no graph is actually displayed (I know for certain the data is available). Clicking on refresh causes this:
statistics-bundle.js:19 Uncaught TypeError: this._listeners[t.type] is not a function
    at HTMLButtonElement._ (statistics-bundle.js:19)

One last thing: I am not sure but I think webapp/resources/static/js/statistics-bundle.js should be added to gitignore?


S3 Bucket Policy

Thanks for posting this tutorial. Just to let you know, to get s3 to host stattic files with Django, I had to set up my bucket policy as shown below. -- RD
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::BUCKETNAME",
                "arn:aws:s3:::BUCKETNAME/*"
            ]
        }
    ]
}

Thanks for the note, @rdubar. I'm getting ready to refresh the article. I'll take this note into account.


Expand PG version Travis tests

Define the minimum PG version that we support and then expand Travis tests to provide coverage of these as much as possible. Current tests use 9.4.

This also requires figuring out the server version to generate statements accordingly.

While we can find the server version (e.g. SELECT version();) I think that perhaps the psqlpack defines a compatibility mode. The reason why this may be better is because of new types being included in the future. It'd be great if at a project level this could be defined.

This has been addressed however I'd like to ensure that more versions are actively tested as part of integration testing.


TCVP-1803 and bug fix

Description
This PR includes the following proposed change(s):

TCVP-1803
bug fix for the update contact
added docker's configuration variables

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Does the change impact or break the Docker build?

[x] Yes
[ ] No

If Yes: Has Docker been updated accordingly?

[x] Yes
[ ] No

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes

👀


Roundup: [oss-security] Linux: CVE-2017-6353: sctp: deny peeloff operation on asocs with threads sleeping on it

Here is a report from the oss-security mailing list for Vulnerability Roundup 27.
Skip to First Email
Instructions:
Identification
Identify if we have the software, in 16.09, 17.03, and unstable. Then determine if we are vulnerable, and make a comment with your findings. It can also be helpful to specify if you think there is a patch, or if it can be fixed via a general update.
Example:
unstable: we are not vulnerable (link to the package)
17.03: we are vulnerable (link to the package)
16.09: we don't have it packaged

IMPORTANT: If you believe there are possibly related issues, bring them up on the parent issue!
Patching
Start by commenting on this issue saying you're working on a patch. This way, we don't duplicate work.
If you open a pull request, tag this issue and the master issue for the roundup.
If you commit the patch directly to a branch, please leave a comment on this issue with the branch and the commit hash, example:
fixed:

release-16.09: abc123

Skip to First Email
Upon Completion ...

[ ] Update Graham's database

Info
Triage Indicator:
-needs-triage +roundup27 thread:0000000000003e6b

File Search: https://search.nix.gsc.io/?q=linux-kernel&i=fosho&repos=nixos-nixpkgs
GitHub Search: https://github.com/NixOS/nixpkgs/search?utf8=✓&q=linux-kernel+in%3Apath&type=Code

Should the search term be changed from linux-kernel? Suggest a new package search by commenting:
-suggested:linux-kernel +suggested:correctPackageName thread:0000000000003e6b

Known CVEs: CVE-2017-5986, CVE-2017-6353

Skip to End
Mon, 27 Feb 2017 13:07:06 +0100 Salvatore Bonaccorso <carnil-at-debian.org><EMAIL_ADDRESS>Hi

Via the CVE webform, MITRE has assigned CVE-2017-6353 for:

https://marc.info/?l=linux-netdev&m=148785309416337&w=2

>Subject:    [PATCH net] sctp: deny peeloff operation on asocs with threads sleeping on it
>From:       Marcelo Ricardo Leitner <marcelo.leitner () gmail ! com>
>Date:       2017-02-23 12:31:18
>
>commit 2dcab5984841 ("sctp: avoid BUG_ON on sctp_wait_for_sndbuf")
>attempted to avoid a BUG_ON call when the association being used for a
>sendmsg() is blocked waiting for more sndbuf and another thread did a
>peeloff operation on such asoc, moving it to another socket.
>
>As Ben Hutchings noticed, then in such case it would return without
>locking back the socket and would cause two unlocks in a row.
>
>Further analysis also revealed that it could allow a double free if the
>application managed to peeloff the asoc that is created during the
>sendmsg call, because then sctp_sendmsg() would try to free the asoc
>that was created only for that call.
>
>This patch takes another approach. It will deny the peeloff operation
>if there is a thread sleeping on the asoc, so this situation doesn't
>exist anymore. This avoids the issues described above and also honors
>the syscalls that are already being handled (it can be multiple sendmsg
>calls).
>
>Joint work with Xin Long.
>
>Fixes: 2dcab5984841 ("sctp: avoid BUG_ON on sctp_wait_for_sndbuf")
>Cc: Alexander Popov<EMAIL_ADDRESS>>Cc: Ben Hutchings<EMAIL_ADDRESS>>Signed-off-by: Marcelo Ricardo Leitner<EMAIL_ADDRESS>>Signed-off-by: Xin Long<EMAIL_ADDRESS>>---
>Hi, please consider this one for -stable too. Thanks
>
> net/sctp/socket.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
>diff --git a/net/sctp/socket.c b/net/sctp/socket.c
>index 1b5d669e30292a57ed57dd920d81be2a57f97b22..d04a8b66098c8a574642b026bff990ac64c21468 100644
>--- a/net/sctp/socket.c
>+++ b/net/sctp/socket.c
>@@ -4734,6 +4734,12 @@ int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp)
> 	if (!asoc)
> 		return -EINVAL;
>
>+	/* If there is a thread waiting on more sndbuf space for
>+	 * sending on this asoc, it cannot be peeled.
>+	 */
>+	if (waitqueue_active(&asoc->wait))
>+		return -EBUSY;
>+
> 	/* An association cannot be branched off from an already peeled-off
> 	 * socket, nor is this supported for tcp style sockets.
> 	 */
>@@ -7426,8 +7432,6 @@ static int sctp_wait_for_sndbuf(struct sctp_association *asoc, long *timeo_p,
> 		 */
> 		release_sock(sk);
> 		current_timeo = schedule_timeout(current_timeo);
>-		if (sk != asoc->base.sk)
>-			goto do_error;
> 		lock_sock(sk);
>
> 		*timeo_p = current_timeo;
>--
>2.9.3

This was found while reviewing the fix of CVE-2017-5986 (2dcab5984841
("sctp: avoid BUG_ON on sctp_wait_for_sndbuf"))

Regards,
Salvatore

Skip to End

According to http://cve.circl.lu/cve/CVE-2017-5986, this applies to 4.9.11 and earlier.


reach 80% of lines covered by tests

reach 80% of the lines covered by the tests. now there are 6.4% of lines covered by the tests.


Basic: make mkstemp and mkdtemp handling "portable"

Lift some of the code from Foundation to handle temporary file
construction.  This enables building TemporaryFile on Windows.

@swift-ci please smoke test

Replaced with apple/swift-tools-core-support#9


It didn't support iOS10 or lower?

It didn't support iOS10 or lower?

This library was never meant to be used on anything different than TREZOR hardware. You can use it on a different hardware, but you are on your own.


Add CLI

Make Sass Lint run-able via a command line command.

+1
Could it maybe be added to the readme that there isn't a CLI yet? I'm guessing you're about to have thousands of eager devs trying to get it working before realising that there is no CLI.
Also, this whole sass-lint thing is awesome, congrats on the 1.0 release!

Done
https://github.com/sasstools/sass-lint/blob/master/README.md#cli

Track progress on the CLI Branch
https://github.com/sasstools/sass-lint/tree/cli

Nice.
My thoughts on command line options would be to more-or-less mirror scss-lint. Of those the two I can imagine using would be:

--config so that I can define a config file other than the default.

--exclude

I'm tempted to say a --files option to override the glob in the config file, but can't think of a use case.

So currently, this is how the CLI is shaping up:

sass-lint will use whatever is in the config file
sass-lint '<file or glob'> will override the file or glob from the config file
--no-exit will prevent the CLI from failing if there's an error

The config currently calls exclude ignore; I can swap them if need be and add that as an option.
I'm going to wait on https://github.com/sasstools/sass-lint/issues/47 to land before providing a CLI for custom config.

Custom Config file landed in the CLI branch, so this'll be part of the CLI when released

Sounds perfect. Do you have a ballpark ETA on this? Weeks, months?

Probably days. It's working, just needs final tweaks.

On Aug 30, 2015, at 6:49 PM, David Gilbertson<EMAIL_ADDRESS>wrote:
Sounds perfect. Do you have a ballpark ETA on this? Weeks, months?
—
Reply to this email directly or view it on GitHub.


Accept user friendly duration during the slo init flow

Is your feature request related to a problem? Please describe.
The default window durations in the slo init use a humain friendly format:

But when choosing custom, you have to enter the duration as a ISO format. This is a tad confusing and not as nice an experience as expected.
Describe the solution you'd like
Support both formats as input would be great. ISO as well as more human friendly formats.

Also the iso format is not intuitive. I had to try a few times to understand how to set 15 minutes: PT15M.


configuration reference page is broken

the link of configuration reference is broken, it is 404 page

Closing as the configuration docs have been moved to https://distribution.github.io/distribution/about/configuration/


Implement bumpver

It is better to work directly in main branch when debugging these type of actions. Merging this branch and following previously exposed approach.