text:
timeout transition group TICK doesn't trigger animation in Safari?

Hi,
Have you noticed that the TICK of 17 ms in timeout transition group doesn't seem to be enough to trigger an animation in Safari (desktop or mobile)?  Seems to work great in everything else.
Thanks!
Noah

I'm experiencing the same issue.
Safari does not seem to work properly with TimeoutTransitionGroup.

:+1:
I also appear to be seeing this... not sure if it has always been true or only recently.

Found this issue on ReactCSSTransitionGroup
https://github.com/facebook/react/issues/2104
I tried it, and moving the transition CSS from enter to enter-active fixes this issue on Safari.

wow, that worked for me, too.  i should add that i also had to remove the transition from enter, not just add it to enter-active (i had tried adding it to both, which didn't work). i'll close this, though it'd be nice if the interface mirrored CSSTransitionGroup (minus the timeouts, of course).

@noahgrant Sorry, what would you like changed here?

authors: devgeeks idw111 noahgrant spicyj

repo: Khan/react-components


text:
Apple Watch, iOS9. Light power state does not update

Power switches work fine, even when iPhone is turned off. When other HomeKit app changes the light power state it is not updated on the Watch and I have to switch it twice to make an action. I have no idea if the error is watchOS2 related or it's a bug in the app itself. It's updated correctly on the iPhone.

I'll see if it's fixed on the new HMWatch repo ;)

source: gharchive/issue

repo: KhaosT/HomeKit-Demo

license: mit

license_type: permissive

license_source: bigquery


text:
Camera not found after 0.1.4 update

After the the latest 0.1.4 update, the platform no longer finds the camera.
From the console, I can see the Camera-ffmpeg platform is initiated, but no camera is found/loaded as I do not see the line "XXX camera is running on port XXXXX". As the accessory isn't found/started, I can't add it in Home app.
Is there a way to install the previous version of Camera-ffmpeg? Thanks.

Sorry about that, please try v0.1.5. That should fix the issue.

I'm having same issue :(

authors: KhaosT brianerdelyi ryanchucks

repo: KhaosT/homebridge-camera-ffmpeg

license_source: github-api


text:
[Потенциально] 6 лаба на автомат

Обязательные работы готовы, так что можно пробовать дополнительную.
6 лабораторная работа сделана не прямо сейчас и не на базе нашего текущего приложения — я разрабатывал её уже несколько лет для разных предметов, так что там есть много интересного. Может быть, она подходит на автомат.
Сайт представляет собой интернет-магазин книг. Там есть сессия, корзина, покупки, кабинет администратора. Можно добавлять новые ресурсы (книги) на сайт, и они становятся доступны для покупок. Можно добавлять новых авторов - это как категории. Теперь по пунктам:

Есть фронтенд, причём многократно отполированный — адаптивный и под мобилки, и под разные масштабы/размеры монитора на ПК, и в целом дизайн неплох. Вдохновлялся концептом дизайна хостинга Fandom, где я держу некоторые сайты.
Есть бэкенд на Java + Spring с расширенным CRUD, то бишь пагинация тоже там есть.
Есть самопальный механизм перевода сайта на разные языки при помощи JS. В требования к автомату не входит, но просто интересная вещь.
Есть работа с базой данных, авторизация и регистрация там же, пароли все хэшируются. Чтобы сайт работал, нужно сначала создать базу данных, она приложена в ресурсах.
Юнит-тесты на месте.

Отлично. На автомат вполне достаточно.

source: gharchive/pull-request

license: MIT


text:
Add matte material with parameter "color"

Would you be willing to merge this PR which adds a dedicated subclass for the matte material? It's mostly that currently, with matte being used as an alias for OBJ, one has to set the color parameter via "kd", not "color", and my own sample code then not being compliant with the standard.
FWIW, the only use of matte that I can see in the SDK is found in anariTuturial.cpp, where the diffuse color parameter is not set on the material; i.e., the change set shouldn't break existing behavior.

Thanks, I don't see any issues with this PR and it makes the example device more compliant with the Materials section of the spec.

If you can update the default color to be {0.8,0.8,0.8} I'll merge your PR

Thanks! I just amended that to the original commit.

repo: KhronosGroup/ANARI-SDK


text:
Improvements to the External  Memory and Semaphores conformance tests

External Memory Sharing
a)  Write a test that does external memory sharing only and is not dependent on semaphores being supported.
b) Confirm that EnqueueAcquire and EnqueueRelease calls are being made correctly for all tests.

Semaphores
a) Do cross OpenCL context tests for multiple semaphore  handle types such as sync_fd and opaque_fd .
b) Add a multiple signal - multiple wait test for in-order queues.
c) Test the following queries - CL_DEVICE_HANDLE_LIST_KHR, CL_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR

My comment on semaphore PR https://github.com/KhronosGroup/OpenCL-CTS/pull/1587#issuecomment-1331013946 was mentioned on the 06/12/22 WG teleconference. I think it would make sense before starting any of this semaphore work to have a first step which moves the existing cl_khr_semaphore tests from test_api into its own directory in test_conformance/extensions/

Some comments -
Agree with Ewan that we should move these tests to test_conformance. Filed #1624 to track the same so that it doesn't get lost in comments.
In terms of tests suggested on this issue -
I have updated the description for first item from "External sharing" to "External memory sharing" for better clarity.
I think the tests requested part of 1a) and 1b) can be developed independent cl_khr_semaphore tests under test_conformance/api and need not be blocked by #1624.
Typically external memory and semaphore sharing tests can be broadly categorized as below -

Core semaphore behavior described by cl_khr_semaphore - This is what cl_khr_semaphore tests under test_conformance/api/ test.

The test scenario described by "2b)Add a multiple signal - multiple wait test for in-order queues." is a good example of this category and can be an extension to tests under test_conformance/api/. These tests currently rely on semaphores created by OpenCL and used within OpenCL (largely same context)
cl_khr_external semaphore provides another mechanism to create semaphores – by importing semaphores exported by other APIs. See below for details. Same tests under test_conformance/api/ can be extended to cover external semaphores as well.
We have some changes to address this to consume semaphores imported from test_vulkan. Will update here once  have PR created.

Core external memory/semaphore behavior described by cl_khr_external_memory/cl_khr_external_semaphore. These tests along with one or more handle specific extensions (cl_khr_external_memory_opaque_fd, cl_khr_external_semaphore_win32 etc) can be written in following different settings

OpenCL as producer and OpenCL as consumer (Same API / different contexts): Create memory/semaphores directly in one OpenCL context/process, export it as fd/win32 handle and then import it in another OpenCL context/process using this handle. This is what Balaji is referring to as part of 2.a. in the context of semaphores. This will again require ability to create semaphores within OpenCL as well as export them from OpenCL. We can extend existing tests under test_conformance/api/ to cover this request. 1a) is equivalent example for cl_khr_external_memory. However, this setting will require ability to export memory which is not covered by current specs. So, not sure how we can cover this under this setting. May be @bcalidas has some ideas around this.
Different APIs - Create semaphores in one API (e.g. Vulkan or OpenCL) (Producer), export them as opaque_fd/sync_fd/win32 handle and then import it in yet another API (e.g. OpenCL or Vulkan) using this handle. This again can be subdivided into two
a. With Vulkan or some other API as producer and OpenCL as consumer : test_vulkan here https://github.com/KhronosGroup/OpenCL-CTS/tree/main/test_conformance/vulkan where Vulkan is producer of memory and semaphores.
b. OpenCL as producer and Vulkan or some other API as consumer. This is still missing coverage.

Also, it may be a good idea to review existing tests for missing coverage and file separate issues to track them.

@bcalidas Can we split this issue into separate issues - One to track external_memory test suggestions in (1) and another one to track external_semaphore test suggestions in (2)? I am assuming these will end up being separate tests and (1) need not be blocked on semaphore tests as such.

https://github.com/KhronosGroup/OpenCL-CTS/pull/1629 have been merged.

@bcalidas, @nikhiljnv: Friendly remainder about pending review for 1a (https://github.com/KhronosGroup/OpenCL-CTS/commit/9e83f008f5469af2e13ff4f1c7602351485d14ea).

@bcalidas @nikhiljnv, @EwanC @bashbaug :
Created cl_khr_external_semaphore PR:
https://github.com/KhronosGroup/OpenCL-CTS/pull/1645
Created cl_klh_semaphore PR:
https://github.com/KhronosGroup/OpenCL-CTS/pull/1646
Please review.

@bcalidas, @nikhiljnv, @EwanC, @bashbaug
Created a draft PR for External Sharing 1a task:
https://github.com/KhronosGroup/OpenCL-CTS/pull/1648
In general it is just the same work done in:
https://github.com/KhronosGroup/OpenCL-CTS/compare/main...pj87:OpenCL-CTS:cl_vk_external_sharing?expand=1
but without the proposed changes for test_vulkan_interop_image.

For item 1 b) , https://github.com/KhronosGroup/OpenCL-CTS/pull/1629 provides partial coverage. However, we need to follow-up by re-reviewing external memory and external semaphore tests and adding any missing clEnqueueAcquire, clEnqueueRelease calls.

2 a) needs more enhancements to existing tests.
2 b) is not needed after clarification to semaphore reset behavior (https://github.com/KhronosGroup/OpenCL-Docs/issues/883)

Qualcomm will follow up with PRs for 1 b) and 2 a ).

https://github.com/KhronosGroup/OpenCL-CTS/pull/1854 updates semaphore behavior to avoid export of imported semaphores and adds support for the SemaphoreReimportSyncFD command.

Qualcomm will follow up with PRs for 1 b) and 2 a ).

@bcalidas is it possible to sum up current status of this issue ? It looks to me like part of it is covered meanwhile remaining part is in progress, could you confirm that ? Thanks !

https://github.com/KhronosGroup/OpenCL-CTS/pull/1899 covers 1b,
https://github.com/KhronosGroup/OpenCL-CTS/pull/1886 covers 2a
This issue can now be closed.

Closing as discussed in memory subgroup call of June 4th, 2024.

authors: EwanC bcalidas nikhiljnv pj87 shajder

repo: KhronosGroup/OpenCL-CTS


text:
Remove draft state for loader spec

The OpenXR-SDK-Source has implemented and used new loader based on this spec for OpenXR apps. The loader implementation based on this spec has been released to normal users multiple version. IMO, it's time to remove draft state from spec title.
cc @rpavlik .

Looks like Azure CI has problem when initializing build tools:
Generating script.
========================== Starting Command Output ===========================
"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\7b35feca-b8bd-4b2f-9bc9-31c773233dce.cmd""
CMake Error at CMakeLists.txt:25 (project):
  Generator

    Visual Studio 16 2019

  could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "D:/a/1/s/build/CMakeFiles/CMakeOutput.log".
##[error]Cmd.exe exited with code '1'.
Finishing: Generate build system

It's not related to this PR's changes.

Thanks for this! Group agrees this was an oversight. Approved to merge, I'll just have to figure out what happened to ci.

authors: rpavlik utzcoz

repo: KhronosGroup/OpenXR-SDK-Source


text:
Texturing mapping U coordinates are wrong when importing into BabylonJS

@bghgary @blgrossMS This in reference to #111. I see that the fix is to negate the X part of the coordinate. But doesn't this break the texture mapping U coordinates? When I import a GLTF exported with this code, the texture mapping is flipped horizontally.  Since BabylonJS doesn't reverse the X coordinate by negating it, rather BabylonJS rotates the mesh by 180 degrees, is this conversing broken?
Either the export doesn't negate the X but does a 180 degree rotation or BabylonJS negates the X coordinate and not do the rotation.
Thoughts?

@blgrossMS Sorry for not adding additional info why I closed it.  It was actually a user error on my part. Although, the normal mapping and metallicroughness texture is not working correctly through the exporter, which I will take a stab at fixing.

repo: KhronosGroup/UnityGLTF


text:
layers: Update Valid Usage enums in log_msg

Update Valid Usage enums in core_validation and update
their status in the VU database.
This completes Jira task VL-65.
Change-Id: I51ed327ad65f3a5d1f64bba01ad576c6656f88df

Note: deleting a branch too quickly after pushing to master can cause a race with Travis-CI.
Travis-CI will begin its integration builds, but that can fail if the branch is deleted too quickly.


text:
FI: Move CLI Parsing Framework into a Separate Library

What is the Problem?
Not so much a problem at the moment but if the platform class is removed with #438 then the CLI Parsing should be moved to event handlers which take in reference to all resources they modify. At the moment the platform triages all.
What is the proposed Solution?
Port Plugins to the new framework paradigm
Examples
in main(){
  EventBus bus;

  PluginSet plugins;
  plugins.add(SomePluginWhichChangesTheWindow(window));
  plugins.add(SomePluginWhichControlsLogging());

  bus.import(plugins.handlers());
}

Issues

Plugins is in a good state to port but it would mean that handling applications on desktop would need to change

With the mentioned #438 having been closed some time ago, do we still need/want this?

Closing this for now. I don't think we're going to implement this.

authors: SaschaWillems TomAtkinsonArm

repo: KhronosGroup/Vulkan-Samples


text:
compile fixes for gltf cleanup pass

compile fixes for gltf cleanup pass

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

authors: CLAassistant gkennickell


text:
Enable Address Sanitizer in Linux CI

Fixes #968

CI Vulkan-Tools build queued with queue ID 252917.

CI Vulkan-Tools build # 1523 running.

CI Vulkan-Tools build # 1523 passed.

authors: charles-lunarg ci-tester-lunarg

repo: KhronosGroup/Vulkan-Tools


text:
controller update to V7.2.95

Hello,
Unfortunately, since the controller update to V7.2.95, the connection no longer works.
see log:
[04/11/2022, 06:57:32] [UniFiPoeControl] Removing 4 device(s)
[04/11/2022, 06:58:33] [UniFiPoeControl] Setting up new accessory: USL24P (MAC: xxxxx) / #1 (POE AP-EG)
[04/11/2022, 06:58:33] [UniFiPoeControl] Setting up new accessory: USL24P (MAC: xxxxx) / #2 (POE AP-OG)
[04/11/2022, 06:58:33] [UniFiPoeControl] Setting up new accessory: USL24P (MAC: xxxxx) / #3 (POE AP Aussen)
[04/11/2022, 06:58:33] [UniFiPoeControl] Setting up new accessory: USL24P (MAC: xxxxx) / #4 (POE AP -Keller)
[04/11/2022, 06:58:33] [UniFiPoeControl] Removing 4 device(s)

I find my PoE control still works with controller 7.2.95, however the accessory is removed and reset every minute.
What that means is that the switch in Home. app keep disappearing and being added back in the default room (which is a bit of a pain as the device I am controlling is in another room!).
Also, Home.app automations don't work as the PoE switch is removed and added back with another UIDD so disappears from any automations.

Having upgraded to Unifi Network version 7.3.76 everything appears to be working properly now.

Hello,
unfortunately having the same issue even with 7.3.76:
[12/30/2022, 11:15:30 AM] [UniFiPoeControl] Setting up new accessory: US8P150 (MAC: f4:92:bf:70:be:ec) / #2 (AP Lisa)
[12/30/2022, 11:15:30 AM] [UniFiPoeControl] Setting up new accessory: US8P150 (MAC: f4:92:bf:70:be:ec) / #4 (AP OG)
[12/30/2022, 11:15:30 AM] [UniFiPoeControl] Removing 2 device(s)

@67jedi Do you still have this problem? I'm using 7.5.174 without any issues. Is something wrong with your cache?

repo: Kienz/homebridge-unifi-poe-control


text:
new maps ported

Q
A

Bug fix?
no

New feature?
no

Needs wipe?
no

Description:

Content:

[x] Content part
ported the mission to the "Australia" map by "Aussie"
requires CUP Core, Maps and Apex DLC
ported the mission to "Virolahti - Valtatie 7" map by "furean"
requires CUP Core, Maps

Successfully tested on:

[yes] Local MP
[yes] Dedicated MP

australia map needs some proper work to create realistic towns and cities to fill out some of the empty space

australia map needs some proper work to create realistic towns and cities to fill out some of the empty space

repo: KillahPotatoes/KP-Liberation


text:
Fix: Add ChanMeng666's Portfolio

Closes #257

@all-contributors please add @ChanMeng666 for code


text:
Use of icons in consistent format and style

🎇 Description
we can use font awesome icons across all pages rather than using svg or png of icons from different sources. this will enhance the UI of the website
🖼 Screenshots

@KiranAminPanjwani please assign me this issue

can i work on this issue

@avdhendra already I am working on.

authors: avdhendra mdtausifiqbal

repo: KiranAminPanjwani/MedStats


text:
Tooltip component

Closes  #270

Note pour merger : penser à mettre le package.json à jour avec react-tooltip. On pourra voir ensemble pour le faire.

Le line-height me semble un peu trop important par rapport à la maquette. Et l'espacement autour du texte devrait être plus important en haut et en bas.
Maquette :

Il manque la fermeture de la tooltip quand on clique en dehors de la zone.

authors: LanF3usT Ynote camilledel

repo: KissKissBankBank/kitten


text:
Introduce request title

Adds option to name test requests and show that request title in final documentation.
Usage: |> BlueBird.ConnLogger.save(title: "Without params") (also added to readme).
Defaults to response status given no title supplied.
Inspired by https://github.com/api-hogs/bureaucrat test helpers.

That title makes HTML output much more readable!

Hi @elvanja, thanks a lot for this pr! :)
For me it looks well, so IMHO we can merge it.

authors: elvanja rhazdon tomekowal


text:
Fixing the linking errors for tests when default modules are not built

This should prevent failures of automatic build tests on dashboards

:100:

authors: dzenanz thewtex

repo: KitwareMedical/ITKRLEImage


text:
「终结」中的翻译错误

版本：2.0.8.4QF

「隔热机械方块」应为「防冻机械方块」

感谢反馈，已修正


text:
KNP translatable and doctrine inheritance

Hello !
I am trying to associate knp translatable and doctrine inherence. When I try to build the database it return an error :
There is no column with name translatable_id on table file_translation
To reproduce the bug  :
// Parent classes

// File.php

#[ORM\Table('file')]
#[ORM\InheritanceType('JOINED')]
#[ORM\DiscriminatorColumn(name: 'type', type: 'string', length: 255)]
#[ORM\DiscriminatorMap([
	'pdf' => Pdf::class,
	'video' => Video::class
])]
class File implements TranslatableInterface
{
	use TranslatableTrait;

    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'integer')]
    private ?int $id = null;

    #[ORM\Column(type: 'boolean')]
    private bool $is_active;
}

// Parent classes

// File.php

#[ORM\Entity]
#[ORM\Table('file_translation')]
#[ORM\InheritanceType('JOINED')]
#[ORM\DiscriminatorColumn(name: 'type', type: 'string', length: 255)]
#[ORM\DiscriminatorMap([
	'pdf' => PdfTranslation::class,
	'video' => VideoTranslation::class
])]
class FileTranslation implements TranslationInterface
{
	use TranslationTrait;

    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'integer')]
    private ?int $id = null;

    #[ORM\Column(type: 'string', length: 255)]
    private string $foo;

    #[ORM\Column(type: 'string', length: 255)]
    private string $bar;
}

And child class are same and look like :
#[ORM\Entity(repositoryClass: VideoRepository::class)]
class Video extends File
{
    #[ORM\Column(type: 'integer')]
    private int $duration;
}

And
#[ORM\Entity(repositoryClass: VideoTranslationRepository::class)]
class VideoTranslation extends FileTranslation
{
    #[ORM\Column(type: 'string', length: 255)]
    private string $subject;
}

A solution I found is to change the inheritance type to SINGLE_TABLE but i do not want to have all data in a single table.
If you want to have a complete example, I let a complete git project to reproduce the bug https://github.com/fauVictor/knp_translation_bug
Thank you for your time and help !

I have seen that PR but the problem steel here. I suppose that I have a problem on my configuration but I don't know where.  If someone has an idea ?

I patched the bug using the last commit content waiting for a new version.

repo: KnpLabs/DoctrineBehaviors


text:
Where does the L object come from?

When I import some components like
import {
  LMap,
  LTileLayer,
  LMarker,
  LPolygon,
  LPolyline,
  LPopup
} from "vue2-leaflet";

I'm able to access an L object, with methods like DomEvent, control, and Icon. Is this somehow made global when importing LMap? I'm using ESLint and it's not liking the lack of definition for it. I could write in an exception, but I was curious myself how I'm able to access it. I only know of it from copying examples in the repo.

Vue leaflet instantiate leaflet which at the version that is used attach itself to the window object. Thus you are able to use it

@hpo14  We work with Nuxt as well, to run it on nuxt you need 2 things:
1)
A js file in your plugins folder ( say the name is : vue-leaflet.js )
Add this in your file:
import Vue from 'vue';
import Vue2Leaflet from 'vue2-leaflet';

import L from 'leaflet';
delete L.Icon.Default.prototype._getIconUrl;

L.Icon.Default.mergeOptions({
  iconRetinaUrl: require('leaflet/dist/images/marker-icon-2x.png'),
  iconUrl: require('leaflet/dist/images/marker-icon.png'),
  shadowUrl: require('leaflet/dist/images/marker-shadow.png')
});

Vue.component('l-map', Vue2Leaflet.LMap);
Vue.component('l-tilelayer', Vue2Leaflet.LTileLayer);
Vue.component('l-marker', Vue2Leaflet.LMarker);
Vue.component('l-tooltip', Vue2Leaflet.LTooltip);
Vue.component('l-popup', Vue2Leaflet.LPopup);
Vue.component('l-control-zoom', Vue2Leaflet.LControlZoom);
Vue.component('v-marker-cluster', Vue2LeafletMarkerCluster);
Vue.component('l-geo-json', Vue2Leaflet.LGeoJson);
Vue.component('l-feature-group', Vue2Leaflet.LFeatureGroup);

@lordfuoco thank you
I'll try your method later i get home. And make response for the result.
https://github.com/schlunsen/nuxt-leaflet
I also found this github and follow steps, and result is a page of blank (?)
If look from the Chrome DevTools, it actual generate the map (look like it DO really generate it)
But from Devtool''s [Network Tab], my page doesnt send any req to tile.osm.org, that's wired.
Am i do anything wrong ?

@hpo14 if this is resolved can you please close the issue ?

authors: hpo14 lordfuoco wishinghand


text:
Bug?: Filter in MTB Query Portal

When applying the filter in one of the MTB Query Portal's tab/page, it is not applied when one switches to another tab/page, but has to be re-set and re-applied. Could that be fixed?

@lucienclin i can't reproduce the issue.

repo: KohlbacherLab/dnpm-dip-portal


text:
Clickable navigation box

Description
The current implementation offers clickable navigation boxes.

However, if we click on it, it will not redirect us to the desired path. Only if we hover directly above the words, it will redirect us.
Expectation
Change this by behavior so that the box will redirect us upon clicking.

I changed the transition effect of the buttons from low opacity to full transparent background. The color of the button's border is changed to "peru" (some kind of dark yellow) and is only shown when we hover right over the words.


text:
Download KV electrum servers list error

The Download KV electrum servers list button is not working and throws the below error in dev tools.
Version: 0.3.1
OS: Win 10

Issue no longer present, closing

repo: KomodoPlatform/Agama


text:
Docs: 添加 contributors

@all-contributors please add @KomoriDev  for doc and content

@all-contributors please add @KomoriDev for doc and content

@all-contributors please add @KomoriDev for doc and content

@all-contributors please add @NCBM for doc and content

repo: KomoriDev/NoneBotX


text:
No such file or directory

when I run the script
konduit-init --chip cpu
I get error as bellow
nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/output/adapter/ClassificationMultiOutputAdapter.java:[28,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/JsonSerdeUtils.java:[29,21] package org.nd4j.base does not exist
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :konduit-serving-api
Traceback (most recent call last):
File "/root/.konduit-serving/source/build_jar.py", line 116, in
os.path.join(args.source, args.target),
File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/root/.konduit-serving/source/konduit-serving-uberjar/target/konduit-serving-uberjar-0.1.0-SNAPSHOT-all-linux-x86_64-cpu.jar'
[root@f8c7a778fa75 konduit-serving]# clear
[root@f8c7a778fa75 konduit-serving]# konduit-init --chip cpu
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=] [--work-tree=] [--namespace=]
 []
error: pathspec 'cli_base_5' did not match any file(s) known to git.
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=] [--work-tree=] [--namespace=]
 []
Running command: /root/.konduit-serving/source/mvnw -Puberjar,tensorflow clean install -Dmaven.test.skip=true -Djavacpp.platform=linux-x86_64 -Dchip=cpu -Ppython -Ppmml -Dspin.version=all
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 11 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 11 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: linux
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 3.10
[INFO] os.detected.version.major: 3
[INFO] os.detected.version.minor: 10
[INFO] os.detected.release: centos
[INFO] os.detected.release.version: 7
[INFO] os.detected.release.like.centos: true
[INFO] os.detected.release.like.rhel: true
[INFO] os.detected.release.like.fedora: true
[INFO] os.detected.classifier: linux-x86_64
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] konduit-serving                                                    [pom]
[INFO] konduit-serving-api                                                [jar]
[INFO] konduit-serving-core                                               [jar]
[INFO] konduit-serving-codegen                                            [jar]
[INFO] konduit-serving-orchestration                                      [jar]
[INFO] konduit-serving-pmml                                               [jar]
[INFO] konduit-serving-tfjava                                             [jar]
[INFO] konduit-serving-native                                             [jar]
[INFO] konduit-serving-python                                             [jar]
[INFO] konduit-serving-distro-bom                                         [jar]
[INFO] konduit-serving-uberjar                                            [jar]
[INFO]
[INFO] -----------------< ai.konduit.serving:konduit-serving >-----------------
[INFO] Building konduit-serving 0.1.0-SNAPSHOT                           [1/11]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ konduit-serving ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven) @ konduit-serving ---
[INFO]
[INFO] --- os-maven-plugin:1.6.1:detect (default) @ konduit-serving ---
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: linux
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 3.10
[INFO] os.detected.version.major: 3
[INFO] os.detected.version.minor: 10
[INFO] os.detected.release: centos
[INFO] os.detected.release.version: 7
[INFO] os.detected.release.like.centos: true
[INFO] os.detected.release.like.rhel: true
[INFO] os.detected.release.like.fedora: true
[INFO] os.detected.classifier: linux-x86_64
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ konduit-serving ---
[INFO] Installing /root/.konduit-serving/source/pom.xml to /root/.m2/repository/ai/konduit/serving/konduit-serving/0.1.0-SNAPSHOT/konduit-serving-0.1.0-SNAPSHOT.pom
[INFO]
[INFO] ---------------< ai.konduit.serving:konduit-serving-api >---------------
[INFO] Building konduit-serving-api 0.1.0-SNAPSHOT                       [2/11]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ konduit-serving-api ---
[INFO] Deleting /root/.konduit-serving/source/konduit-serving-api/target
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven) @ konduit-serving-api ---
[INFO]
[INFO] --- os-maven-plugin:1.6.1:detect (default) @ konduit-serving-api ---
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: linux
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 3.10
[INFO] os.detected.version.major: 3
[INFO] os.detected.version.minor: 10
[INFO] os.detected.release: centos
[INFO] os.detected.release.version: 7
[INFO] os.detected.release.like.centos: true
[INFO] os.detected.release.like.rhel: true
[INFO] os.detected.release.like.fedora: true
[INFO] os.detected.classifier: linux-x86_64
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ konduit-serving-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/.konduit-serving/source/konduit-serving-api/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ konduit-serving-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 79 source files to /root/.konduit-serving/source/konduit-serving-api/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/pipeline/BasePipelineStep.java:[34,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/SchemaTypeUtils.java:[39,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/MetricRenderUtils.java:[25,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/input/conversion/BatchInputParser.java:[37,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/input/conversion/BatchInputParser.java:[39,34] package org.nd4j.linalg.primitives does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/input/conversion/BatchInputParser.java:[229,13] cannot find symbol
symbol:   class Pair
location: class ai.konduit.serving.input.conversion.BatchInputParser
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/WritableValueRetriever.java:[26,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/output/adapter/ClassificationMultiOutputAdapter.java:[28,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/JsonSerdeUtils.java:[29,21] package org.nd4j.base does not exist
[INFO] 9 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for konduit-serving 0.1.0-SNAPSHOT:
[INFO]
[INFO] konduit-serving .................................... SUCCESS [  0.296 s]
[INFO] konduit-serving-api ................................ FAILURE [  4.275 s]
[INFO] konduit-serving-core ............................... SKIPPED
[INFO] konduit-serving-codegen ............................ SKIPPED
[INFO] konduit-serving-orchestration ...................... SKIPPED
[INFO] konduit-serving-pmml ............................... SKIPPED
[INFO] konduit-serving-tfjava ............................. SKIPPED
[INFO] konduit-serving-native ............................. SKIPPED
[INFO] konduit-serving-python ............................. SKIPPED
[INFO] konduit-serving-distro-bom ......................... SKIPPED
[INFO] konduit-serving-uberjar ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.305 s
[INFO] Finished at: 2020-05-11T03:00:05Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project konduit-serving-api: Compilation failure: Compilation failure:
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/pipeline/BasePipelineStep.java:[34,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/SchemaTypeUtils.java:[39,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/MetricRenderUtils.java:[25,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/input/conversion/BatchInputParser.java:[37,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/input/conversion/BatchInputParser.java:[39,34] package org.nd4j.linalg.primitives does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/input/conversion/BatchInputParser.java:[229,13] cannot find symbol
[ERROR]   symbol:   class Pair
[ERROR]   location: class ai.konduit.serving.input.conversion.BatchInputParser
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/WritableValueRetriever.java:[26,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/output/adapter/ClassificationMultiOutputAdapter.java:[28,21] package org.nd4j.base does not exist
[ERROR] /root/.konduit-serving/source/konduit-serving-api/src/main/java/ai/konduit/serving/util/JsonSerdeUtils.java:[29,21] package org.nd4j.base does not exist
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :konduit-serving-api
Traceback (most recent call last):
File "/root/.konduit-serving/source/build_jar.py", line 116, in
os.path.join(args.source, args.target),
File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/root/.konduit-serving/source/konduit-serving-uberjar/target/konduit-serving-uberjar-0.1.0-SNAPSHOT-all-linux-x86_64-cpu.jar'

Can you find out the konduit pip module version that's installed? I've fixed this problem in the newer version. The problem was not fetching the branches and tags before checkout. Retrying  konduit-init --chip gpu might fix this problem for you. Try it after upgrading the konduit package with pip install --upgrade konduit

authors: ShamsUlAzeem bewithme

repo: KonduitAI/konduit-serving


text:
Mesh security recommendations

Description

Testing instructions
Preview link:
Checklist

[x] Review label added
[x] Conditional version tags added, if applicable.

For example, if this change is for an upcoming 3.6 release, enclose your content in {% if_version gte:3.6.x %} <content> {% endif_version %} tags (or if_plugin_version tags for plugins).
Use any of the following keys:

gte:<version> - greater than or equal to a specific version
lte:<version> - less than or equal to a specific version
eq:<version> - exactly equal to a specific version

You can do the same for older versions.

07:40:26 vite.1   | TypeError: Invalid URL
07:40:26 vite.1   |     at new URL (node:internal/url:775:[36](https://github.com/Kong/docs.konghq.com/actions/runs/8558528024/job/23476684430?pr=7173#step:12:37))
07:40:26 vite.1   |     at setHostHeader (/home/runner/work/docs.konghq.com/docs.konghq.com/vite.config.ts:50:16)
07:40:26 vite.1   |     at Object.configure (/home/runner/work/docs.konghq.com/docs.konghq.com/vite.config.ts:96:13)
07:40:26 vite.1   |     at file:///home/runner/work/docs.konghq.com/docs.konghq.com/node_modules/vite/dist/node/chunks/dep-BBHrJRja.js:63284:18
07:40:26 vite.1   |     at Array.forEach (<anonymous>)
07:[40](https://github.com/Kong/docs.konghq.com/actions/runs/8558528024/job/23476684430?pr=7173#step:12:41):26 vite.1   |     at proxyMiddleware (file:///home/runner/work/docs.konghq.com/docs.konghq.com/node_modules/vite/dist/node/chunks/dep-BBHrJRja.js:63274:26)
07:40:26 vite.1   |     at _createServer (file:///home/runner/work/docs.konghq.com/docs.konghq.com/node_modules/vite/dist/node/chunks/dep-BBHrJRja.js:64825:25)
07:40:26 vite.1   |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
07:40:26 vite.1   |     at async CAC.<anonymous> (file:///home/runner/work/docs.konghq.com/docs.konghq.com/node_modules/vite/dist/node/cli.js:762:24)

@fabianrbz I guess this is due to my cross link to Konnect's docs. Do you know how I should write this to make the test pass?

@fabianrbz I ran this locally and all tests passed. What could be the issue?

The issue is that it comes from a fork, and the VITE_PORTAL_API_URL doesn't exist in the forks env.

authors: fabianrbz lahabana mheap


text:
How to open API definition file in Insomnia Designer?

What is your question?
Insomnia Designer is great tool but I don't understand how I can use it to modify existing API definition .yaml? I can import a file using Create -> Import from -> File but after that no changes are synced to the original file.
My expected scenario is the following:

Run Insomnia Designer and open existing API definition file.
I modify API definition (debug, preview etc.)
All changes are saved to opened file

What is the context?
Insomnia Designer

Hi @rootext
Currently we create a local instance of the file in the app directory instead of modifying the original, is the ask here for the application to modify the opened file instead?

is the ask here for the application to modify the opened file instead?
Exactly.

If you maintain your definition file in git or something like that, the current behavior is very confusing and also the UI doesn't explain that a copy is created.

authors: languitar nijikokun rootext

repo: Kong/insomnia


text:
Plugin test response status

It was noticed that in a plugin particularly in the access lifecycle method when you exit the response with a status code you cannot unit test it as the response status is always overiden by the hardcoded serviceResponse.
The examples commit shows this error in a simple example plugin and corresponding unit tests.
We have implemented a fix by conditionally merging the serviceResponse into the instance response only if the instance response.status is undefined. This works however i am not to sure why the instance response.status is undefined in the first place.

@NeuralEvolution Good catch! However I think we should use this.existing (https://github.com/Kong/kong-js-pdk/blob/8295f0335711057d48d050052deb1f7512573704/plugin_test.js#L161) instead. Logically if this.existing is true,
all following phases are skipped.

@fffonion I added a commit with the update as suggested.

Thank you @NeuralEvolution for the contribution!

authors: NeuralEvolution fffonion

repo: Kong/kong-js-pdk


text:
kong go plugins not executed in some requests

Summary
If you configure a go plugin (no matter if it's globally or linked to an specific service) mixed with another LUA plugin sometimes the go plugin is not being executed although it should.
The plugin is executed sometimes during some requests, and after some requests being executed you have a bunch of responses when the plugin is not executed.
With a RPS of 7, aproximately the 50% requests are calling the go plugin but the rest are not.
It's an strange behaviour that I will chase looking at the plugin iterator code.
You don't have an error but if the plugin is not called, it's a failure.
Steps To Reproduce

Use docker-kong image 2.0.1 alpine and compile the go-hello plugin
Configure a service with a router (whatever)
Configure the go-hello globally or locally to the service
Do requests (e.g with jmeter) during 10 minutes
You will have the plugin being executed (and introducing the request header) in some requests and later a bunch of request not calling the plugin:

Additional Details & Logs

Kong version (docker alpine 2.0.1)

Kong debug-level startup logs ($ kong start --vv)

Kong error logs (<KONG_PREFIX>/logs/error.log)

Kong configuration (the output of a GET request to Kong's Admin port - see
https://docs.konghq.com/latest/admin-api/#retrieve-node-information)

Operating system docker

@ealogar Thanks for reporting. Do you see any errors on error logs?

@gszr I dont have any error, it's just that the plugin stop being called. dunno if the rpc message ir lost or whatever

I include a copy of the logs:
172.27.0.1 - - [19/Feb/2020:18:44:25 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:26 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:26 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:27 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:27 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:27 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:28 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:28 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:29 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:29 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:30 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:30 [error] 134#0: *70881 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:30 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:30 [error] 134#0: *70881 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:30 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:31 [error] 134#0: *70881 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:31 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:31 [error] 134#0: *70881 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:31 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:32 [error] 134#0: *70881 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:32 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:32 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:33 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:33 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:33 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:34 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:34 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:35 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:35 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:36 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:36 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:36 [error] 134#0: *70971 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:37 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:37 [error] 134#0: *70971 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:37 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:37 [error] 134#0: *70971 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:37 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:38 [error] 134#0: *70971 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:38 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:38 [error] 134#0: *70971 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:38 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:39 [error] 134#0: *70997 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:39 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:39 [error] 134#0: *70997 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:39 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:40 [error] 134#0: *70997 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:40 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:40 [error] 134#0: *70997 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:40 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
2020/02/19 18:44:40 [error] 134#0: *70997 [kong] go.lua:338 [go-hello2] Access go-hello, client: 172.27.0.1, server: kong, request: "POST /api1 HTTP/1.1", host: "localhost:8000"
172.27.0.1 - - [19/Feb/2020:18:44:40 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:41 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:41 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"
172.27.0.1 - - [19/Feb/2020:18:44:42 +0000] "POST /api1 HTTP/1.1" 200 14 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_192)" "-" "-"

Thanks @ealogar, we will do some digging on our side.

Hi @gszr , I just found now (after 20 minutes testing) that if you define he priority in the go module, it works as expected and it's being called always.
var Priority = 1
I discovered that the pluginserver is looking for this property through a lookup and I always had in mind to set it....
This may be a workaround for me but you may consider in your diggings, maybe write in documentation to define prirority or whatever.

@gszr I have not been able to reproduce the issue in a couple of days. It may be a memory related issue ?

@gszr I am having this problem sometimes, I am afraid I will stop using go plugins. Have you been able to do some investigation ?

I had the same problem
but also,i wrote a plugin and let it act on two services with different configurion(use kong.yml).then i requested the services and found that the value of the configuration is not permanent,sometimes print value of plugin's configurion  who is binded to another service.

One thing that I am doing now (but only with one global go plugin and some more in lua) is increasing the file descriptors of the nginx workers and reducing the workers connections to the half of the value as I have seen than the go-pluginsserver is taking this value when it's spawned. The worst thing of this issue is that no logs apppear, they would be very useful to help fixing the issue

Thanks for linking the issues, @ealogar! Both PRs are merged by now, so closing this.

Hey @ealogar , Unfortunately for me the issue is still there even with the above fix, I am using kong 2.0.3 in Heroku and just patched in go.lua and plugins_iterator.lua from the above PRs but still keep having this issue intermittently.
One pattern I have noticed is - when it happens, it keeps happening more than 50% of the times until  I restart the app at which point it stops. Can you please suggest something to overcome this issue ? Initially I thought that the go pluginserver might be crashing but locally I can see that whenever it crashes it brings itself back and I assume that's what it should do in Heroku too.

I was able to patch the issue with this PR .Not sure if this is the best way but it seems to work for me in Heroku.
PS: I am not that well versed with Lua. So please bare with me :-)

@primableatom fo my use case both prs fixed the issue when reloading the plugin. I think that what you're suffering is not the same thing....

@primableatom Thanks for submitting the PR. That does look like a different issue. The team and I will look into the PR. Thanks again!

I encountered a similar problem like @primableatom . the kong version is 2.1.0. When the request was executed halfway in the go plugin, it was not executed, no response and no log. the the request appeared directly in the next level of service 。when i restart the kong-docker, everything is normal,Then I don’t know what happened, it went wrong again。
I have spend 4 month to write the big authorization go plugin, if the question can't be fixed, i just dont know what should i do.😿

authors: ealogar gszr ifree321 lmqytz primableatom

repo: Kong/kong


text:
check for nil value of KONG_HEADER_FILTER_STARTED_AT

Summary
Avoiding an error that occurs when ctx.KONG_HEADER_FILTER_STARTED_AT is nil.

attempt to perform arithmetic on field 'KONG_HEADER_FILTER_STARTED_AT' (a nil value)

This happens sometimes. See example issue.

@thibaultcha it's kind of an edge case, which is a bit hard to write tests for. In my case, it happens when a custom plugin is used for making a proxy request to a remote server.
I'd be happy to write a test case for this, but I think I might need some guidance to the proper setup of such test.

it's kind of an edge case, which is a bit hard to write tests for

Exactly, the goal of writing tests for this is to find the edge-case, and make sure it isn't one anymore, but properly expected and handled by Kong :)

@yaronpx You can find some fixture plugins we use in our tests in this directory. Don't forget to load it into the test instance via the custom_plugins property when starting the Kong test instance. You could then write a plugin that reproduces your error, in your own test suite.

Just from my experience working with custom Kong plugins, this appears to happen when you return from a custom plugin instead of using ngx.exit when a request is being proxied. Doing this causes the exact error above.

I am reluctant to merging this without a reproducible test case, especially since the underlying issue could have been fixed by now. From reading the proxy path, this seems to be an non-reachable branch, so we should make extra sure about the circumstances this happens under.
Until then, I am closing this. Feel free to reopen it with a reproducible test-case (even with a custom plugin in spec/fixtures as instructed above).
Thanks

authors: thibaultcha thomasgriffin yaronpx


text:
Add a plugin on specific routes

HI,
Is it possible to activate kong on specific routes from the same service:
enable the plugin on myservice/private
disable the plugin on myservice/public
using KongIngress or Ingress.
Thank you in advance

You can create two Ingress resources that point to the same Service in Kubernetes but with two different paths and then have different plugins on those two Ingress resources.
See: https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/guides/using-kongplugin-resource.md#configuring-plugins-on-ingress-resource
Please close the issue if this is what you're looking for.

Thank you for your fast reply.
However I still have a problem, here are my ingresses :
`
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kong-service-public
spec:
rules:
- http:
paths:
- path: /service
backend:
serviceName: service
servicePort: 3000
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kong-service-private
annotations:
plugins.konghq.com: kong-jwt
spec:
rules:
- http:
paths:
- path: /service/docs/
backend:
serviceName: service
servicePort: 3000
`
when I hit :
ip/service => good
ip/service/docs => bad because it sends me to ip/service with the plugin
I suppose I need to add a proxy :
apiVersion: configuration.konghq.com/v1 kind: KongIngress metadata:   name: kong-ingress-service-private proxy:   path: /docs/ route:   strip_path: true
with :
apiVersion: extensions/v1beta1 kind: Ingress metadata:   name: kong-service-private   annotations:     plugins.konghq.com: kong-jwt     configuration.konghq.com: kong-ingress-service-private
but doesn't seem to work.
Thank you

@joselegitan Try creating he Ingress instead with  /service/docs (without the trailing /).
That shoud route traffic correctly.

Closing due to lack of activity.

authors: hbagdi joselegitan

repo: Kong/kubernetes-ingress-controller


text:
Flaky integration test: TestValidationWebhook/should_fail_the_validation_if_the_secret_in_ConfigPatches_of_KongClusterPlugin_generates_invalid_configuration

Problem statement
During one of the kong image validation workflow runs the TestValidationWebhook/should_fail_the_validation_if_the_secret_in_ConfigPatches_of_KongClusterPlugin_generates_invalid_configuration test has failed but it shouldn't (it passed on re-run)
    webhook_test.go:891:
        	Error Trace:	/home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/integration/webhook_test.go:891
        	Error:      	An error is expected but got nil.
        	Test:       	TestValidationWebhook/should_fail_the_validation_if_the_secret_in_ConfigPatches_of_KongClusterPlugin_generates_invalid_configuration

https://github.com/Kong/kubernetes-ingress-controller/actions/runs/7286242198/job/19854637730

Still occurring https://github.com/Kong/kubernetes-ingress-controller/actions/runs/7444386286/job/20250735830

To fix this, let's move the flaky test to envtests that were scaffolded in https://github.com/Kong/kubernetes-ingress-controller/pull/5605. TestAdmissionWebhook_KongVault can be used as an example of the admission webhook test that deploys Kong in docker so it's possible to also test cases that require communication with DP.

Fun fact: TestAdmissionWebhook_KongVault failed in https://github.com/Kong/kubernetes-ingress-controller/actions/runs/8437912949/job/23108889362?pr=5751
      admission_webhook_envtest_test.go:52:
          	Error Trace:	/home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/envtest/admission_webhook_envtest_test.go:196
          	            				/home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/envtest/admission_webhook_envtest_test.go:52
          	Error:      	Received unexpected error:
          	            	Internal error occurred: failed calling webhook "kongvaults.validation.ingress-controller.konghq.com": failed to call webhook: an error on the server ("HTTP status 405 (message: \"Method not allowed\")") has prevented the request from succeeding
          	Test:       	TestAdmissionWebhook_KongVault

Fun fact: TestAdmissionWebhook_KongVault failed in https://github.com/Kong/kubernetes-ingress-controller/actions/runs/8437912949/job/23108889362?pr=5751
      admission_webhook_envtest_test.go:52:
          	Error Trace:	/home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/envtest/admission_webhook_envtest_test.go:196
          	            				/home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/envtest/admission_webhook_envtest_test.go:52
          	Error:      	Received unexpected error:
          	            	Internal error occurred: failed calling webhook "kongvaults.validation.ingress-controller.konghq.com": failed to call webhook: an error on the server ("HTTP status 405 (message: \"Method not allowed\")") has prevented the request from succeeding
          	Test:       	TestAdmissionWebhook_KongVault

@pmalek It could fail because we mistakenly updated the Kong version that's used in envtests (https://github.com/Kong/kubernetes-ingress-controller/pull/5608/files). We have to stay with 3.4.x until 3.7.x is released with a fix for https://konghq.atlassian.net/browse/KAG-3699. https://github.com/Kong/kubernetes-ingress-controller/pull/5756 should address that.

😞 https://github.com/Kong/kubernetes-ingress-controller/commit/09f1e556e68442b87345879e18867e9b0226e3a7

Still failing: https://github.com/Kong/kubernetes-ingress-controller/actions/runs/8468297488/job/23201043133#step:7:4530
creating consumer background-noise-consumer-45
Warning: import/export of basic-authcredentials using decK doesn't work due to hashing of passwords in Kong.
creating basic-auth background-noise-consumer-31-credential-1 for consumer background-noise-consumer-31
creating basic-auth background-noise-consumer-32-credential-2 for consumer background-noise-consumer-32
creating basic-auth background-noise-consumer-31-credential-0 for consumer background-noise-consumer-31
creating basic-auth background-noise-consumer-32-credential-3 for consumer background-noise-consumer-32
creating basic-auth background-noise-consumer-31-credential-2 for consumer background-noise-consumer-31
creating basic-auth background-noise-consumer-31-credential-4 for consumer background-noise-consumer-31
creating basic-auth background-noise-consumer-33-credential-2 for consumer background-noise-consumer-33
creating basic-auth background-noise-consumer-33-credential-0 for consumer background-noise-consumer-33
creating basic-auth background-noise-consumer-32-credential-1 for consumer background-noise-consumer-32
creating basic-auth background-noise-consumer-31-credential-3 for consumer background-noise-consumer-31
creating basic-auth background-noise-consumer-33-credential-4 for consumer background-noise-consumer-33
creating basic-auth background-noise-consumer-33-credential-1 for consumer background-noise-consumer-33
creating basic-auth background-noise-consumer-32-credential-0 for consumer background-noise-consumer-32
creating basic-auth background-noise-consumer-33-credential-3 for consumer background-noise-consumer-33
creating basic-auth background-noise-consumer-32-credential-4 for consumer background-noise-consumer-32
    webhook_test.go:901:
        	Error Trace:	/home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/integration/webhook_test.go:901
        	Error:      	An error is expected but got nil.
        	Test:       	TestValidationWebhook/should_fail_the_validation_if_the_secret_in_ConfigPatches_of_KongClusterPlugin_generates_invalid_configuration
Warning: import/export of basic-authcredentials using decK doesn't work due to hashing of passwords in Kong.
creating basic-auth background-noise-consumer-35-credential-3 for consumer background-noise-consumer-35
creating basic-auth background-noise-consumer-36-credential-1 for consumer background-noise-consumer-36
creating basic-auth background-noise-consumer-34-credential-3 for consumer background-noise-consumer-34
creating basic-auth background-noise-consumer-35-credential-1 for consumer background-noise-consumer-35
creating basic-auth background-noise-consumer-34-credential-0 for consumer background-noise-consumer-34
creating basic-auth background-noise-consumer-34-credential-1 for consumer background-noise-consumer-34

Should be fixed by https://github.com/Kong/kubernetes-ingress-controller/pull/5797

authors: czeslavo pmalek programmer04


text:
Balancer: getPeer fails

See Kong log below
2017/11/02 23:30:05 [warn] 19010#0: *28199029 [lua] balancer.lua:297: queryDns(): [ringbalancer] querying dns for xxx.host.name.xxx failed: dns query returned no results, client: 192.168.13.43, server: kong, request: "GET /mrhyde/dataservices/experiments/configuration/v1 HTTP/1.1", host: "gateway.mydomain.com"
2017/11/02 23:30:05 [warn] 19010#0: *28199029 [lua] balancer.lua:668: redistributeSlots(): [ringbalancer] redistributed slots, size=100, dropped=100, assigned=0, left unassigned=100, client: 192.168.13.43, server: kong, request: "GET /mrhyde/dataservices/experiments/configuration/v1 HTTP/1.1", host: "gateway.mydomain.com"
2017/11/02 23:30:05 [error] 19010#0: *28199029 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/resty/dns/balancer.lua:539: attempt to index field 'address' (a nil value)
stack traceback:
coroutine 0:
/usr/local/share/lua/5.1/resty/dns/balancer.lua: in function 'getPeer'
/usr/local/share/lua/5.1/kong/core/balancer.lua:281: in function 'balancer_execute'
/usr/local/share/lua/5.1/kong/core/handler.lua:126: in function 'before'
/usr/local/share/lua/5.1/kong.lua:292: in function 'access'
access_by_lua(nginx-kong.conf:96):2: in function <access_by_lua(nginx-kong.conf:96):1>, client: 192.168.13.43, server: kong, request: "GET /mrhyde/dataservices/experiments/configuration/v1 HTTP/1.1", host: "gateway.mydomain.com"

The error seems to be an edge case. The DNS record fails to resolve: see dns query returned no results in the log, hence the ring balancer releases all its slots;
[ringbalancer] redistributed slots, size=100, dropped=100, assigned=0, left unassigned=100

When, in this state a getPeer is requested, it will check assignments and return a functional error "No peers are available". The problem here occurs because the "redistribution" happens in this case after that check, inside getPeer. Due to this it tries to access an address that is no longer available.
It does not matter for the final result, as it would have failed to proxy anyway, but it should have been a proper "No peers are available" instead of trowing an error which results in a 500.
As for the dns results; the "dns query returned no results" error occurs when the server replies, but with an empty record. See https://github.com/Kong/lua-resty-dns-client/blob/0.4.x/src/resty/dns/client.lua#L706-L725

btw: this is on 0.4.x branch. But the edge case probably also exists on the master branch

repo: Kong/lua-resty-dns-client


text:
Handle fallback for online content

Describe the task
Handle fallback for online content

[x] Create folder data
[x] Improve function fetchStaticData with fallback data

Version test: http://14.224.158.246:8900/s/od8swfraBg4MiKG
Validation passed

repo: Koniverse/SubWallet-Extension


text:
Fix bug "Invalid character" on earning

Fee numbers can sometimes get incorrectly rounded, which causes error to some libs

Version test: https://c6cb796b.subwallet-webapp.pages.dev/
Validation passed

Next step successfully


text:
Anything happening with this project?

Last update about 5 months back, are there any updates and what is the progress on the next version of the CMS?

Clearly not, is this CMS now dead in the water?

alanr3id,
Thank you for leaving this comment.
New Kooboo will be released in about a month, currently the project is in final stage of development.
Due to various reasons, we haven't been able to answer your questions and requests very promptly, for which we sincerely apologize. However, after the release of New Kooboo, this situation will be fundamentally improved.
As you may have known, New Kooboo is being built with large-scale upgrade in many aspects and development of some innovative functions. Unfortunately, right now we can't provide you with a precise release date or more details. But we assure you that this project has always been our focus and is in good hands of our best engineers. We hope New Kooboo can be as amazing as we promised, or even more. We take this project very seriously and will try our best to bring it to you as soon as possible. And hopefully by then you will agree it is worth the wait.
Thank you for your support.

@koobooteam thank for your feedback, I happy with your work

Thanks for the update. I look forward to seeing what has been done.

Any updates @koobooteam ?
Be really cool to see some movement on this.

Once again any updates @koobooteam ?

I'm curious too...
Is the project still in development? On hold? Dead?

Would be graet to get some news about the project :+1:

I've been developing CMS for a long time and Kooboo is the best CMS solution ever.
I believe kooboo will be come back with new features but It already works stable even any changes.
In one way or another Koobo should not be die.

authors: alanr3id dstream hyrmedia koobooteam nhaberl r3id rdonmez

repo: Kooboo/CMS


text:
Will be there support for random load in case of DockerCloudRetentionStrategy

https://github.com/KostyaSha/yet-another-docker-plugin/blob/e559f3d8fd78089e96f58e64d633a6e8885289cf/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/DockerProvisioningStrategy.java#L148
Currently i have N slaves with same templates to spread the load. If i use DockerOnce retention strategy with RandomLeastLoadedDockerCloudOrder then the load is randomly spread accross two slaves.
But using DockerCloudRetentionStrategy (to keep slave alive for n minutes in order avoiding provisioning again), the RandomLeastLoadedDockerCloudOrder strategy is not used.
All the jobs get scheduled on slave1 until this one get full.
Can we add this DockerCloudRetentionStrategy to the list of supported randomleastloadedcloudorder ?

You can try... If it just uncomment then you can build .hpi and upload into your jenkins.

repo: KostyaSha/yet-another-docker-plugin


text:
custom views, view attrs, attrs

It doesn't support custom view good enough - custom attrs.
It also doesn't support all included attrs (like minHeight)
How do I set background=?primaryColor?

Maybe there will be an intension in Anko plugin that will create new properties for Java get/set methods.
There is a property View.minimumHeight : Int.
backgroundResource = android.R.color.primary_text_dark.

can we have something like easy way to pass hardcoded attrs?

What hardcoded attrs do you mean?

custom attrs :)

Hi, how do I get  android:layout_height="?attr/actionBarSize" functionality? or any other attr?

Here is what I ended up doing for this...
fun Context.attribute(value : Int) : TypedValue {
    var ret = TypedValue()
    getTheme().resolveAttribute(value, ret, true)
    return ret
}

fun Context.attrAsDimen(value : Int) : Int{
    return TypedValue.complexToDimensionPixelSize(attribute(value).data, getResources().getDisplayMetrics())
}

//inside the DSL of an activity onCreate
    val toolbar = toolbarSupport{
        setTitle("hello")
        setElevationCompat(dip(4))
        backgroundColor = attribute(R.attr.colorPrimary).data
    }.layoutParams(width = org.jetbrains.anko.matchParent, height = attrAsDimen(net.schwiz.koat.R.attr.actionBarSize))

custom views ：setBackgroundResource、setBackgroundColor() both don't work even though i override the onDraw method.

this is how i use attr.
val a = context.obtainStyledAttributes(attrs, R.styleable.CustomTitleView)
        //获取属性
        if (a.hasValue(R.styleable.CustomTitleView_center_title)) {
            centerTitle = a.getString(R.styleable.CustomTitleView_center_title)
        }
        if (a.hasValue(R.styleable.CustomTitleView_right_title)){
            rightTitle = a.getString(R.styleable.CustomTitleView_right_title)
        }
        if(a.hasValue(R.styleable.CustomTitleView_bgcolor)){
            bgcolor = a.getResourceId(R.styleable.CustomTitleView_bgcolor, R.color.colorAccent)
        }
        if(a.hasValue(R.styleable.CustomTitleView_leftsrc)){
            leftsrc = a.getResourceId(R.styleable.CustomTitleView_leftsrc, R.drawable.abc_btn_radio_material)
        }

or use like this.
//获取属性
for (i: Int in 0..a.indexCount) {
var attr : Int = a.getIndex(i)
when(attr){
R.styleable.CustomTitleView_leftsrc ->
leftsrc = a.getResourceId(attr, R.drawable.abc_btn_radio_material)
R.styleable.CustomTitleView_right_title -> rightTitle = a.getString(attr)
R.styleable.CustomTitleView_center_title -> centerTitle = a.getString(attr)
}
}

authors: schwiz smallmouse2009 yanex yoavst

repo: Kotlin/anko


text:
Spring example

Having Ktor example is nice, but how kotlinx-rpc can be used in Spring app? Can you please provide some simple example ?  I believe since Spring is quite popular server side JVM framework, it could be helpful for many people to have such kotlin- based example.

Hi!
You are right, a Spring example is needed here. Unfortunately, we don't have integration with it right now, unlike with the Ktor. Once we do, we will definitely add one

@Mr3zee thanks for the quick and Informative reply.
Do you have any plans already to provide such integration? Or at least I am wondering if it's short term or long term goal from your point of view.

I think right now it is long term goal. We are working on improving kRPC protocol in general, it is a priority now

repo: Kotlin/kotlinx-rpc


text:
ルーム作成完了モーダルの招待URLボタン

close #419
close #345
やったこと
ルーム作成完了モーダルの招待URLの値を入れた
コピーボタンを作った：コピーマーク→押すと２秒間✅→コピーマークに戻る

スクリーンショット

参考リンク・補足など

イベント名入力欄を消した

repo: KoukiNAGATA/sushi-chat


text:
Show outdated modules

Hi, Kristjan
maybe with Show outdated modules is better to not check it by default ?

Would it also be okay to work with a URL parameter? If you include the following URL, the old modules will not be displayed: https://kristjanesperanto.github.io/MagicMirror-3rd-Party-Modules/?showOutdated=false
Somehow I see advantages in both options (showing and not showing) and I don't know which is really better.
I imagine the following scenario, which is why I tend to show the outdated modules by default: A user is looking for a module, but there is none "normal" module, but there is one outdated. The user looks at the module and adapts it to his needs and is happy. If we were to hide the outdated modules, the user might not be able to find the outdated module which helped him.

Because of the URL parameter I think I can close this issue :slightly_smiling_face:

authors: KristjanESPERANTO bugsounet


text:
merge package template from arlac77/npm-package-template

package.json

chore(devDependencies): update nyc@^11.4.1 from template
chore(devDependencies): update rollup@^0.52.2 from template

Codecov Report

Merging #110 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #110   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines          14     14
=====================================
  Hits           14     14

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 72e7038...fcd6882. Read the comment docs.

Coverage remained the same at 100.0% when pulling fcd6882fb388bcc9083c8fb11ce32bb403b51847 on template-sync-1 into 72e7038c05b52b8332a6b9c85f9fc9cfedfecfa2 on master.

authors: arlac77 codecov-io coveralls


text:
merge from arlac77/npm-package-template-esm-only

package.json

chore(scripts): cover@#overwrite c8 -x 'tests/**/*' --temp-directory build/tmp ava && c8 report -r lcov -o build/coverage --temp-directory build/tmp
chore(package): add sideEffects from template

:tada: This PR is included in version 4.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: Kronos-Integration/service-health-check


text:
Trouble Getting Activation Bytes

Hello, I'm out of my league trying to follow these instructions, but I believe I'm about 90% of the way there and I just need a little direction.
To set the table, my goal is to obtain my Audible Activation Bytes so that I can convert my .aax audio book files to .m4b while retaining the chapter info.
I installed Brew, FFMPEG, and Bash 4.4.23 enroute to attempting to follow instructions.
In an attempt to get my Audible Activation Bytes I ran the following lines in my macOS 10.13.5 Terminal
brew install chromedriver ffmpeg
sudo easy_install pip
pip install selenium requests
git clone https://github.com/inAudible-NG/audible-activator
cd audible-activator
sed -i '' 's,chromedriver_path = "./chromedriver",chromedriver_path = "/usr/local/bin/chromedriver",' audible-activator.py
./audible-activator.py
Everything seems to go fine until I get to the last command (./audible-activator.py) ...when I run that I get the response: env: python2: No such file or directory
So I'm not sure what to do, but if someone could help I would greatly appreciate it. Please let me know if there are any other details I can provide.  Thanks! - Ben

I am not sure that this is the right place to ask this. The audible-activator repo might be a better place.
The error message tells you that the env command cannot find python2. See the shebang in the first line:
#!/usr/bin/env python2
Check which versions are installed (one if the simplest ways is probably to just enter python in a terminal and use auto completion to let the auto completion list all versions.
If you have a version of python 2 installed (maybe named python2.7) find all files which refer to python2 by using grep -rnw python2 in the root folder of the activator and change python2 to whatever python 2 is called on your system.
If you dont have a version of python 2 installed you can most likely install it via brew.

Well it looks like audible-activator updated a few days ago to support python 3. The shebang on the python script is either wrong or they didn't update that file to python3. You can try changing the shebang from
#!/usr/bin/env python2

to
#!/usr/bin/env python

and see if that works for your system. Otherwise follow b0wter's advice and see if the upstream project can help.

license: WTFPL


text:
Failed to install core package via symlink

Steps to reproduce below:

Clone repo
build
try to install core package via symlink as describe in https://github.com/Krzysztof-Cieslak/FSharp.Atom/issues/3#issuecomment-98683388

Atom Version: 0.196.0
System: GOODEWIND
Thrown From: core package, v0.0.1
Stack Trace
Failed to activate the core package
At path must be a string

TypeError: path must be a string
  at TypeError (native)
  at Object.fs.readdir (fs.js:800:11)
  at Object.fs.readdir (ATOM_SHELL_ASAR.js:422:24)
  at Core__projInit$ (D:\code\FSharp.Atom\src\core\lib\core.js:485:16)
  at Core__initialize$ (D:\code\FSharp.Atom\src\core\lib\core.js:447:5)
  at Core__activate$ (D:\code\FSharp.Atom\src\core\lib\core.js:433:5)
  at D:\code\FSharp.Atom\src\core\lib\core.js:1632:14
  at Object.module.exports.AtomFSharpCore.activate (D:\code\FSharp.Atom\src\core\lib\core.js:1652:26)
  at Package.module.exports.Package.activateNow (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package.js:222:19)
  at C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package.js:203:30
  at Package.module.exports.Package.measure (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package.js:147:15)
  at Package.module.exports.Package.activate (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package.js:195:14)
  at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package-manager.js:434:21)
  at C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package-manager.js:418:29
  at Config.module.exports.Config.transact (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\config.js:311:16)
  at PackageManager.module.exports.PackageManager.activatePackages (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package-manager.js:413:19)
  at PackageManager.module.exports.PackageManager.activate (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package-manager.js:394:46)
  at Atom.module.exports.Atom.startEditorWindow (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\atom.js:623:21)
  at Object.<anonymous> (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\window-bootstrap.js:12:8)
  at Object.<anonymous> (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\window-bootstrap.js:23:4)
  at Module._compile (module.js:452:26)
  at Object.loadFile [as .js] (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\babel.js:162:21)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at setupWindow (file:///C:/Users/Steffen/AppData/Local/atom/app-0.196.0/resources/app.asar/static/index.js:86:23)
  at window.onload (file:///C:/Users/Steffen/AppData/Local/atom/app-0.196.0/resources/app.asar/static/index.js:38:7)

Commands

Config
{
  "core": {}
}

Installed Packages
# User
core, v0.0.1
paket, v0.0.1

# Dev
No dev packages

I forgot to install the packages from the readme.

still happens after installing the other packages.
Atom Version: 0.196.0
System: GOODEWIND
Thrown From: autocomplete-plus package, v2.12.1
Stack Trace
Failed to activate the core package
At path must be a string

TypeError: path must be a string
    at TypeError (native)
    at Object.fs.readdir (fs.js:800:11)
    at Object.fs.readdir (ATOM_SHELL_ASAR.js:422:24)
    at Core__projInit$ (D:\code\FSharp.Atom\src\core\lib\core.js:485:16)
    at Core__initialize$ (D:\code\FSharp.Atom\src\core\lib\core.js:447:5)
    at Core__activate$ (D:\code\FSharp.Atom\src\core\lib\core.js:433:5)
    at D:\code\FSharp.Atom\src\core\lib\core.js:1632:14
    at Object.module.exports.AtomFSharpCore.activate (D:\code\FSharp.Atom\src\core\lib\core.js:1652:26)
    at Package.module.exports.Package.activateNow (C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package.js:222:19)
    at C:\Users\Steffen\AppData\Local\atom\app-0.196.0\resources\app.asar\src\package.js:203:30

Commands

Config
{
  "core": {}
}

Installed Packages
# User
autocomplete-plus, v2.12.1
core, v0.0.1
paket, v0.0.1

# Dev
No dev packages

During "installation discussion" with @isaacabraham we got same error on Windows 8.1 machine while trying opening standalone fsx file. Looks like issue is not connected with symlink and is reproduced also for normal copy of package in Atom package folder.  Will investigate it more Soon™

authors: Krzysztof-Cieslak forki


text:
Need Assistance- Scoreboard not always loading

Hi,
I am currently using InfoBoardReborn on my server and have different scoreboards setup for different worlds. The only problem is that sometimes the scoreboard does not load in and other times it takes a few minutes for it to appear.
I was just wondering if there was anyway this could be fixed so that it doesn't take so long to load in.
Any help is much appreciated. Cheers.

This is a bug with the way the "whitelist" of the board. I take it that most boards have a different world they are allowed to be shown. The reason it takes a while for a scoreboard to be shown is because the server has 1 number that remembers on what board it is. but if the player is not allowed to see that board then it doesn't show one. until it ticks and goes for the next board. (which will force a board on the player.)

This is something I changed in the new version of IBR, every player has a "ladder" which contains all the boards the player is allowed to see and a number to keep track wich board.
I'm still working on the animations of the new version, so it should be done soon.


text:
Configurable evaluator response strategies for the phases of the auth pipeline

Authorino implements 3 so-called "strategies" for the 3 first phases of auth pipeline (wristband phase excluded). These strategies are:

at least one of the concurrent evaluators of the phase must resolve (at-least-one);
any of the concurrent evaluators of the phase must resolve (any);
all of the concurrent evaluators of the phase must evaluate (all).

These strategies currently map one-to-one with the first 3 phases of Authorino's auth pipeline, respectively: identity phase, metadata phase and authorization phase. I.e.,

if more than one identity source is specified, the supplied token or credential must always be validated with at least one the sources (i.e., at-least-one);
if more than one external source of metadata is specified, any number of them (from none, to all of them) can return a proper value and still Authorino will trigger the next phase (authorization) regardless (i.e., any);
if more than one authorization policy is specified, all of them must grant access, otherwise access will be denied altogether (i.e., all).

This issue is a request to make how the 3 strategies map to the phases configurable, with the default strategies still falling back to the ones currently enforced.
Example for a possible implementation
apiVersion: config.authorino.3scale.net/v1beta1
kind: Service
metadata:
  name: my-api-protection-1
spec:
  hosts:
    - myapi.io
  identity:
    - name: auth-server-1
      oidc:
        endpoint: https://auth-server-1/auth
    - name: auth-server-2
      oidc:
        endpoint: https://auth-server-2/auth
  metadata:
    - name: semaphore-1
      http:
        method: GET
        sharedSecretRef:
          name: myapi-protection-metadata-secrets
          key: semaphore-1-shared-auth
    - name: semaphore-2
      http:
        method: GET
        sharedSecretRef:
          name: myapi-protection-metadata-secrets
          key: sempahore-2-shared-auth
  authorization:
    - name: authz-policy-1
      json:
        rules:
          - selector: auth.metadata.semaphore-1.color
            operator: eq
            value: green
          - selector: auth.metadata.semaphore-2.color
            operator: eq
            value: green
          - selector: auth.identity.role
            operator: eq
            value: restricted-user
    - name: authz-policy-1
      opa:
        inlineRego: |
          semaphore1 { input.auth.metadata.semaphore-1.color == "red" }
          semaphore2 { input.auth.metadata.semaphore-2.color == "red" }
          sunday { time.weekday(time.now_ns()) == "Sunday" }
          allow { not semaphore1; not semaphore2; sunday }
  identityStrategy: any
  metadataStrategy: all
  authorizationStrategy: atLeastOne

The example above would be for a case where all the default strategies are overridden as follows:

any of the identity sources can help verifying the identity (including none, i.e., authenticating is optional);
all metadata sources must respond with data;
at least one of the authorization policies must grant access – i.e., either the user was authenticated and has the "restricted-user" role, or it's a Sunday; in both cases semaphore 1's and semaphore 2's colors can neither be "red".

Special considerations
The cases for configurable strategies in the metadata and in  the authorization phases are less probably needed than the one for the identity phase, due to the existing options to represent conditionals in Authorino authorization policies (both, in OPA policies and in JSON  pattern-matching policies). The configurability of the strategies would nonetheless provide another way to describe the authorization logic, at the very least improving readability in some cases.
Another thing to take into account is what happens when, in the metadata phase, the chose strategy fails (e.g. atLeastOne or all enforced, but none of the sources respond)? Should Authorino reject the request as DENIED? Would this virtually be promoting the metadata sources to potential external authorizers?

Inspired by OAS3 spec, the authorino API could be something like this:

Thanks for the suggestion, @eguzki.
There are few aspects of your suggestion that I'd like to comment about (if I even got them right):

Object linking, reusability and extension: the idea of having "identity schemes" that can be parametrized once used as "identity requirements"
Scope: what's expected with this issue vs. OAS
Use cases and implementation (regarding identity sources, but other types of evaluators as well): there are at least 4 now: "at least one evaluator is required to succeed", "all evaluators are required to succeed", "all evaluators are optional", "some (more than one) evaluators are required, some aren't"

1. Object linking, reusability and extension
In Authorino we don't use this pattern of having a base definition that can be extended when referred somewhere else in the CR. I know it's used in OAI specs, but I'd rather keep the way it is in Authorino for now. When we get to point where reusing definitions becomes a critical requirement, we'll probably be adding more specific CRDs and wiring things up through object refs instead.
Moreover, I'm afraid of people overusing those "identity scheme" definitions and later ending up with more schemes declared than actually used in "identity requirement". Again, I know this pattern is used a lot in OAI specs, but no so much of the typical UX expected when dealing with K8s CRs, IMO. Only counterexample I can think of are of volumes and volumeMounts in Deployment specs, but not cool. If an entire CR is not used ("garbage"), then it's easier to manage – delete it and done. But if the gargabe is inside of a still valid and used resource spec, then... sigh; it will stay there forever.
That said, maybe you were thinking that no "identity scheme" would become "garbage" inside a CR. If it's there, then it is being used. It is more about which schemes are optional and which ones are required... more on that further down in "3. Use cases"
*2. Scope (of this issue)
In general, I'd say your suggestion goes beyond what was originally expected with this issue, which was making two things that already exist, and that are currently hard-linked to each other in Authorino, configurable. The arrays of evaluators (identity, metadata, authorization and response) are there, as well as the different strategies to move to the next phase in the auth pipeline (atLeastOne, all, any), and they already work as-is.
The only thing is that the mapping of the different types of arrays that correspond to each phase of the pipeline and their respective strategy is now always identity → atLeastOne, metadata → any, authorization → all, response → all. We wanted to make this a choice of the user, with default to how it works now if not specified otherwise. Under that original plan, stating, e.g., so all applies to the list of identity sources instead of atLeastOne would be as simple as that: identity → all, done.
I was not at all hoping this to support any OAS-specific requirement. We're not going against it, of course, but there are things that we want to cover here that are unrelated to OAS (e.g. required/optional evaluators in phases other than identity verification), and at least one thing that you mentioned that is out of scope of this issue IMO (i.e. object linking, reusability and extension).
3. Use cases and implementation
The implementation proposed in the description of the issue should suffice to cover the use cases "at least one evaluator is required", "all evaluators are required" an "all evaluators are optional (but still try them all just in case – i.e. no cancelling of context)". I admit that, until now, I hadn't thought about the use case "some (more than one) are required, some are optional".
I guess for this other (yet uncovered) use case, a possible different implementation that not only satisfies it, but also makes it a superset of all other use cases, and yet avoids the whole linking/reusing/extending of object bits that I think are out of scope of this issue, is a simple flag optional: true that all evaluators would support (with default to optional: false).
At a glance, it's simple and intuitive, I think.
In terms of changes required in the code to achieve it, on the other hand, this solution would be a lot harder than what I had in mind originally, because of the cancelling of the Go contexts of concurrent evaluators running in the same phase.
Before triggering the phase, Authorino would have to scan the flags of all evaluators of the phase, to then monitor if all required ones have finished. (This "scan" is virtually equivalent to your proposed, more explicit, list of required ones.) If at least one among the required has failed, the pipeline can be aborted. However, if all required evaluators have finished successfully, but there are still some optional ones running, can the context be cancelled and the pipeline moved to the next phase? We'd need to think about that. Cancelling is one thing; letting the thread go all the way through and just ignore the result when it fails is a whole other thing.
Anyway, it's not as straightforward as just allowing the user to choose among the existing strategies which one to apply to which phase.

repo: Kuadrant/authorino


text:
🛑 Kuerbis is down

In d00dcc0, Kuerbis (https://kuerbis.ovh) was down:

HTTP code: 502
Response time: 7466 ms

Resolved: Kuerbis is back up in 3a7533a after 9 minutes.

repo: Kuerbis-HD/Kuerbis-Web-Status


text:
Shell Sort In C

🛠 Issue (Number)

Issue no #263
👨💻 Changes proposed
Added the program for sorting the elements using Shell Sort in C
✔ Check List (Check all the applicable boxes)

[✔] My code follows the code style of this project.
[✔] This PR does not contain plagiarized content.
[✔] The title of my pull request is a short description of the requested changes.

📷 Screenshots

I have added some more comment lines for explanation of gap concept in the code.

@Sanjanabharadwaj25 Added the time and space complexity in the code.

@Kumar-laxmi Please merge the pull request as it has got the approvals of all the reviewers

@Mansiuniyal Please don't add same algo. using two different PR

authors: Kumar-laxmi Mansiuniyal

repo: Kumar-laxmi/Algorithms


text:
support async/await function

Hello, when I try to change my function using async/await like this:
const login = async (req, res, next) => {
  const user = await User.findOne({ email: req.body.email });

  if (!user || !bcrypt.compareSync(req.body.password, user.password)) {
    const err = new APIError('Authentication error', httpStatus.UNAUTHORIZED, true);
    return next(err);
  }

  const token = jwt.sign({
    email: user.email
  }, config.jwtSecret);
  return res.json({
    token
  });
};

I got this error when running yarn start
E:\Coding\beautypediavn\beautypediavn-backend-v2\dist\server\controllers\auth.controller.js:79
  var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(req, res, next) {
                               ^

ReferenceError: regeneratorRuntime is not defined
    at E:\Coding\beautypediavn\beautypediavn-backend-v2\dist\server\controllers\auth.controller.js:79:32
    at Object.<anonymous> (E:\Coding\beautypediavn\beautypediavn-backend-v2\dist\server\controllers\auth.controller.js:118:2)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (E:\Coding\beautypediavn\beautypediavn-backend-v2\dist\server\routes\auth.route.js:23:13)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (E:\Coding\beautypediavn\beautypediavn-backend-v2\dist\server\routes\index.route.js:15:13)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)

Any ideas on how to fix this or supporting this? Thank you, I'm not so used to these config things.

You need to install the plugin babel-plugin-syntax-async-functions

@osahner thank you but it doesn't work

@lednhatkhanh install the babel-pollyfil and import it before all other modules in index.js
import polyfill from 'babel-polyfill'; // eslint-disable-line

authors: fcpauldiaz lednhatkhanh osahner


text:
Title: I wish to add Blockchain README file

Explain what you want to add/change in documentation.
As of now readme file is empty and I want to add content according to the format needed.

@muskan467 Add more description about it

I will add image describing the repo and its three level by adding links of the projects of respective folders. And in last message to the contributors for contributing guidelines. I'll try to make it more informative and creative.

@muskan467 Sounds good.