Main class was not found for Spring Boot 3.1 and 3.2

Environment:

Jib version: 3.4.0
Build tool: maven 3.9.5
OS: OL 8

Description of the issue:
When building my application the build fails with
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.0:build (default-cli) on project helloworld-31: Main class was not found, perhaps you should add a mainClass configuration to jib-maven-plugi
Expected behavior:
JIB should be able to introspect and find the right MainClass for Spring Boot applications.
If I force set the main class using
props.setProperty("jib.container.mainClass", "org.springframework.boot.loader.JarLauncher");
props.setProperty("jib.container.mainClass", "org.springframework.boot.loader.launch.JarLauncher");

I can get it to work however the MainClass for Spring Boot depends on the version. But that is not a very elegant way :-)
jib-maven-plugin Configuration:
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.google.cloud.tools</groupId>
                        <artifactId>jib-maven-plugin</artifactId>
                        <version>3.4.0</version>
                        <configuration>
                            <containerizingMode>packaged</containerizingMode>
                            <allowInsecureRegistries>true</allowInsecureRegistries>
                        </configuration>
                    </plugin>
                </plugins>
            </build>

and I add this in Java as I build the image in an application and not from the command line.
        props.setProperty("interactiveMode", "false");
        props.setProperty("jib.from.image", "ghcr.io/graalvm/jdk:ol7-java17-22.2.0");
        props.setProperty("jib.to.image", registryUrl + "/" + imageName + ":" + imageVersion);
        props.setProperty("jib.to.auth.username", registryUsername);
        props.setProperty("jib.to.auth.password", registryPassword);
        props.setProperty("jib.container.format", "OCI");

Thanks
Andy

Some more information, the MANIFEST.MF file contains the MainClass value (different for different version of SB).
Spring Boot 3.2
Manifest-Version: 1.0
Created-By: Maven JAR Plugin 3.3.0
Build-Jdk-Spec: 17
Implementation-Title: helloworld
Implementation-Version: 0.0.1-SNAPSHOT
Main-Class: org.springframework.boot.loader.launch.JarLauncher
Start-Class: com.example.helloworld.HelloworldApplication
Spring-Boot-Version: 3.2.0
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Spring-Boot-Classpath-Index: BOOT-INF/classpath.idx
Spring-Boot-Layers-Index: BOOT-INF/layers.idx

Spring Boot 3.1
Manifest-Version: 1.0
Created-By: Maven JAR Plugin 3.3.0
Build-Jdk-Spec: 17
Implementation-Title: helloworld-31
Implementation-Version: 0.0.1-SNAPSHOT
Main-Class: org.springframework.boot.loader.JarLauncher
Start-Class: com.example.helloworld31.Helloworld31Application
Spring-Boot-Version: 3.1.6
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Spring-Boot-Classpath-Index: BOOT-INF/classpath.idx
Spring-Boot-Layers-Index: BOOT-INF/layers.idx

Seems that GradleProjectProperties class has an implementation where it looks for Main-Class:
Object value = jarTask.getManifest().getAttributes().get("Main-Class");
vs the MavenProjectProperties class doesn't, well it looks for something I just don't know what?
Not sure if that is of any help?

It's been a long while, so I don't remember the specifics, but given that you are talking about JarLauncher, I think you are looking at the Spring Boot fat jar created by the Spring Boot plugin? I believe Jib doesn't use the fat jar but the thin jar created by the maven-jar-plugin. Can't you just set the main class to com.example.helloworld.HelloworldApplication (in either  <archive><manifest><mainClass> of maven-jar-plugin or jib.container.mainClass?

If I set the jib.container.mainClass to class com.example.helloworld.HelloworldApplication I get the following error when trying to run the JAR file:
Error: Could not find or load main class com.example.helloworld.HelloworldApplication
Caused by: java.lang.ClassNotFoundException: com.example.helloworld.HelloworldApplication

if I set jib.container.mainCLass to org.springframework.boot.loader.launch.JarLauncher or org.springframework.boot.loader.launch.JarLauncher (depending on the SB version) I can get it to work but setting this depending on the version of SB seems wrong?
The application is deploying a SB application and deploys it onto a k8s cluster. And the application doesn't know the SB version.

I guess it should be com.example.helloworld31.Helloworld31Application? And what if you don't set <containerizingMode>packaged</containerizingMode>?

I got two different applications, one for SB 3.1 and one for SB 3.2.
3.2 starting class is com.example.helloworld.HelloworldApplication and the one for SB 3.1 is com.example.helloworld31.Helloworld31Application
<containerizingMode>packaged</containerizingMode> is set:
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.google.cloud.tools</groupId>
                        <artifactId>jib-maven-plugin</artifactId>
                        <version>${jib-maven-plugin.version}</version>
                        <configuration>
                            <containerizingMode>packaged</containerizingMode>
                            <allowInsecureRegistries>true</allowInsecureRegistries>
                        </configuration>
                    </plugin>
                </plugins>
            </build>

I'm looking at the jib-gradle-plugin and the method getMainClassFromJarPlugin() in the GradleProjectProperties class and it seems to do a very different thing, maybe it is correct, but it looks for the value "Main-Class" in the JAR file:
Object value = jarTask.getManifest().getAttributes().get("Main-Class");
vs the same mermaid in the jib-maven-plugin where the method getMainClassFromJarPlugin() is doing something very different.
Is there a DEBUG flag that I can turn on to get more data?

seems to do a very different thing

Basically it does the same thing; it retrieves the Main-Class attribute to be set inside the thin jar created by maven-jar-plugin or the Jar task. (not by the Spring Boot plugin). In Maven, what it does is
  public String getMainClassFromJarPlugin() {
    Plugin mavenJarPlugin = project.getPlugin("org.apache.maven.plugins:maven-jar-plugin");
    if (mavenJarPlugin != null) {
      return getChildValue(
              (Xpp3Dom) mavenJarPlugin.getConfiguration(), "archive", "manifest", "mainClass")
          .orElse(null);

You seem to believe that the Gradle opens up the built jar and inspect the manifest, but what it does is just to get the Main-Class information from the Jar task.
I think you should be able to see log messages by MainClassResolver where Jib got the main class info (e.g., here) when you increase the logging level to INFO or more.

I'll try to unset the <allowInsecureRegistries>true</allowInsecureRegistries>. Stay tuned

<allowInsecureRegistries>false </allowInsecureRegistries> gives the same error:
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.0:build (default-cli) on project helloworld: Main class was not found, perhaps you should add a mainClass configuration to jib-maven-plugin
Can I set the logging level using a parameter somehow?

I believe mvn -X.

Oh, and it's not allowInsecureRegistries but containerizingMode.

Ah, sorry about that!
Debugging gives me this:
[DEBUG]   (f) project = MavenProject: oracle.obaas:helloworld:0.0.1 @ /app/upload-dir/application/helloworld/containerPOM.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@180b3819
[DEBUG] -- end configuration --
[DEBUG] Using JAR: /app/upload-dir/application/helloworld/target/helloworld-0.0.1.jar
[DEBUG] Searching for main class... Add a 'mainClass' configuration to 'jib-maven-plugin' to improve build speed.
[DEBUG] Could not find a valid main class from 'maven-jar-plugin'; looking into all class files to infer main class.
[DEBUG] MainClassFinder: /app/upload-dir/application/helloworld/target/classes is not a regular file; skipping

Not sure what that means?

If I don't use containerizingMode I still get this:
DEBUG]   (f) project = MavenProject: oracle.obaas:helloworld:0.0.1 @ /app/upload-dir/application/helloworld/containerPOM.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@1e8ab90f
[DEBUG] -- end configuration --
[DEBUG] Searching for main class... Add a 'mainClass' configuration to 'jib-maven-plugin' to improve build speed.
[DEBUG] Could not find a valid main class from 'maven-jar-plugin'; looking into all class files to infer main class.
[DEBUG] MainClassFinder: /app/upload-dir/application/helloworld/target/classes is not a regular file; skipping
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.092 s
[INFO] Finished at: 2023-12-14T17:37:56Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.0:build (default-cli) on project helloworld: Main class was not found, perhaps you should add a `mainClass` configuration to jib-maven-plugin

Do you have a .class file compiled from public static void main(...) under /app/upload-dir/application/helloworld/target/classes? Isn't it empty? It should output logs for all the sub-directories like this:
DEBUG] MainClassFinder: /usr/local/google/home/chanseok/workspace4E/jib/examples/helloworld/target/classes is not a regular file; skipping
[DEBUG] MainClassFinder: /usr/local/google/home/chanseok/workspace4E/jib/examples/helloworld/target/classes/example is not a regular file; skipping
[DEBUG] MainClassFinder: /usr/local/google/home/chanseok/workspace4E/jib/examples/helloworld/target/classes/world is not a class file; skipping

MainClassFinder.find() is called from here and output these logs here.

I think so, I got this:
x BOOT-INF/
x BOOT-INF/classes/
x BOOT-INF/classes/com/
x BOOT-INF/classes/com/example/
x BOOT-INF/classes/com/example/helloworld/
x META-INF/maven/
x META-INF/maven/com.example/
x META-INF/maven/com.example/helloworld/
x BOOT-INF/classes/com/example/helloworld/HelloWorldController.class
x BOOT-INF/classes/com/example/helloworld/HelloworldApplication.class
x BOOT-INF/classes/application.properties
x META-INF/maven/com.example/helloworld/pom.xml
x META-INF/maven/com.example/helloworld/pom.properties

Attached is the JAR file that is used [DEBUG] Using JAR: /app/upload-dir/application/helloworld/target/helloworld-0.0.1.jar
helloworld-0.0.1-SNAPSHOT.jar.zip

I am talking about /app/upload-dir/application/helloworld/target/classes (your log may be when not setting containerizingMode), not the contents inside the jar.

when not setting containerizingMode I get this error:
[DEBUG]   (f) project = MavenProject: oracle.obaas:helloworld:0.0.1 @ /app/upload-dir/application/helloworld/containerPOM.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@1e8ab90f
[DEBUG] -- end configuration --
[DEBUG] Searching for main class... Add a 'mainClass' configuration to 'jib-maven-plugin' to improve build speed.
[DEBUG] Could not find a valid main class from 'maven-jar-plugin'; looking into all class files to infer main class.
[DEBUG] MainClassFinder: /app/upload-dir/application/helloworld/target/classes is not a regular file; skipping

And the /app/upload-dir/application/helloworld/target/classes is empty or at least I can't see them, maybe they get deleted before I can see them.
bash-4.4# ls -l
total 21628
drwxr-xr-x. 2 root root        6 Dec 14 19:02 classes
-rw-r--r--. 1 root root 22143943 Dec 14 19:02 helloworld-0.0.1.jar
bash-4.4# ls -l classes
total 0

Maybe a clarification on what we're trying to helps (or maybe not):

We ask our customers to build a Spring Application and build a fat Spring JAR file of the application (spring-boot-maven-plugin)
We then user JIB to package and containerize the JAR file. We are trying to avoid the (well known) security challenges of using a docker daemon during the build process.
We then build the container and deploy it to an already installed k8s cluster (same for both build and deploy)

Thanks. As you said, I believe /app/upload-dir/application/helloworld/target/classes is really empty, because otherwise, you should have seen some logs about its sub-directories as in my test project. And that's why Jib can't automatically find the main class. I think I see the picture now.
First of all, Jib doesn't use the fat jar produced by the spring-boot-maven-plugin. Whether they use the Spring Boot plugin, it doesn't matter. Jib is designed to pick up the thin jar by the maven-jar-plugin.
Then, normally, you should see two jars under target/:

fat jar by spring-boot-maven-plugin: helloworld-0.0.1.jar
thin jar by maven-jar-plugin: helloworld-0.0.1.jar.original

This no longer may be true if things might have changed. But this is what I remember from the past.  That may be why you set <containerizingMode>packaged, even though unpacked containerizing works just fine. And hopefully you are also pretending that your Maven project has no dependencies. (If you are not, you'll be duplicating dependency jars (those put by Jib and those inside the far jar), which is super bad.
That's why manually setting the main class to com.example.helloworld31.Helloworld31Application. The class is not accessible as a main class in the fat jar. It must be JarLauncher. And since JarLauncher is not a project class but some random class from one of the project dependencies, so Jib can never infer it. And your Maven project tells Jib that there exist no classes.
If all these are true, I'd say it's kind of a weird hack. If you have to use a Spring Boot fat jar (which I think you managed to achieve it with some tricks), then it's a fair game. You should set a correct main class yourself.

But I discourage using a fat jar, because it completely destroys a lot of goodness about layering and reproducibility.

If I use helloworld-0.0.1-SNAPSHOT.jar.original I still get the same error:
[DEBUG]   (f) project = MavenProject: oracle.obaas:helloworld:0.0.1 @ /app/upload-dir/application/helloworld/containerPOM.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@1e8ab90f
[DEBUG] -- end configuration --
[DEBUG] Searching for main class... Add a 'mainClass' configuration to 'jib-maven-plugin' to improve build speed.
[DEBUG] Could not find a valid main class from 'maven-jar-plugin'; looking into all class files to infer main class.
[DEBUG] MainClassFinder: /app/upload-dir/application/helloworld/target/classes is not a regular file; skipping
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.829 s
[INFO] Finished at: 2023-12-14T19:46:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.0:build (default-cli) on project helloworld: Main class was not found, perhaps you should add a `mainClass` configuration to jib-maven-plugin

I'll find some way to make it work

Yeah, that's because /app/upload-dir/application/helloworld/target/classes. However, when using the thin jar, I think manually setting the main class (either in maven-jar-plugin or in Jib) to HelloWorld31Application will probably work.

It doesn't work


Migrations are not applied from CQL scripts

Expected Behaviour
I created a cql script from your example and called it V3_0__Third.cql. The path to the directory is set String[] scriptsLocations = {"com/test/project/persistence/migration/"};
If I execute the project it tells me
2017-07-21 17:05:02.221  INFO 34156 --- [           main] c.b.c.m.internal.command.Migrate         : Current version of keyspace master_data: << Current Version >> 2017-07-21 17:05:02.222  INFO 34156 --- [           main] c.b.c.m.internal.command.Migrate         : Keyspace master_data is up to date, no migration necessary
The changes in the script, however, was not applied and no new entry is created in cassandra_migration_version. If I change the path it throws an exception, that the path is not found so it should be right.

Actual Behaviour
Migrations not applied

Steps to Reproduce
Steps from the tutorial.

I found the problem, the scipts were not copied into the jar file and therefore was not found during runtime.


[SEDONA-686] Add ST_LabelPoint

Did you read the Contributor Guide?

Yes, I have read the Contributor Rules and Contributor Development Guide

Is this PR related to a JIRA ticket?

Yes, the URL of the associated JIRA ticket is https://issues.apache.org/jira/browse/SEDONA-686. The PR name follows the format [SEDONA-XXX] my subject.

What changes were proposed in this PR?
This PR implements the ST_LabelPoint function, which calculates an optimal label point for polygons and GeometryCollections. The label point is determined to be centrally located within the geometry while maximizing the distance from its boundaries. This functionality is inspired by Tippecanoe’s polygon_to_anchor algorithm, offering a computationally efficient approximation.
Key features -

Calculates a label point for polygons that is near the center and far from boundaries.
Handles nested GeometryCollections recursively to identify the largest polygon for label point computation.
Includes optional parameters gridResolution and goodnessThreshold for tuning the precision and performance of the label point calculation.

How was this patch tested?

Passes new and existing tests

Did this PR include necessary documentation updates?

Yes, I am adding a new API. I am using the current SNAPSHOT version number in vX.Y.Z format.

prioritizing proximity to the centroid and distance from the boundaries. For collections, the largest polygon by area is used.

It would be more accurate to say it is lookin for a point with enough distance from the boundaries. It doesnt care about the centroid beyond considering it first as a reasonable option

@prantogg fix the CI again?


Changing state of notifications via API results in internal server error 500

Description
Hi, I've been fuzzing Gitea with openapi-fuzzer and found, that sending a PUT request to /api/v1/notifications endpoint with invalid last_read_at query parameter causes the Gitea to respond with internal server error 500 status code.
request & response
curl -X PUT -H "Authorization: token $TOKEN" 'http://<IP_ADDRESS>:3000/api/v1/notifications?last_read_at=x'
{
  "message": "parsing time \"x\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"x\" as \"2006\"",
  "url": "http://localhost:3000/api/swagger"
}

logs
2023/06/27 23:59:09 ...pi/v1/notify/user.go:135:ReadNotifications() [E] [649b5bad] InternalServerError: parsing time "x" as "2006-01-02T15:04:05Z07:00": cannot parse "x" as "2006"
2023/06/27 23:59:09 [649b5bad] router: completed PUT /api/v1/notifications?last_read_at=x for <IP_ADDRESS>:47256, 500 Internal Server Error in 20.1ms @ notify/user.go:93(notify.ReadNotifications)

Gitea Version
1.19.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
linux
How are you running Gitea?

I downloaded Gitea from Github
I run it from command-line
did not use a package or systemd

Database
SQLite

Maybe we should return BadRequest here?
https://github.com/go-gitea/gitea/blob/b943318617633e7dc43f3ac1c146be1e37563093/routers/api/v1/notify/user.go#L132-L137


#1: put a capital M in the src/CmakeLists.txt file title

I solved the issue #1!
Do not hesitate to tell me if I have to modify something else... :blush:

Had the same issue. Please merge!

Merged! Thanks @timotheeMM & @FrankLaterza


Chaturbate plugin periodically broken

in some instances, the chaturbate plugin cannot find a playable stream, even though one is clearly playing from the http location.  The only difference I can find between streams that livestreamer can find and those it cannot from the play url is the difference of one number.  Specifically,  livestreamer can play:
rtmp://origin7.stream.highwebmedia.com/live-origin/hung_london_lad-sd-fd87c37b4225dcc51ea551670eaba890baa65cdcd0715266dbb68757995fb1f7'
but cannot play
rtmp://origin1.stream.highwebmedia.com/live-origin/allyours129-sd-f25f66b9b5dd69c68bce6a74a89ee8a67c9b9c10e2e8212b4813357089c04d3d'
the only difference I can see is the "origin1" instead of the "origin7"
Tried to look at the plugin in notepad, but could understand nothing, so I thought I'd leave it for you guys.

Livestreamers chaturbate plugin picks the HLS stream. The reason why Livestreamer cannot play the second stream, may be some kind of restriction. The second stream is not even accessible through their website.
https://chaturbate.com/allyours129

Access Denied. This room is not available to your region or gender.


bot.fetch_user_profile(username) not working

cant seem to find def fetch_user_profile(username) in the files

It is here: https://github.com/jramseygreen/osu_bot_framework-v3/blob/d12004ff43da5169a7e066e85af00c0bc70fdce6/framework.py#L440

hey is the function suppose to return an empty dictionary? trying to fetch my profile and its just printing {}

Please can you let me know your osu username? I will look into this for you

hey sorry it may possibly be i'm using it wrong but it is "truonging" https://osu.ppy.sh/users/21634259

your amazing thankyou!


[stable/datadog] Allow configuration of daemonset.updateStrategy for datadog chart

Allows the updateStrategy to be set with a default of "OnDelete" set for backwards compatibility

/ok-to-test
/assign

/test all

@tvanhens Thanks for the contribution. :-)


Use actions instead of heroku

Something else we no longer to use an external source for... running this hourly.

🤔 maybe it only runs on master.

Ooof. Too slow.


Problem with a #hashtag after a character like " or ( or / or others

Steps to Reproduce
Hello @bluesky-social team,
Initially published 2024-05-04, more 6 months without fixes:

https://github.com/bluesky-social/atproto/issues/2466

There is a #hashtag problem when we publish a #hashtag after a character like for example:

"
(
/
others

No problem on other social protocols/networks.
Temporary solution is to add a space.
Example here:

https://bsky.app/profile/neustradamus.bsky.social/post/3kggtecgjfl2f

I have done a new post to show you more the problem:

https://bsky.app/profile/neustradamus.bsky.social/post/3kvp4jszdgs2c

Test, not all example problems:
- #hashtag
- "#hashtag"
- " #hashtag"
- (#hashtag/#hashtag)
- ( #hashtag/#hashtag)
- ( #hashtag /#hashtag)
- ( #hashtag / #hashtag)
- -#hashtag
- _#hashtag
- !#hashtag
- ?#hashtag
- @#hashtag
- ;#hashtag
- ,#hashtag
- .#hashtag
- [#hashtag
- &#hashtag
- ^#hashtag
...

Can you solve it?
Thanks in advance.
Attachments
No response
What platform(s) does this occur on?
iOS, Android, Web (Desktop), Web (Mobile)
Device Info
No response
What version of the app are you using?

Additional Information
No response

@andresochoas has done a PR:

https://github.com/bluesky-social/atproto/pull/3104


ui : Popup support

working.
https://github.com/tweakoz/orkid/commit/28e5b204a35bce6cbf7f81b067a795b35aafd4c9


New Language

Language
Serbian (latin)

I have added the language into Crowdin and you can add translations here

Translation is complete. ;)

Thanks, this will be included in the next release.

Serbian has Cyrillic "sr"  and Latin "sr_Latn" variants. Please, Can you change translation file name to  sr_Latn.json?
Thank you.

It must be sr-Latn.json
File name: sr-CS.json, dont snow translation

.
.
.
File name: sr-Latn.json, it working

I'm going to have to spend a bit of time looking at how to get that type of file out of crowdin, renaming it will just get overwritten.

The bit of time was actually very little, the new release 2.3.9 now has a sr-Latn file pulling from crowdin.

Thank You :) Working now


decodeHeaderAsJavaNetCookies - value is not trimmed - Crash

Hi team, I've tried to fetch meta-data from this https://developer.android.com/training/multiscreen/screendensities particular link and received an instant crash on Android.
All other links work well. According to Logcat there is an issue with parsing cookies in decodeHeaderAsJavaNetCookies method, decoder sends untrimmed values to the Builder class, would you mind checking?
I'm using the latest react-native version, which under the hood uses the 4.9.2 OkHttp version. (v4.10.0 has an issue too)

2022-12-12 18:02:23.525 31954-32207/com.preply E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: com.preply, PID: 31954
    java.lang.IllegalArgumentException: value is not trimmed
        at okhttp3.Cookie$Builder.value(Cookie.kt:271)
        at okhttp3.JavaNetCookieJar.decodeHeaderAsJavaNetCookies(JavaNetCookieJar.kt:103)
        at okhttp3.JavaNetCookieJar.loadForRequest(JavaNetCookieJar.kt:59)
        at com.facebook.react.modules.network.ReactCookieJarContainer.loadForRequest(ReactCookieJarContainer.java:44)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:74)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
        at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:920)

Also since it's an invalid cookie, you may want to filter these out in a network interceptor as a workaround.
https://stackoverflow.com/questions/1969232/what-are-allowed-characters-in-cookies
https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1

I can't reproduce at all on 5.x, it looks like CookieManager is cleaning this up.  I'll switch to 4.10 and see if it's there.

Can't reproduce on 4.10 either, any help making the test fail is appreciated.
But I suspect it might be a bad implementation of CookieManager on older Android?

Fix 10 years ago for CookieManager https://android.googlesource.com/platform/frameworks/base/+/87ad930037a5ccb915d3ff3675135d405af092d7^!/#F0
But it now offloads to Chromium, so wonder if that is allowing spaces in some versions?

Closing as not reproducible.  Likely an issue with the platform CookieManager on some particular device.


Upload Template Feature

It should be possible to upload a template (.zip file) and install it into YaWK.

done! templates can now be updated and installed. works fine in testing area. Will be tested under real conditions. (further improvements may follow, even if issue may already closed)


macOS Silicon install

This PR aims to fix all issues with M1/2/... install on Mac by providing a correct install procedure and conda yaml file.

[x] Documentation update

Fixed ARM64 install for itk and fixed some non OS-agnostic tests

Will test this a bit more on our M1 server, but should be good now

@Timokleia If you confirm this works you can approve the PR !


⚠ Bofrost.de has degraded performance

In b023bb6, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 745 ms

Resolved: Bofrost.de performance has improved in 72b3f43.


Checkpoint loading - memory doubles

Hey there,
I noticed that starting a training run from a previous checkpoint doubles the size of the replay buffer and therefore also doubles the memory requirements. To use a checkpoint I simply provide a logdir which already exists as instructed in the README. As done in example.py, I initialize the replay buffer, which results in loading the data from the previous run as expected. Then, in the the training function, the checkpoint is loaded (https://github.com/danijar/dreamerv3/blob/main/dreamerv3/embodied/run/train.py#L94). This sets the correct model parameters but it also loads the replay buffer again, as 'replay' is a key in the checkpoint dict.
I found that a way to avoid this is adding the following code in example.py after line 25 (https://github.com/danijar/dreamerv3/blob/main/example.py#L25):
if logdir.exists():
        cp_file = logdir / 'checkpoint.ckpt'
        cp_dict = embodied.basics.unpack(cp_file.read('rb'))
        if 'replay' in cp_dict:
            del cp_dict['replay']
            old = cp_file.parent / (cp_file.name + '.old')
            cp_file.copy(old)
            cp_file.write(embodied.basics.pack(cp_dict), mode='wb')
            old.remove()

This omits loading the replay buffer twice (resulting in having each datapoint in there two times and memory requirements doubling each time we restart a run) and works fine for me. Still, it is a rather hacky workaround and I feel like there should some better way, maybe I also missed something?
Thanks in advance for the help!

This is fixed now, replay only loads on load() and not on object creation anymore.


Feature/601/legacy endpoints fixed

Resolves #601

Closing PR in favor of https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/pull/633


Better validate authors manifest values

Since the authors and URLs are being directly used in the react code, we might want to parse or something to make sure people don't put JavaScript in the url field that runs on click or something. It also might be worth looking into how other values are used and parsed.

@theRealPadster Is this still relevant?

I thought so, since you could theoretically do something like this.

But it doesn't look like it runs when I do click it. Because of the onClick={(e) => e.stopPropagation()} maybe?


fix(gossip): Fix invalid free

This involves passing the "message allocator" as a more general "table allocator" at the initialization site of gossip service, to allow the gossip table to properly free the data with the right allocator.
Merging this should be high priority, because currently there is a panic in a currently very reachable set of codepaths, which only manifested when testing on mainnet.

Closes #152.


[PE-D][Tester B] Contacts Management section of UG has incorrect command description

For the following part in the Contacts Management section of the UG: "Clearing all entries : Contacts Tab → clear", the description is stated wrongly.
Expected: Clears all entries from the Contacts Tab.
Actual: Clears all entries from the Finance Tab.

Labels: severity.VeryLow type.DocumentationBug
original: aslam341/ped#14

Duplicate issue:

#169


Support defining version in parent pom only

What changes were proposed in this pull request?

add revision property support
add flatten plugin
jdk version can be configurable

How was this patch tested?
build passed

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Infra-Github-PR-Builder/36/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Infra-Github-PR-Builder/37/
Test PASSed.


Weird artefacts on large maps

Hi,
We have some render issues when we generate a lot of nodes :

We updated from 0.97c to 0.98, artefacts are still there.
Did someone seen this problem before ?
Thx !

Any warnings in the logs? Can you share the map file?

Sure, we got a whole bunch of warning and debug.
Some examples of warnings we got:
Failed to load ttf font /var/www/example-map/lib/Lato-Regular.ttf
Unrecognised config on line 99: BWFRONTINCOLOR 47 47 255
PHP Warning:  mkdir(): File exists in /var/www/example-map/lib/pre/WeatherMapPreProcessorGraphviz.php on line 36
Duplicate node name ETS at line 75 - only the last one defined is used. [WMWARN24]
Here are the complete debug logs (23K lines) and the HTML map (without the png file which contains the artefacts).
output.zip
Thanks you !

Well traditionally, in a bug report, you'd mention the errors ;-)
It's the map config file, not the HTML output that will have the clues. But:

You have lots of missing fonts, so anything using those fonts will render with a built-in font instead. This happens in 730 places.

should probably be BWFONTCOLOR there is no such thing as BWFONTINCOLOR or BWFONTOUTCOLOR.

you'd need to ask whoever wrote that plugin. It has "undefined variable" errors though, so I am guessing it's not super well written.

That's probably bad. If both definitions have positions, strange things might happen. There are 78 duplicate nodes in there.

There's also loads stuff like this:
Resolving relative position for NODE labelETS9 to siteETS9
DEBUG: [ReadConfig@Weathermap.class.php:2815] /var/www/example-map/configs/outillage/FOO-VRF/<IP_ADDRESS>.map: ->0,0
with relative positioned nodes being resolved to 0,0 or 0,-20. This probably explains all the lines going to the top corner.
Basically, your map is a real mess! :-)

Thanks you so much for your feedback, we'll look forward on it and post results here !

Hi,
We cleaned a bit our code and did some experiments, we think there is a bug during the index.html generation.
We tested it with fewer nodes:

It's better but if we zoom in it, there are little artefacts :

And we tried to delete the node, artefact poped up on the link next to it.

So, in the html, we got
<area id="LINK:L409:0" href="https://example/mon/mon.cgi?job=xu&pd_key=21285&mp_key=467583&oldgraph=0" onmouseover="return overlib('Bande Passante : 2.048 Mbps',DELAY,250,CAPTION,'58797-41284');"  onmouseout="return nd();" shape="poly" coords="1728,1577,1734,1580,1479,2048,1494,2174,1494,2174,1484,2178,1481,2168,1481,2168,1593,1820,1722,1574,1728,1577" />
There are too much coordinates, and we think that's bad ones.
We are still cleaning our configuration, and trying to locate more precisely why theses artefacts occurs :)
Generation logs (100 lines, much better) + index.html:
logs.zip

Is it possible to re-open this issue please ?
It seems to be a real bug, which happens on every map with more than 50 nodes.
Thanks you

OK, but it doesn't happen on every map with more than 50 nodes. I have many maps with hundreds of nodes, and so do other users (e.g. chassis switches where every port is a node). So, please supply a complete config for a map that does show this issue, ideally without it needing non-standard pre and post processing plugins, please.
I'll add some test cases for large maps in the meantime, to see if I can reproduce it.

e.g. 61 nodes, 60 links, and similar styling..

Thx a much for your feedback.
We was cleaning our configuration for send it here, and we found something intresting :
If we remove all the  SET site something on all our nodes, the map display correctly

NODE 57575
TEMPLATE routeur
POSITION 0 0
SET site siteETS19

We are actually digging that way !

OK - that doesn't affect anything in a default weathermap installation (depends on what your template 'routeur' looks like, I suppose).
I guess one of your homegrown plugins uses it?

You were right, it's an homemade plugin which create these artefacts...
The custom WeathermapPreprocessor script changes nodes position and scale in a pretty messy way
Anyway, thank you for your support, you can mark this issue as resolved !

Thanks for confirming... if there is something in a standard config that does the same thing, please let me know. Changing positions in a pre plugin shouldn't really be a problem.


Fix creation of small_error::InnerRaw.

(*ptr).failure = failure drops the existing value at (*ptr).failure, which is uninitialized memory. Use ptr::write instead.
I also moved all the nontrivial operations to happen before the allocation, so that after the allocation the function cannot fail.

Thanks for the fix! Good catch :-)


Test with PySpark 3.2

Adds test matrix to test with PySpark 3.2.
Also upgrades PySpark 3.1 to 3.1.2.

Codecov Report

Merging #2203 (b64c3cc) into master (f44c050) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2203      +/-   ##
==========================================
- Coverage   89.93%   89.91%   -0.02%
==========================================
  Files          60       60
  Lines       13629    13629
==========================================
- Hits        12257    12255       -2
- Misses       1372     1374       +2

Impacted Files
Coverage Δ

databricks/koalas/groupby.py
93.90% <ø> (ø)

databricks/koalas/indexes/base.py
96.60% <ø> (-0.38%)
:arrow_down:

Continue to review full report at Codecov.

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


fips-bundle-test should be test scope and no need of commons-io in dptMngt

Signed-off-by: Olivier Lamy<EMAIL_ADDRESS>
Testing done

Submitter checklist

[ ] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
[ ] Ensure that the pull request title represents the desired changelog entry
[ ] Please describe what you did
[ ] Link to relevant issues in GitHub or Jira
[ ] Link to relevant pull requests, esp. upstream and downstream changes
[ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue

@Dohbedoh Thanks for the merge!
Maybe a release? I'm not committer here so I couldn't add a label

Running the release now


UI fix: Change title typography on sensor view

Title style is the same as on settings page. Add space on top of the title row.
Leave out the underline. (At least I would like to see if it is better without the line.)

I think we discussed about this some months ago and the conclusion was that our current ui libraries don't allow us to easily change this so we decided to keep it as it is for now. Moving to backlog.

@sini-maaria is this card still valid?
Looks like in 2.0 the title has already been changed. Should we do this on Android asap?

We will do the title formatting capital letter, small letters
Remove the underline
But keep the same location of title height-wise, we will not bring title down

QA passed


Add redis stream conusmer source

Closes #35

This is not needed anymore as we are not going to use Redis Streams for now


remove hook should check if hook.result is not null

Got error: TypeError: Cannot read property 'toObject' of null at https://github.com/feathersjs/feathers-hooks/blob/master/src/bundled.js#L138

Did you get that because you use the hook both in before & after?

I only used it as after hook.
Le mar. 20 sept. 2016 à 22:54, Taushif Habiboellah<EMAIL_ADDRESS>a écrit :

Did you get that because you use the hook both in before & after?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/feathersjs/feathers-hooks/issues/99#issuecomment-248430964,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAyYUFqHiAOQ4YflPlBNCgGFqFTR-oYGks5qsEfpgaJpZM4KBk6j
.

Sounds like a good change. Can probably be done by changing https://github.com/feathersjs/feathers-hooks/blob/master/src/bundled.js#L137 to } else if(result) {.

https://github.com/feathersjs/feathers-hooks/pull/101

v1.5.8


TypeError when training

Thanks for you code.
However, when I run "CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --master_port 10025 --nproc_per_node=1 tools/relation_train_net.py --config-file "configs/SHA_GCL_e2e_relation_X_101_32_8_FPN_1x.yaml" GLOBAL_SETTING.DATASET_CHOICE 'VG' GLOBAL_SETTING.RELATION_PREDICTOR 'TransLike_GCL' GLOBAL_SETTING.BASIC_ENCODER 'Hybrid-Attention' GLOBAL_SETTING.GCL_SETTING.GROUP_SPLIT_MODE 'divide4' GLOBAL_SETTING.GCL_SETTING.KNOWLEDGE_TRANSFER_MODE 'KL_logit_TopDown' MODEL.ROI_RELATION_HEAD.USE_GT_BOX True MODEL.ROI_RELATION_HEAD.USE_GT_OBJECT_LABEL True SOLVER.IMS_PER_BATCH 8 TEST.IMS_PER_BATCH 8 DTYPE "float16" SOLVER.MAX_ITER 60000 SOLVER.VAL_PERIOD 5000 SOLVER.CHECKPOINT_PERIOD 5000 GLOVE_DIR /home/yons/scene/VTSCN/datasets/vg/glove OUTPUT_DIR /home/yons/scene/VTSCN/datasets/output/SHA_GCL_VG_PredCls_test" with SHA-GCL-for-SGG for training PredCls,  it produces the following issue:
TypeError:init() takes 3 positional arguments but 5 were given.
Hope to your reply. Thank you!
There is the whole issue txt:
Traceback (most recent call last):
File "tools/relation_train_net.py", line 442, in
main()
File "tools/relation_train_net.py", line 435, in main
model = train(cfg, args.local_rank, args.distributed, logger)
File "tools/relation_train_net.py", line 48, in train
model = build_detection_model(cfg)
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/detector/detectors.py", line 10, in build_detection_model
return meta_arch(cfg)
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 31, in init
self.roi_heads = build_roi_heads(cfg, self.backbone.out_channels)
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/roi_heads/roi_heads.py", line 83, in build_roi_heads
roi_heads.append(("box", build_roi_box_head(cfg, in_channels)))
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py", line 115, in build_roi_box_head
return ROIBoxHead(cfg, in_channels)
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py", line 26, in init
self.feature_extractor = make_roi_box_feature_extractor(cfg, in_channels, half_out=self.cfg.MODEL.ATTRIBUTE_ON)
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/roi_heads/box_head/roi_box_feature_extractors.py", line 166, in make_roi_box_feature_extractor
return func(cfg, in_channels, half_out, cat_all_levels)
TypeError: init() takes 3 positional arguments but 5 were given
Traceback (most recent call last):
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/site-packages/torch/distributed/launch.py", line 255, in main
raise subprocess.CalledProcessError(returncode=process.returncode,
subprocess.CalledProcessError: Command '['/home/yons/anaconda3/envs/VTSCN/bin/python', '-u', 'tools/relation_train_net.py', '--local_rank=0', '--config-file', 'configs/SHA_GCL_e2e_relation_X_101_32_8_FPN_1x.yaml', 'GLOBAL_SETTING.DATASET_CHOICE', 'VG', 'GLOBAL_SETTING.RELATION_PREDICTOR', 'TransLike_GCL', 'GLOBAL_SETTING.BASIC_ENCODER', 'Hybrid-Attention', 'GLOBAL_SETTING.GCL_SETTING.GROUP_SPLIT_MODE', 'divide4', 'GLOBAL_SETTING.GCL_SETTING.KNOWLEDGE_TRANSFER_MODE', 'KL_logit_TopDown', 'MODEL.ROI_RELATION_HEAD.USE_GT_BOX', 'True', 'MODEL.ROI_RELATION_HEAD.USE_GT_OBJECT_LABEL', 'True', 'SOLVER.IMS_PER_BATCH', '8', 'TEST.IMS_PER_BATCH', '8', 'DTYPE', 'float16', 'SOLVER.MAX_ITER', '60000', 'SOLVER.VAL_PERIOD', '5000', 'SOLVER.CHECKPOINT_PERIOD', '5000', 'GLOVE_DIR', '/home/yons/scene/VTSCN/datasets/vg/glove', 'OUTPUT_DIR', '/home/yons/scene/VTSCN/datasets/output/SHA_GCL_VG_PredCls_test']' returned non-zero exit status 1.

Thanks for you recognition of our work. maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py is uploaded with a new version, you can download it and try again.
The occurence of this error is because some codes in maskrcnn_benchmark are from the original benchmark of TDE. The dismatch between SHA-GCL and TDE causes this error. I am not sure if there are another dismatch errors. If you meet again, please let me know and I will recheck the code.
BTW, although our code provides the implementation of VTSCN of TransLike_GCL, they has not been run before, and I don't know if there exist bugs. In our paper, we reported three baseline models, i.e. MOTIFS, VCTree and VTransE.

Thanks for your reply. I have tried this new py "box_head.py", but this problem is still exist and  the same.

Thanks for your recognition of our work. maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py is uploaded with a new version, you can download it and try again. The occurence of this error is because some codes in maskrcnn_benchmark are from the original benchmark of TDE. The dismatch between SHA-GCL and TDE causes this error. I am not sure if there are another dismatch errors. If you meet again, please let me know and I will recheck the code. BTW, I will delete the implementation of VTSCN of TransLike_GCL because they are incomplete and has not been run before. In our paper, we reported three baseline models, i.e. MOTIFS, VCTree and VTransE.

Thanks for your reply. I am sorry to bother you again. I have tried this new py and this issue is solved. But a new problem has arisen.
Traceback (most recent call last):
File "tools/relation_train_net.py", line 24, in
from maskrcnn_benchmark.modeling.detector import build_detection_model
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/detector/init.py", line 2, in
from .detectors import build_detection_model
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/detector/detectors.py", line 2, in
from .generalized_rcnn import GeneralizedRCNN
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 13, in
from ..roi_heads.roi_heads import build_roi_heads
File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/roi_heads/roi_heads.py", line 4, in
from .box_head.box_head import build_roi_box_head
ImportError: cannot import name 'build_roi_box_head' from 'maskrcnn_benchmark.modeling.roi_heads.box_head.box_head' (/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py)
Traceback (most recent call last):
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/home/yons/anaconda3/envs/VTSCN/lib/python3.8/site-packages/torch/distributed/launch.py", line 255, in main
raise subprocess.CalledProcessError(returncode=process.returncode,
subprocess.CalledProcessError: Command '['/home/yons/anaconda3/envs/VTSCN/bin/python', '-u', 'tools/relation_train_net.py', '--local_rank=0', '--config-file', 'configs/SHA_GCL_e2e_relation_X_101_32_8_FPN_1x.yaml', 'GLOBAL_SETTING.DATASET_CHOICE', 'VG', 'GLOBAL_SETTING.RELATION_PREDICTOR', 'MotifsLikePredictor', 'GLOBAL_SETTING.BASIC_ENCODER', 'Motifs', 'GLOBAL_SETTING.GCL_SETTING.GROUP_SPLIT_MODE', 'divide4', 'GLOBAL_SETTING.GCL_SETTING.KNOWLEDGE_TRANSFER_MODE', 'KL_logit_TopDown', 'MODEL.ROI_RELATION_HEAD.USE_GT_BOX', 'True', 'MODEL.ROI_RELATION_HEAD.USE_GT_OBJECT_LABEL', 'True', 'SOLVER.IMS_PER_BATCH', '8', 'TEST.IMS_PER_BATCH', '8', 'DTYPE', 'float16', 'SOLVER.MAX_ITER', '60000', 'SOLVER.VAL_PERIOD', '5000', 'SOLVER.CHECKPOINT_PERIOD', '5000', 'GLOVE_DIR', '/home/yons/scene/VTSCN/datasets/vg/glove', 'OUTPUT_DIR', '/home/yons/scene/VTSCN/datasets/output/SHA_GCL_VG_PredCls_test']' returned non-zero exit status 1.

Oh, the wrong file is maskrcnn_benchmark/modeling/roi_heads/box_head/roi_box_feature_extractors.py, but I mix it up with maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py. I am sorry, and please download these two files again. If you want to reimplement our VTSCN, 'GLOBAL_SETTING.RELATION_PREDICTOR' needs to be 'MotifsLike_GCL' or 'VCTree_GCL'.

But the first bug you raised maybe occur again because the codes are not changed actually.

But the first bug you raised may occur again because the codes are not changed actually. As the first bug shown that File "/home/yons/scene/VTSCN/SHA-GCL-for-SGG/maskrcnn_benchmark/modeling/roi_heads/box_head/roi_box_feature_extractors.py", line 166, in make_roi_box_feature_extractor return func(cfg, in_channels, half_out, cat_all_levels) TypeError: init() takes 3 positional arguments but 5 were given The ROI_BOX_HEAD.FEATURE_EXTRACTOR is FPN2MLPFeatureExtractor by default, which should take 5 arguments(roi_box_feature_extractor.py, line55): def init(self, cfg, in_channels, half_out=False, cat_all_levels=False): Maybe you can debug and check if the ROI_BOX_HEAD.FEATURE_EXTRACTOR is set correctly.

You are right. It has indeed reappeared again. Thank you for your guidance. I'll give it a try to check. If you have any new ideas, please contact me as soon as possible. I would greatly appreciate it.

I have downloaded my code and rerun them, and no bug occurs.
The GLOBAL_SETTING.RELATION_PREDICTOR is set as 'MotifsLike_GCL', and GLOBAL_SETTING.BASIC_ENCODER is set as 'Motifs'.


request help: plugin was unvalid

Issue description
我在用apisix的时候自定义编写了插件，但是插件不生效，烦请看下附件是我的配置cdd-radix.lua(在faq.zip) 是我的插件代码，请帮忙看下有什么问题,图在faq.zip里
环境 linux centos
安装方式 ： npm -ivh  apisix-1.3-0.el7.noarch.rpm     version1.3
安装插件
faq.zip
1.在/usr/local/apisix/apisix/plugins 下面添加了 cdd-radix.lua 图一所示
2.在/usr/local/apisix/conf 下修改 config.yaml  图二所示添加- cdd-radix
应用插件
curl http://<IP_ADDRESS>:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/order-service",
"plugins": {
"cdd-radix": {
"uri_prefix": "/order-service",
"auth_uri": ["/order-service/refund/:refund/*"]
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"<IP_ADDRESS>:11003": 1
}
}
}'
返回 ：{"error_msg":"unknown plugin [cdd-radix]"}   另外apisix stop/reload/restart 都试了执行无效
Environment

apisix version (cmd: apisix version):1.3
OS:centos7

@vimilai can you create a PR for this issue? We can see all the changes in this way. I don't see any problems from the issue description.

sorry，I found  that the plugin start  has some error in error.log, So I  was rewrite the lua script,it's success,In additon ,the 'init()'  method was invalid? it's must be wrote 'init_worker()'?

the 'init()' method was invalid?

please provide your case, you can create a PR for this case. I think we can close this issue first.


Add generic to onCleanup

I think that the types for onCleanup could be better.
Since it returns the fn param as is, a generic could be used to keep the type of its return value.
const cleanup = () => 123

// before
onCleanup(cleanup) // T: () => void

// after
onCleanup(cleanup) // T: () => number

Probably has almost no value, but it's "more correct" 🤷♂
But it could make it a little bit clearer that the returned function is the one passed in, and not a function to unsubscribe from the cleanup as it is also a common API pattern

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 88.233%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1292

Relevant Lines:
1389

💛  - Coveralls

Thanks.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 88.233%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1292

Relevant Lines:
1389

💛  - Coveralls


strict-dynamic not working on Next 12.2

So I just upgraded my dependencies and that includes updating Next to 12.2 and next-safe/middleware to 0.7.0. I also moved to the new middleware csp and getCspInitialProps and moved pages/_middleware.ts to root folder and renamed it to middleware.ts. I thought it'd work, however, what I got was
[strictDynamic]: Internal error. No hashes or nonce have been added to CSP. Switch to report-only mode to not break the app and to let you know about this. { errorCsp:
   { 'default-src': [ 'self', 'blob:', 'https://pokeapi.co' ],
     'object-src': [ 'none' ],
     'base-uri': [ 'none' ],
     'img-src': [ 'self', 'https://pokeapi.co' ],
     'connect-src': [ 'self', 'https://pokeapi.co' ],
     'style-src': [ 'self', 'unsafe-inline' ],
     'script-src': [ 'strict-dynamic', 'https:', 'unsafe-inline' ] },
  err:
   [Error: The request.page has been deprecated in favour of `URLPattern`.
     Read more: https://nextjs.org/docs/messages/middleware-request-page
     ] }

It turns out that req.page has been deprecated, but this middleware is still using it in middleware/strictDynamic.ts, or precisely, middleware/utils.ts/fetchHashes. For script-src, I got 'strict-dynamic' https: 'unsafe-inline', so it would have broken my whole app had it not been set to report-only :( I hope this will be fixed soon, thanks :D
Source: https://github.com/DuCanhGH/react-18-nextjs/blob/fc713ac116b9aa8cfdc9649ea03a2ff6eace42bb/middleware.ts
Page: https://react-18-nextjs.vercel.app/

Hi @DuCanhGH
thanks a lot for reporting this quickly. I will create a fix today for this and release a 0.7.1. I knew that something would break there eventually, with all the changes to middleware :D.
But it's stable since 12.2, so I think breaking changes like this won't happen anymore

@nibtime nice, thanks for the quick response :D

Hi @DuCanhGH  @philhack
thought this was a 15min fix, turned out to be 15h 😁.  It turns out that middleware now runs on any requests, so I had to provide some additional abstractions and do an internal redesign without req.page.name (there seems no new equivalent).
I just released 0.8.0 with updated README to NPM
Cheers, and thank for reporting this bug!

@nibtime nice! Gotta test it tomorrow :D

@all-contributors add @DuCanhGH for bug


+1 icon, + 2 links

Icons addition information

Added

Nothing Gallery (com.nothing.gallery)
Linked

Game Space (com.neoteric.gamespace → game_space.svg)
Dolby Manager (co.aospa.dolby → dolby.svg)

I have taken into account the Lawnicons guidelines for you. In case of creating new icons for Lawnicons, I suggest you compare and analyze the latest changes.

FYI: Initially, the build went wrong, so I prepared the cancellation, but after the merge, the build went without errors.


Only increase fixableCount for fixable issues

Description
While working on #481, I noticed that the fixableCount property had an incorrect value. Upon investigation, I found that issues with severity zero are still being included in the count for how many issues can be fixed. This is misleading, as running phpcbf does not fix these.
Unfortunately there don't appear to be any tests which cover this functionality, so getting suitable test coverage may be considered a blocker to this pull request.
Reproduction details
In order to reproduce this bug, run the following commands:

php bin/phpcbf autoload.php to fix any fixable errors. Notice that there are no errors reported as fixable.
php bin/phpcs --cache=local-test-file.json autoload.php to create a cache file. Notice that there are no errors reported (fixable or otherwise).
jq < local-test-file.json '.["'$PWD'/autoload.php"] | "\(.errorCount) errors, \(.warningCount) warning, \(.fixableCount) fixable issues"' to see the number of errors/warnings/fixable recorded in the cache.
I expect these to match the output of phpcs, but they are all non-zero.

Suggested changelog entry
Fix bug where internal property fixableCount was incorrectly including issues with severity zero.
Related issues/external references
This is related #481 - without this change, that pull request is somewhat less effective.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)

[x] This change is only breaking for integrators, not for external standards or end-users.

Documentation improvement

PR checklist

[x] I have checked there is no other PR open for the same change.
[x] I have read the Contribution Guidelines.
[x] I grant the project the right to include and distribute the code under the BSD-3-Clause license (and I have the right to grant these rights).
[ ] I have added tests to cover my changes.
[x] I have verified that the code complies with the projects coding standards.
[Required for new sniffs] I have added XML documentation for the sniff.

@fredden While I understand this is related to the other PR, I can't actually seem to create a (test) situation where I can reproduce an incorrect fixable count, let alone see a difference with your PR.
If the fixable count was incorrect, it should also show an incorrect number in the reports, but it doesn't.
So, yes, without a reproduction case proving there is actually a bug (which I haven't been able to find), I don't think this change should be accepted. Oh and if a reproduction case can be designed, then it can also be translated into a test, which should then be added to the PR.

@jrfnl I have written some steps to reproduce the problem and added these to the pull request description. When writing these, I realised that the problem is much larger than I'd initially thought. I'll mark this as a draft while I work on a solution.

@jrfnl I have written some steps to reproduce the problem and added these to the pull request description. When writing these, I realised that the problem is much larger than I'd initially thought. I'll mark this as a draft while I work on a solution.

I still don't see the problem. The cache records the severity and takes that into account correctly when replaying the errors. The fact that a number, which is only for internal use and is not exposed to the outside world, doesn't look right to you, doesn't make it wrong.
P.S.: not sure what jq is supposed to do, but not a command which works.

@fredden and me discussed this PR in a call. Basically, this PR is blocked until the cache feature has proper (full) test coverage, so we can be sure nothing breaks with this change.
Closing this PR until those preliminaries are fulfilled. Once they are fulfilled, I'm perfectly happy to revisit this PR and re-open it.


Remove spurious newlines from generated HTML

I have no idea why this fixes it, but I know that it does.

.... That was anti-climatic.

http://matrix.org/speculator/spec/147#put-matrix-client-api-v1-rooms-roomid-state-eventtype-statekey looks wrong..


Add global-like locking

The new khepri_lock module has functions that create and release locks similarly to global:set_lock/3 and global:del_lock/2.
The main difference between the locks in khepri_lock and global is that recursive locks must be released as many times as they are acquired with khepri_lock and only need to be released once per process with global.
The APIs are similar for the most part except that khepri_lock moves the characteristics for locks like recursivity and exclusivity into options. global:set_lock/3 takes an Id argument in this shape:
{ResourceId :: term(), LockRequesterId :: term()}

The ResourceId term corresponds to the LockId argument in khepri_lock functions.
In my opinion, the LockRequesterId is a rough edge in global's lock API:

For a fully exclusive hold on the lock, you must provide a completely unique term (for example with erlang:make_ref/0).
For a recursive lock that is exclusive to the process, you must provide a term unique to that process that can be reused. This is most commonly provided with self/0 from what I have seen.

It is easy to mistakenly provide an Id term which uses a non-unique term for the LockRequesterId and changes the characteristics of a lock. In particular, if the Id term accidentally uses a constant for the LockRequesterId, the lock is non-exclusive and has no actual locking effect.
In khepri_lock this is replaced with separate explicit options: recursive to control the recursivity and group to control which processes (or group of processes) may acquire a lock.
khepri_lock also allows controlling whether a lock should be released when the process which acquired the lock exits through the release_on_exit option.
Local and cluster-wide locks are implemented separately: local locks use a gen_server and are very similar to global:set_lock(Id, [node()]) except for the change in behavior for releasing recursive locks. Cluster-wide locks use the khepri_machine for a store and are not automatically released when the process that holds the lock exits by default.

Some thoughts from working with these locks here and in the server:

Should we just use global:set_lock/3 for local locks?

global:set_lock/3 doesn't use any distribution/networking for local-only locks.
global:set_lock/3 treats recursive locks differently, so we would need to modify or remove the concept of recursive locks for khepri_lock if we choose to use global:set_lock/3.
The downside with using a new gen_server is that the khepri application must be started before calling khepri_lock:acquire/4.
Alternatively, we could entirely remove local locking from Khepri and only implement cluster-wide locks. (As opposed to using global:set_lock/3 under the hood in khepri_lock:acquire(StoreId, LockId, local, Options).)
The upside of implementing local locks in Khepri is that we could implement khepri_lock:acquire_many/4 in the future which could acquire multiple locks atomically. This can't be done with global.

Should cluster locks be removed when the Ra cluster restarts?

It's a little awkward that local locks are not persistent but cluster locks currently are persistent.
I'm not sure that there is any upside to having locks persist across restarts.

I am leaning toward removing local locks and saying that those should use global:set_lock(Id, [node()]). That would clear up the issues with the release_on_exit option for local locks and the awkwardness around local locks not really use the StoreId parameter. The downside is that we can't add features to those like acquire_many and info, but I think that's ok. What do you think?

After thinking about this a lot more, I agree with you. Khepri wouldn't bring much value for local locks compared to global. The library should focus on its benefit, i.e. a cluster-wide locking mechanism with clear semantics.
It makes the patch simpler and this is a feature we actually need in RabbitMQ, so it will be exposed to a real world use.

I like the idea of a countdown for release_on_exit and responding differently based on the exit reason. I haven't looked into that and using a timeout for acquiring the lock next

We haven't needed khepri-based locking in the server yet and it seems like there might not be much value of locking in Khepri vs. global:set_lock/global:del_lock. We can revive this PR if we find a nice use-case but I will close it for now


Download blocked and flagged as Malware

so chrome itself blocked my download attempts and upon scanning the links with totalvirus, found three services listed https://github.com/codemakerai/codemaker-cli/releases/download/v0.0.14/codemaker-cli_Windows_x86_64.zip and https://github.com/codemakerai/codemaker-cli/releases/download/v0.0.12/windows-amd64.zip as being a virus. What's with that?

I am unable to reproduce this behavior on Chrome on MacOS in which the download success correctly. If you have any doubts about the downloads, you are more then welcome to build the code directly from source code.
We will try to reproduce this issue.

I am unable to confirm that there is anything wrong with the artifacts that are built. This project is open source so that anyone can inspect the code base.

Now you can inspect the code base and see that the only thing that the code is doing is integrating with our SDK and executing the CLI commands, there is no other code there that is not performing the above task.
I went as far as to verify that my build toolchain was not affecting the result and built the artifact through a clean docker container.
FROM golang:latest AS build
USER root

WORKDIR /src

ENV CGO_ENABLED=0

COPY . .

RUN GOOS=windows GOARCH=amd64 go build -o /out/example

docker cp build:/out/example - > codemaker.exe

And once again uploaded it to the linked website. It is still reporting a malicious code: https://www.virustotal.com/gui/file-analysis/ZjY0ZDc2MTM5ZWRiZjUzMTkwMmIxYmJhNzE1MzNmOGU6MTcwNjEyODA2NA==
Which is impossible. The findings appear to be false positives in this case.

I actually reached out to Virustotal and reported false and misleading results reporting. They have replied with the claim that they don't take responsibility for the results the show on their website.
VirusTotal only aggregates data from a variety of vendors. We produce no verdicts of our own and as such, we can’t modify these results. We are not intended to be an authoritative reputation engine but rather provide intelligence and context to users so that they can make the best decision. 1/60 and even 5/60 doesn’t automatically mean “Bad”, and 0/60 doesn't always mean good. Each decision on whether something is malicious ultimately the responsibility of users or the security vendors who use the data to improve their services.

After a quick Google search, it appears that recently there had been a change on the way virus scanning tools handle Go compiled code on Windows incorrectly marking any code that was built with Go as malicious.
https://www.reddit.com/r/golang/comments/1729tuc/my_programs_keep_getting_flagged_as_viruses/
And this is correct. Even a Go hello world application is reported as invalid.
Steps to reproduce:

Create a "Hello World" app in Golang.
Compile it "GOOS=windows GOARCH=amd64 go build -o malware.exe"

Scan: https://www.virustotal.com/gui/file/57ca0d61aa778be3c7614a00181ab8a8a1a53dd417983ba1b0d94d17cb1fe3ea?nocache=1
There is on thing we will try to do to mitigate that, but I am not sure if that will have any effect.


Add CI tests for CSI iSCSI

Restructure the CSI test javascript files so
that we can repeat the test suite with different
parameters for different protocols.
Update workflow to run CSI nbd and iscsi as well.
Run iscsiadm as chroot on CI/CD
Remove ISCSIADM environment setting from mayastor-daemonset
yaml.
Using the environment variable it is still supported,
but we fallback to trying to use in order

/bin/mayastor-iscsiadm
iscsiadm

Precise iscsiadm login to target
Streamline iscsi disk attach
- Remove rescan
- use "discovery" instead of "discoverydb"
- check output of discovery command before iscsi login.
Set the csi iscsi test timeout to 120000

@jkry as requested, see https://github.com/openebs/Mayastor/pull/260/commits/447b35cd6bb024c519fb7ddf219472fc9b3458bf


Bug: an Ayon popup cannot be used as it is behind an Ayon locked frontmost window

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior:
When an assert is raised while publishing from Blender, the error popup appears behind the Publisher window (which is locked as frontmost window), so we cannot click on the popup's "Ok" button, even when using ALT-Tab to try to access the popup.
Expected Behavior:
The error popup should appear as the top window, not behind other windows.
Version
3.17.7-nightly.5
What platform you are running OpenPype on?
Windows
Steps To Reproduce:
Using the WindowsTray-->Ayon-->Publisher, publish an fbx file.
Select an asset and a Modeling task, and choose the "Model" publish type.
The publish works all right, no errors.
From inside Blender, use the menu Ayon-->Load
Then select the product you just published, and click on RightMouseButton-->Load FBX (fbx)
Blender and the Load gui will immediately froze, and you will not be able to move or minimize the Publish window anymore.
Using Alt-Tab, you will see there is a popup that cannot be raised to front (because the Load gui seems to always be the front-most, whatever you do), and so you cannot click on the popup's "Ok" button.
The Alt-tab only allows me to see a thumbnail of the text displayed on the pop :     Error : No asset group found

Are there any labels you wish to add?

[X] I have added the relevant labels to the bug report.

Relevant log output:
No response
Additional context:
This is on Windows 10.
I have tested on Blender 3.3 and Blender 4, same problem.
[cuID:OP-7543]

@antirotor @iLLiCiTiT can be closed too??

I'm pretty sure this issue has been reported a few times before for Blender. I think whether this can be closed is best tested to see if the reproducable does not occur anymore. At the time this was reported this particular user as far as I know wasn't the only one reporting it.

I have upgraded everything today :

Server 1.0.0-rc.6+202401151731
Addon openpype_3.18.4
Launcher 1.0.0

Then I tested with Blender 3.3.2, on Windows.
The bug is still the same : the popup appears behind other windows, and I can't bring it to front.


Decode quoted-printable html bodies when getting email

Fixes #719

Codecov Report

Merging #729 into develop will decrease coverage by 0.06%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #729      +/-   ##
===========================================
- Coverage    69.94%   69.88%   -0.07%
===========================================
  Files           43       43
  Lines         4163     4177      +14
  Branches       508      508
===========================================
+ Hits          2912     2919       +7
- Misses        1106     1114       +8
+ Partials       145      144       -1

Impacted Files
Coverage Δ

helpdesk/tests/test_get_email.py
97.38% <100%> (-1.41%)
:arrow_down:

helpdesk/email.py
75.3% <100%> (-0.55%)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks!


Which files will need to be updated?

Which files will need to be updated for this project? I am planning on possibly updating it myself, but which files will need to be updated/contain protocols

That would be proto.py. Updating would require you to include all changes made since 1.8 according to the protocol documentation at http://wiki.vg/Protocol_History. It would probably also require that your write custom decoders for new primitives (maybe? I didn't check to see if there is anything new). It's quite fiddly and no easy task.

Seems quite complex, would it even be possible for an absolute noob at coding like me?

To be honest: Probably not. It requires quite a bit of bit-fiddling (in case there are now data types) and a solid sense of how network protocols work and how to debug them in case the decoding goes wrong somewhere. If you have no experience with that, you're in for a rough ride.

Ah right. Well I probably won't do anything then. Sorry for wasting your time, and hopefully you will possibly update it in the near future.

Don't worry. No time wasted :-)
I hope to find the time to update it at some point. But I haven't touched Minecraft in a while (:sadface:), so motivation is a bit low at the moment.

I have found this, and am wondering whether or not this is similar to what needs to be updated. It is on the latest version of minecraft, I am just wondering whether it will be compatible, or is similar. https://github.com/ammaraskar/pyCraft/tree/master/minecraft

Not compatible. The API seems fairly different. But it's looks like it is able to parse newer version of the protocol. Nice find.

Well, since it does include all of the newer protocols, would it be possible to change the format of protocol that fastmc reads?

Not really. It might help if things differ from the documentation on wiki.vg, but that's all. I can't use it directly. Its approach to parsing it quite a bit different.


Codemods

This is a very big and important feature. We should allow users to add codemods for their files in sharec configuration packages.
May be, it should looks like inject in hygen. I don't know at this moment, how to do it better, but I guess - this is a really useful stuff.

Core concept
So, I have two ideas, how to implement this feature.
The first, allow users to ship codemods directly in configuration package:
configs/
  .eslintrc
  ...
codemods/
  mod1.js
  mod2.js
  ...
package.json

If it would be implement this behaviour -- user should not create additional packages and just update sharec and add codemods files.
PROS:

Friendly UX
Easy to ship everything you need in your new project

CONS:

May be, it would be hard to manage configs and codemods in one package. Anyway, it can work only with cli flag, like --mods

The second implementation -- separated utility for packaging only codemods. Like sharec-codemods:
codemodes/
  mod1.js
  mod2.js
  ...
package.json

Then, user should add it to target package.
PROS:

Run without flags as separated utility
Ship codemods separately of main configuration package

CONS:

Unclear execution order on postinstall hook with main configuration package

Codemods files format
Like I said -- I like hygen templates format, but I want to have much cleaner frontmatter.
---
file: string|RegExp
after: boolean|string|RegExp
before: boolean|string|RegExp
---
string

Let me explain.
file
Target filename, or RegExp. Also it can contain wildcards.
webpack.config.js -- will be applied only to root webpack.config.js file
*.js -- will be applied for each js file in root of the project
**/*.js -- will be applied for each js file everywhere in the project
/\S+(js|ts)$/ -- will be applied to js or ts files everywhere in the project

after
Marker for determining injecting place
true -- will be injected at the end of file
// anchor -- will be injected after // anchor line
/^\/{2}\s?anchor/ -- the same as before, but as RegExp

before
Marker too, like after
true -- will be injected at the top of file
// anchor -- will be injected before // anchor line
/^\/{2}\s?anchor/ -- the same as before, but as RegExp

As "core" users, @ai, @sergeysova, @SanderV1992 what do you think about this feature?

Will it be useful, as I see it?

@lamartire sorry, I have no use case for it to have an opinion

@ai I see. If no one will not to have potential use cases too -- I will close this issue and feature too.

@lamartire maybe integrate already existing solution for codemods?
https://github.com/facebook/jscodeshift For example?

@sergeysova good idea. Do you have any need to use this feature?

Not now

Ok, I will freeze this feature now.


[Divider] Add support for vertical middle divider

[x] I have followed (at least) the PR section of the contributing guide.

I'd like to add support for vertical middle divider.
I tried <Divider orientation="vertical" variant="middle" flexItem />  to get a vertical middle divider like the second screenshot below, but it didn't work. Of course we can get the divider by setting margin via style props, but I think this verticalMiddle would be useful.

<Divider orientation="vertical" flexItem />

<Divider orientation="vertical" variant="verticalMiddle" flexItem  />

@unirt Thanks but we encourage developers to add custom styles in this case


Close the open file

How can I close the opened file? I need to close the file because it is a temp file and I need to delete it before exit.

I don't think ReoGrid will open file with a temporarily file. What is the problem?


Made an ipynb file for feature selection

Made ana ipynb file for feature selection which has a better graphical representation of data than the existing file and the observations are stated in a clean and reasonable format.

Thanks for contributing to the repository. Looking more contribution in future.
Join Py-Contributors Community
Discord  • Telegram  • website
Please share your Hacktober Experience on Discord Channel to Encourage more member to contribute to open source.
Happy Coding


arabic language ! help

the arabic language on renpy translator is worng in the games ..  plz check the issue !
The translation is reversed ..

Thanks for your issue, already fixed in latest


The plugin works great but fails to fully work if something else broke the /author/name path

I had something installed called Yoast SEO (think I wanted a particular type of XML sitemap some time in the distant past) that as a byproduct of whatever it was trying to do ended up redirecting the /author/myname path on workdpress to the root of the site, which meant I wasn't discoverable on activitypub even though the webfinger bit was working fine and I could see the hits to the webfinger URL on the apache logs.
I don't know if it would be possible somehow to make diagnosis of this easier, some way to say your webfinger is fine, but your author bio is borked.
Not really the fault of this excellent plugin in any way, but it cost me some time and some folk might not get to the bottom of it if they are in a similar situation with some conflicting plugin.

Thanks a lot for that comment! This is what fixed the problems I were having.

Yes, this is a bit sad, because this is a natural in core implemented page, I thought I could re-use (I always prefer to re-use something instead of build a custom thing) the page, but it seems that I have to build a custom profile page that will/can not be deactivated by SEO plugins :(
Have you seen the messages in the site-health area of WordPress? I tried to check such issues to give advice like activating profile-pages or that the WebFinger endpoint might not work because of letsencrypt.

I've seen those, but only just now, after fixing the issue by deleting that naughty other plugin. Now they are all marked as passed.
Thank you a lot for this super helpful plugin! It is really important and many users rely on it, I read about it all the time. I am what others might call a noob, I am interested but have close to no knowledge in programming. That's why I am struggling a lot with some detail questions. One moment the profile view in Mastodon is up to date, the next moment it is not. No idea why. And I know it's possible to upload a profile picture, but forgot how. Maybe someone can help collecting questions and answers – I'm sure they pop up more than once. The plugin itself is absolutely great.

Maybe just an update to the FAQ or installation instructions would be good, pointing out that both the webfinger and /author/name page are the things to troubleshoot, at the moment you would only expect the webfinger part to be the problem.

Do you think that more people are reading the FAQ instead of the site-health? I really think the best idea is to have a "hidden" profile page that always works, that returns the JSON if called with Accept Header application/activity+json and that redirects to the author page if "normally" called. That would fix the problem and would be backwards compatible with the author page, that should still work if enabled.
But you are right, in a first step it would be good to have at least the information in several places!

ah OK, I hadn't checked site-health - there would have been a very helpful error message there if I did.

hmmm, @AlanBell @The-boop-13 any ideas how to propagate that a bit better?

because I think the site-health checks, at least shows where the problems are, which does not fix them, but at least helps to understand the problem, which hopefully leads to the fix.

so https://wordpress.org/plugins/activitypub has some troubleshooting guidance for subdirectory installations, it would be good to have a FAQ section telling people to check their site-health page. The problem isn't that it is hard to fix, but that a reasonably clueful person could spend a lot of time validating the webfinger output - the bit they just installed, when the problem is elsewhere.

@cr0ybot I also thought about that, also because a lot of plugins are disabling/redirecting the author pages.

I think I may be running into this problem, but as a layperson just trying to get this working on my Wordpress site, I have no idea how to correct it.

If you open the Weblink to your authors page on your blog and get redirected to your main page, you are affected by this. Some other plugin broke the author website which results in the activitypub-plugin no longer working correctly.

I'm helpless here as well. Maybe someone else has an idea.

@huckabarry can you share the author URL and the webfinger id?

@huckabarry can you share the author URL and the webfinger id?

Sure, it's just a test blog at this point.
https://inthedeltawaves.social
Two users:
bryan
bryan.robb/(bryan-robb when using the author page)

not really the place for it, but whatever :)
probably due to bouncing between inthedeltawaves.social and fxu.gkz.mybluehost.me
I would imagine you are expecting one of these to work:
<EMAIL_ADDRESS><EMAIL_ADDRESS>and neither do as far as I can tell.

not really the place for it, but whatever :)
probably due to bouncing between inthedeltawaves.social and fxu.gkz.mybluehost.me
I would imagine you are expecting one of these to work:
<EMAIL_ADDRESS><EMAIL_ADDRESS>and neither do as far as I can tell.

I'll delete my comments. Thanks

The .well-known URL seemt to redirect to the main page.

I just made a clean installation on a machine today (ubuntu 22.04, php8.1, apache, self-installed wordpress that apparently works correctly, but unfortunately the installation of activitypub does not trigger anything to handle /.well-known/webfinger. The wordpress blog is at the root of sigcrap.org. I see something in the activitypub.php::add_rewrite_rules() that should be triggered if \class_exists( 'Webfinger' ) and since this is provided by class-webfinger.php, I assume it gets called. At that point I'm not sure what happens during the installation, but somehow the rewrite is not triggered. What should I do to debug this? (I have root).

@kmccurley you can re-create all rewrite rules, by loading the permalinks page and hit "save" (you do not have to change anything).
But it seems that you created a static file, because it returns a JSON: http://sigcrap.org/.well-known/webfinger/
If there is a static file, it will never call the rewrite rule... so to check it, you have to remove the static file!

the http:// URL is apparently being caught by a different virtual host, so I removed that file. I was looking for the https url to work.
Reloading the permalinks page and saving didn't seem to do anything. I don't see a rewrite rule there for .well-known/webfinger

It seems that you have the index.php in your rewrite setup: https://sigcrap.org/index.php/.well-known/webfinger?resource=sjdas

That would seem to be a conflict with the ActivityPub plugin, so I changed it to something else. Now it answers webfinger, though exactly how is something not obvious to me. When I changed my rewrite rule, it created a .htaccess file for the site.
This is actually related to why I have stopped using wordpress several times. The setup is always incredibly fragile, and any updates are likely to break any customizations. I can't imagine what it must be like to maintain a plugin for it.

Any chance of allowing a "custom" author URL?
I know it should never change, but maybe that can be left up to the user to decide? Maybe through a filter of sorts, for tech-savvy users only? Now there's a hard check to see if the author URL has been "tampered with." It'd be nice if this could be overridden (somehow).
For instance, on one of my sites, I might choose to only federate a specific CPT, but my profile will point to the generic author archive, which would only display "regular" posts. (Just one example.)
This could be confusing (shouldn't we try to return the same content for [different representations of] the same URL?), and I might instead prefer to have my "profile" tied to a different, custom "author archive" that shows ... instances of that particular CPT.
(I know this can potentially open the door to a multitude of bugs ...)

I really think the best idea is to have a "hidden" profile page that always works, that returns the JSON if called with Accept Header application/activity+json and that redirects to the author page if "normally" called.

Oh, wait, guess I'm going to have to try this first. (Even if I'd like to be able to change the actual URL.)
Will figure something out!

I am currently working on the blog-wide user ( #1 ), and this one has no author URL, so I am working on something like https://example.org/@username for all users. For real useres, these URLs will redirect to the author pages if not called with the correct Accept header.

Ha, cool. Looks like a proper solution for most single-user blogs, too.

Here is the WIP: https://github.com/Automattic/wordpress-activitypub/pull/342


Ovito is broken [no Qt]

Issue description
The Ovito package nixpkgs.python37Packages.ovito is broken. This is likely not meant to be built in the pythonPackages portion of nix in any case, and I notice it is also not meant to run on hydra.
The Error
# No GUI
ovitos script/test.py
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
# Or
ovito

Steps to reproduce
nix-env -i ovito
# Check commands above

An alternate way to reproduce this is with the following shell.nix file:
# shell.nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs; # Don't keep writing pkgs.
  mkShell rec {
    buildInputs = [
    python37Packages.ovito
    ];
    shellHook = ''
        stty sane
        export TERM="xterm-256color"
                '';
}

Then simply run:
nix-shell shell.nix --run 'bash'

Technical details
:
  /nix/store/dqjjvs2zaj7h454k7zr1lyd7mh95k1vm-nix-info
copying path '/nix/store/dqjjvs2zaj7h454k7zr1lyd7mh95k1vm-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 4.20.0-1-ck-haswell, Arch Linux, noversion`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.1.3`
 - channels(haozeke): `"nixpkgs-19.03pre164964.b0f40b78513"`
 - nixpkgs: `/home/haozeke/.nix-defexpr/channels/nixpkgs`

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

This one is a common problem (#24256). A workaround, that I usually use, is to do nix-env -iA qt5.qtcore.

@HaoZeke thank you for raising this issue. I was the one that packaged ovito for nixpkgs https://github.com/NixOS/nixpkgs/pull/46846.
I wish that ovito was built on hydra but it was stated that it takes too long to builld. Hopefully this changes with enough people voicing that they need the package.
I could not reproduce the issue that you had meaning that it most likely is the issue stated above with qt.
nix-shell -p ovito

I ran on commit eebd1a9263716a04689a37b6537e50801d376b5e from 1 day ago

Thanks for packaging it! @costrouc. However I made a bit of a mistake in my bug report. The bug is when the package is run in a pure environment. Namely, the error is when you do:
nix-shell -p ovito --pure

The fix is also correspondingly trivial, I will add a pull request to get the exact dependencies listed.

@verprbl I can't seem to run that command.
nix-env -iA qt5.qtcore
error: attribute 'qt5' in selection path 'qt5.qtcore' not found

@HaoZeke Sorry, I meant qt5.qtbase.


add -fPIC for cxx_cc so that it can link in clang properly

Fixes linking in clang toolchains, e.g. https://github.com/dtolnay/cxx/issues/1399

This looks odd to me. -fPIC is something that needs to be seen by every C++ compiler invocation in a whole build. It isn't something that individual cc_library targets should be deciding to pass or not pass. Do you have more context about why this is the right fix?

Ultimately, I was just following clang's suggestion during trying to get it all working with clang in https://github.com/dtolnay/cxx/issues/1399
/usr/bin/ld.gold: error: bazel-out/k8-dbg/bin/external/crate_index__cxx-1.0.130/libcxx_cc.a(cxx.o): requires dynamic R_X86_64_32 reloc against '__gxx_personality_v0' which may overflow at runtime; recompile with -fPIC

I have great stake in how this is done, but this is the only thing that fixed it for me when building with a clang cc toolchain - have you been able to build it all in Linux with clang some other way?

Sorry I meant "I have no great stake in how it all gets done", I just need to be able to link rust and C++ and cxx bindings in both gcc and clang in bazel.

Ok I just added it to my bazelrc and that does the same trick.  I guess I don't need this merged after all, but it's here if you want it.

That said, I have other issues... when compiling with -fsanitize stuff, it complains that that particular archive is missing __UBSAN symbols etc.


Remove unreachable BC layer

Ups, seems like I missed something in 84a2b7c458cab2bf88c5678744e7631dcd54f9e6 :smile: Thank you @chalasr!


[ISSUE #7803] Add try catch for lock and unlock

Which Issue(s) This PR Fixes

Fixes #7803
Brief Description
Add try catch for lock and unlock

How Did You Test This Change?

Codecov Report
Attention: 27 lines in your changes are missing coverage. Please review.

Comparison is base (1784213) 43.31% compared to head (422f9bd) 43.01%.
Report is 9 commits behind head on develop.

Files
Patch %
Lines

...he/rocketmq/proxy/processor/ConsumerProcessor.java
42.55%
25 Missing and 2 partials :warning:

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #7804      +/-   ##
=============================================
- Coverage      43.31%   43.01%   -0.30%
- Complexity      9886     9923      +37
=============================================
  Files           1173     1190      +17
  Lines          85047    85948     +901
  Branches       11014    11074      +60
=============================================
+ Hits           36836    36971     +135
- Misses         43646    44406     +760
- Partials        4565     4571       +6

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


访问localhost出现错误

Windows环境下，在命令行启动pyspider，然后访问http://localhost:25555/ ，页面空白，只有一个提示method not allowed!
用pyspider或pyspider all启动都不行，Google后发现有人提到改host的解决方式，改后问题依旧。

why do you visit localhost:25555, which is a port for xmlrpc.

谢谢你的回复。
我按照Read me上安装了pyspider，并使用http://localhost:5000/ 访问，Firefox下显示 “Unable to connect”，无法访问。控制台提示“Web server running on port 25555”，并没有其他错误提示，所以才会访问http://localhost:25555/

where show the unable to connect message?
On Thu, Oct 29, 2015 at 4:33 AM crushglass<EMAIL_ADDRESS>wrote:

谢谢你的回复。
我按照Read me上安装了pyspider，并使用http://localhost:5000/ 访问，Firefox下显示 “Unable to
connect”，无法访问。控制台提示“Web server running on port 25555”，并没有其他错误提示，所以才会访问
http://localhost:25555/
—
Reply to this email directly or view it on GitHub
https://github.com/binux/pyspider/issues/309#issuecomment-152073420.

Firefox中显示Unable to connect。
使用curl访问http://localhost:5000/  提示curl: (7) Failed to connect to localhost port 5000: Connection refused
Pyspider的控制台中一直显示
[… scheduler:395] in 5m: new:0,success:0,retry:0,failed:0

Are there any logs like:
[I 151030 10:22:12 app:65] webui running on http://<IP_ADDRESS>:5000/
from console.

No，there aren't

what platform you are using? windows, osx, linux
try run pyspider webui, any error/logs and can you visit localhost:5000.

I'm facing the same issue.. basically pyspider doesn't work with phantomjs.

pyspider phantomjs
ERR_CONNECTION_REFUSED is what I see when I visit localhost:5000.
When I visit localhost:25555
It says... method not allowed!

I ran pyspider on windows.
When I ran "pyspider webui", I got a error message "DLL load failed". It's seems like there are some problems with official pycurl package. So I used unofficial package from
http://www.lfd.uci.edu/~gohlke/pythonlibs/ to instead.
Then I got a new error "AttributeError: 'NoneType' object has no attribute 'loader'".
The problem is a issue of python 3.4.1, the same as https://github.com/binux/pyspider/issues/74
So I updated python to 3.4.3 and ran pyspider.
Dang dang dang dang...!  http://localhost:5000/  appearance!
It's really hard to run pyspider on windows, and really hard to express my mind in English. T^T

这个问题的真实解决方法好像是phantomjs和webui好像得分别两个指令启动

@dhcn
The command pyspider phantomjs is to start phantomjs component alone.
and --phantomjs-proxy="localhost:25555" can been set in config.json.
and if you are running pyspider with all mode (by command pyspider or pyspider all) and phantomjs is started successfully, the argument phantomjs-proxy will be set automatically.


Missing instructions

[Enter feedback here]
Followed the instructions. Where is blazorWebView1 coming from? VS is giving me an error that it can't find this. I see no reference to this name anywhere else in the doc.

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

ID: b0b88d48-74df-8dc4-446d-121e65b552ab
Version Independent ID: b0b88d48-74df-8dc4-446d-121e65b552ab
Content: Build a Windows Forms Blazor app
Content Source: aspnetcore/blazor/hybrid/tutorials/windows-forms.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @guardrex
Microsoft Alias: riande

You probably accidently dragged over a normal WebView instead of a BlazorWebView from the Toolbox.
Look again and see if that's what happened. If so, leave this open because I think the topic can say that these two are SxS in the Toolbox and one has to be careful to get the right one.
blazorWebView1 is what VS is going to auto-name it when you drag it over.

In the image ...

The WebView2 above it is the wrong one. In fact, I need to double-check the next image after that one that shows the control as "WebView2." That doesn't look right ... BUT ... we are in preview ... so it wouldn't surprise me either way that the image is incorrect (bad doc! 😄) --OR-- the control actually says "WebView2" after it's dragged over (bad framework! 😄). We're working the 🐞 out of these preview docs right now before final release, which is coming soon.

You probably accidently dragged over a normal WebView instead of a BlazorWebView from the Toolbox.
Look again and see if that's what happened. If so, leave this open because I think the topic can say that these two are SxS in the Toolbox and one has to be careful to get the right one.
blazorWebView1 is what VS is going to auto-name it when you drag it over. The update can call this out as a sub-step there so that devs know that they have the right one in the form.

This was the issue, I selected the wrong WebView component. I deleted the old one and added the correct one and the code then worked.

Ok ... yeah ... I think that's something that I can fix here and in the other two tutorials with a bit more text and a red :x: on the regular WebView.
Thanks for writing in. Leave this issue open. It will close when the PR merges.


Update cache-migration-guide.md

Fix typo

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

Looks good; merging.


After first try, the second try isnt working due to APname mismatch

I tried to flash OpenBeken but halfway down the script it couldnt find the firmware file due to me not putting it in the correct dir.
Now trying again it fails once more because now it has an AP called A-6349 and not Tuya Smartlife AP.....
Any workaround?

It shouldn't fail to find an A- prefixed AP, it is designed to pick that up just the same.  What is the actual log output?  Simply restarting the process should have worked fine.  You may need to use the -r parameter.

Sorry, but i cannot reproduce because i went oldschool and went UART.
Thank you for your reply,. Good to know. Ill link this info to a forum page i made about dismantling:
https://www.elektroda.com/rtvforum/topic3963536.html


[AMD] Fix an issue with lowering of tt.fp_to_fp

The core Triton is a small number of people, and we receive many PRs (thank
you!).  To help us review your code more quickly, if you are a new
contributor (less than 3 PRs merged) we ask that you complete the following
tasks and include the filled-out checklist in your PR description.
Complete the following tasks before sending your PR, and replace [ ] with
[x] to indicate you have done them.

[ ] I am not making a trivial change, such as fixing a typo in a comment.

[ ] I have written a PR description following these
rules.

[ ] I have run pre-commit run --from-ref origin/main --to-ref HEAD.

Select one of the following.

[ ] I have added tests.

/test for lit tests
/unittest for C++ tests
/python/test for end-to-end tests

[ ] This PR does not need a test because FILL THIS IN.

Select one of the following.

[ ] I have not added any lit tests.
[ ] The lit tests I have added follow these best practices,
including the "tests should be minimal" section. (Usually running Python code
and using the instructions it generates is not minimal.)

Created only for code review purposes.

@zoranjovanovic-ns Can you add a lit test?

And you can follow these instruction to check format
https://github.com/triton-lang/triton/blob/a7e3476e86757780c2528d1100eb7aabe58d8c19/.github/workflows/integration-tests.yml#L142-L147

@zhanglx13 Added lit test case and used clang-format to fix code formatting.

@zoranjovanovic-ns  Can you add some description of this PR?

@zhanglx13 Removed duplicated RUN line and added description in commit message.

@zhanglx13 Removed duplicated RUN line and added description in commit message.

I was referring to the description of this PR, rather than the commit message. We need to let people know what this PR does by checking the title and description.

FYI - OpenXLA uses this particular conversion in a few dozen of the unit tests for its Triton rewriter feature.