primordic/IssueDupesLite huggingface dataset:
Repository: mileszs/wicked_pdf

Issue #823: WickedPDF is killing my application. SystemStackError (stack level too deep):  
Created: 2019-04-05T07:36:11Z
Application is working fine.
added wicked_pdf to gemfile
now nothing is working andymore and i always receive the following message
SystemStackError (stack level too deep):
  actionpack (4.2.3) lib/action_dispatch/middleware/reloader.rb:79

rails 4.2.3 with ruby 2.1.0
adding initializer or mimetype won't fix it

Duplicate issue #827: SystemStackError when app also uses the okcomputer gem
Created: 2019-04-18T20:55:41Z
Issue description
If your Rails (in my case Rails 4.2.11) app also uses the okcomputer gem, then you'll get a SystemStackError when trying to visit the /okcomputer url.  Works fine with version 1.1.0 of wicked_pdf.
Expected or desired behavior
Should be able to use okcomputer gem as well as wicked_pdf
System specifications
wicked_pdf gem version (output of cat Gemfile.lock | grep wicked_pdf):
Problem occurs with wicked_pdf 1.2.0, 1.2.1 and 1.2.2
wkhtmltopdf version (output of wkhtmltopdf --version):
whtmltopdf provider gem and version if one is used:
platform/distribution and version (e.g. Windows 10 / Ubuntu 16.04 / Heroku cedar):

Closing comment (2019-06-10T17:07:47Z): @BlakeWard I wonder if this is related to #823 I'm also having this issue where I'm trying to override ActionController::Base's render method by using Module#prepend but because of the aliasing done by WickedPDF for render, it's hitting a stack overflow error.
Repository: mileszs/wicked_pdf

Issue #364: Link same worlds in PDF
Created: 2014-11-25T14:00:31Z
I want to link, the same worlds which have been used in the generated pdf using wicked_pdf. i used internal linking concept. it was worked in html(can jump form one page to another) but cant able to do same thing in generated pdf with same html. Because the link in the pdf point to the temp file path,  Is there is any option for do that ?

Duplicate issue #363: Link same worlds in PDF
Created: 2014-11-25T13:30:47Z
I want to link, the same worlds which have been used in the generated PDF, How can i do that, is there is any default option is there in wicked_pdf itself?

Closing comment (2014-12-02T03:57:22Z): Duplicate of #364
Repository: mileszs/wicked_pdf

Issue #41: How to rewrite helper wicked_pdf_image_tag to work with paperclip images
Created: 2011-05-12T21:35:27Z
To works with images from paperclip i rewrite this method
  def wicked_pdf_image_tag(img, options={})
    if img[0].chr == "/" # images from paperclip
      new_image = img.slice 1..-1
      image_tag "file://#{Rails.root.join('public', new_image)}", options
    else
      image_tag "file://#{Rails.root.join('public', 'images', img)}", options
    end
  end

Duplicate issue #338: rendering pdf file from the model ignores images(uploaded with Paperclip)
Created: 2014-09-26T14:37:11Z
I am rendering the file from inside the model. I actually want to render it through Sidekiq but it's the same result.
Here is my code so far:
model:
def pdf_rendering(offer)
  view = ActionView::Base.new(ActionController::Base.view_paths.first, {})
  view.extend(ApplicationHelper)
  view.extend(Rails.application.routes.url_helpers)
  pdf = WickedPdf.new.pdf_from_string(
    view.render_to_string(
    :template => "displays/show_offer.pdf.erb",
    :layout => "layouts/templates.html.erb",
    :locals => { :@offer => offer }),
    :margin => { :top => 28, :bottom => 10 },
    :print_media_type => false,
    :page_size => "A4",
    :disable_smart_shrinking => true,
    :header => { :html => { :template => 'displays/offer_header.pdf.erb' }, :spacing => 0 },
    :footer => { :center => '[page] of [topage]' },
  )
  save_path = Rails.root.join('public', 'offer.pdf')
  File.open(save_path, 'wb') do |file|
    file << pdf
  end
  save_path
end

controller:
def show_offer
  @template = Template.new
  send_file @template.pdf_rendering(@offer), :disposition => 'inline'
end

In templates layout:
<%= stylesheet_link_tag "templates", media: "all" %>
<%= wicked_pdf_stylesheet_link_tag "templates" -%>

If I specify a wicked_pdf_image_tag:
<%#= wicked_pdf_image_tag 'stamp.png' %>

it gives me 'undefined method `pathname' for nil:NilClass'
When I'm rendering the pdf file from the controller, it all works fine.
How can I correct this? Is it a matter of the way wicked_pdf is handling assets?
Thanks!

Closing comment (2014-09-26T15:20:07Z): This looks to be related to #41
The asset helpers mostly deal with stuff in the asset pipeline, since these are paperclip images, they are likely elsewhere on the filesystem. I'm not sure how the pipeline sorts out the difference between paperclip images and normal assets.
Please let me know if that helps or not, and I'll dig in further if necessary.
Repository: mileszs/wicked_pdf

Issue #810: Problem upgrading to 1.2.0
Created: 2019-03-18T08:29:16Z
After upgrading from 1.1.0 to 1.2.0 all requests to the rails app fail. The system seems to go into an infinite loop when trying to render the page. The log shows
FATAL Rails :
SystemStackError (stack level too deep):
wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:30:in render' wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:43:in render_with_wicked_pdf'
... (this goes on and on)...
wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:30:in render' wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:43:in render_with_wicked_pdf'
wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:30:in render' wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:43:in render_with_wicked_pdf'
wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:30:in render' wicked_pdf (1.2.0) lib/wicked_pdf/pdf_helper.rb:43:in render_with_wicked_pdf'
actionpack (4.2.11.1) lib/action_controller/metal/implicit_render.rb:10:in default_render' actionpack (4.2.11.1) lib/action_controller/metal/implicit_render.rb:5:in send_action'
System configuration:
Ubuntu 18.04
Rails 4.2.11.1
Ruby 2.4.5

Duplicate issue #999: Stack level too deep - ActionMailer Preview with wicked_pdf
Created: 2021-12-23T16:15:37Z
Issue description
I am using wicked_pdf to attach a PDF to an email. I have managed to get the solution working however when trying to preview the email/pdf using ActionMailer preview. I am hit with a 'stack level too deep' error caused by a call to
 method(:render).super_method.call(options, *args, &block)
Steps to reproduce:
install gems - wicked_pdf & wkhtmltopdf
rails g wicked_pdf
Access rails/mailers
Any help would be much appreciated!
Expected or desired behaviour
When accessing the rails/mailers/ I will be shown my mailers to preview.
System specifications
Rails 6.1.4.4
wicked_pdf 2.1.0
wkhtmltopdf-binary 0.12.6.5
wicked_pdf gem version (output of cat Gemfile.lock | grep wicked_pdf):
wkhtmltopdf version (output of wkhtmltopdf --version):
whtmltopdf provider gem and version if one is used:
platform/distribution and version (e.g. Windows 10 / Ubuntu 16.04 / Heroku cedar):

Closing comment (2021-12-24T14:24:10Z): Closing as duplicate of #810
Repository: mileszs/wicked_pdf

Issue #310: Certain 'options' can cause commands other than 'wkhtmltopdf' to run.
Created: 2014-06-18T20:49:18Z
So, at $dayjob, we discovered a remote code execution vulnerability in an app that was using wicked_pdf for PDF generation.  The code responsible was building 'options' in a pretty straightforward way, which is probably not unique to our app, and didn't look like it ought to be dangerous.  (And we have a fix, which we expect to deploy locally.)
I could put details here, but would prefer to privately discuss with a maintainer (unixmonkey?) first, if possible, due to the potential security implications for other deployed apps.  Email to rst@ai.mit.edu, as in my profile.  Thanks!

Duplicate issue #320: Feeding a string containing a backtic as an option
Created: 2014-07-23T22:54:38Z
If you feed a string containing a backtic ( ` ) as an option to the generator, it screws up the shell command and causes an error. This should probably be escaped somehow?

Closing comment (2014-07-24T21:51:18Z): This sounds related to #310 & #311
Please update to 0.11.0 and let me know if that fixes it.
Repository: milvus-io/milvus

Issue #4812: Support collection rename
Created: 2021-03-15T07:02:57Z
The user wants the collection rename API to switch between two collections
Implementation steps:

User creates a new collection B
User uses the collection rename API to change the name of collection B to collection A.
User delete the original collection A

API Reference:
Collection_Rename(collection_name ,collection_rename)
Parameters
collection_rename(Str)- The name of the new collection
Previous issue Link:#1714

Duplicate issue #1714: Add  rename collection_name method
Created: 2020-03-20T08:41:47Z

Closing comment (2021-08-17T07:50:37Z): Close this one, tracked by #4812
Repository: milvus-io/milvus

Issue #26762: [Bug]: unable to load collection with more than 128 partitions
Created: 2023-08-31T07:16:03Z
Is there an existing issue for this?

 I have searched the existing issues

Environment
- Milvus version: master
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:
Current Behavior
with the etcd tx limit, Milvus can't load collection with more than 128 partitions
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response

Duplicate issue #28343: [Bug]: Fail to load 64 collections with few entities, and not able to free memory after that
Created: 2023-11-10T08:27:43Z
Is there an existing issue for this?

 I have searched the existing issues

Environment
- Milvus version: 2.3-20231107-91833381
- Deployment mode(standalone or cluster): standalone
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):
Current Behavior

Milvus fails to load 64 collections with 128 partition each
Memory usage does not reduce in an hour after drop all the collection, and not be able to reuse the memory
Milvus always waits for 10 mins before refusing to load a new created collection for not enough memory

Expected Behavior

load all the collection successfully.
Memory usage reduce in seconds for reusing.
Milvus refuse to load in seconds for not enough memory

Steps To Reproduce
1. Deploy a milvus standalone with 2c8g
2. create a collection and build index 
3. create 128 partitions, insert 100 entities into every partition, load every partition
4. repeat step 2 and 3 for 64 times
Result: Milvus fails to load 64 collections with 128 partition each
5. drop all the collections in a loop
Result: Memory usage does not reduce in an hour after drop all the collection
6. repeat step 2 and 3 for once
Result: Milvus always waits for 10 mins before refusing to load a new created collection for not enough memory. It think 10 mins is too much for predicting memory usage.
Milvus Log
my pods in 4am cluster:
yanliang-233-etcd-0                                               1/1     Running             0              18h     10.104.23.77    4am-node27   <none>           <none>
yanliang-233-milvus-standalone-596ddcf9c-29856                    1/1     Running             0              87m     10.104.6.49     4am-node13   <none>           <none>
yanliang-233-minio-f468b8fc5-dvgqw                                1/1     Running             0              18h     10.104.23.78    4am-node27   <none>           <none>


Anything else?
No response

Closing comment (2023-11-15T03:35:17Z): Fail to release collection with more than 128 partitions. Etcd constraint similar to #26762
Repository: milvus-io/milvus

Issue #18242: [Feature]:Load and release partitions dynamically
Created: 2022-07-12T09:39:12Z
Is there an existing issue for this?

 I have searched the existing issues

Is your feature request related to a problem? Please describe.
In milvus2.0.2, I created multiple partitions under a collection. In my actual production environment, I added data every day. I set one partition per day. The first time I load ten partitions into memory, and then when I load another partition into memory, Milvus will report an error,
pymilvus.client.exceptions.BaseException: <BaseException: (code=5, message=some partitions [434533531536326657] of collection 434533531523157313 has been loaded into QueryNode, please release partitions firstly [LoadParametersMismatch])>
I want to implement the function of loading or releasing partitions at will. When will it be implemented？
Describe the solution you'd like.
No response
Describe an alternate solution.
No response
Anything else? (Additional Context)
No response

Duplicate issue #18579: [Enhancement]: Independent partition load and release
Created: 2022-08-10T02:53:27Z
Is there an existing issue for this?

 I have searched the existing issues

What would you like to be added?
Independent partition control, partitions are loaded and released independently of each other influences. And when querying the collection, query all currently loaded partitions together.
Why is this needed?
For online vector retrieval tasks, we need to update the vector frequently. But independent partial loading and releasing are not supported for now. This makes the operation of updating the vector unable to be seamless, and the old part must be released before the new part is loaded, which will interrupt the continuous online query.
We hope that Milvus can load the new partition at the same time a's the old partition is loaded, and then release the old partition so that the vector update has no effect on online query tasks.
Anything else?

Closing comment (2022-08-10T08:36:14Z): Thanks for the advice. Same as #18242
Repository: minio/mc

Issue #4547: Google Cloud Storage mc cp fails after upgrade to 2023-04-12 with error "Unable to validate source "
Created: 2023-04-13T08:47:47Z
We do a mc cp during an initContainer of a k8s service. We are downloading files from a Google Cloud Storage (GCS) bucket.
This morning we suddenly started seeing problems where the error "Unable to validate source" was reported during startup (see full error bellow).
We determined, that the latest version of minio/mc is causing that issue:

RELEASE.2023-04-12T02-21-51Z  seems to be broken

--version: mc version RELEASE.2023-04-12T02-21-51Z (commit-id=1843717c57fb87612469b7610344a7d49d97a497)
Docker image: docker.io/minio/mc@sha256:1336f0994d5caad9106f273cfccee986a49cb23655b5a3c48cd5d19c05abb108 


RELEASE.2023-04-06T16-51-10Z seems to work

--version:  mc version RELEASE.2023-04-06T16-51-10Z (commit-id=1c6f4f48aba72b4c9770d911e95225f9de6e9488)
Docker Image: docker.io/minio/mc@sha256:6bb24bf3bf60f464e4f545fcaeb7dca1344e86780cd9597750e3f9c95c9facda 



Workaround
Fall back to RELEASE.2023-04-06T16-51-10Z
Expected behavior
download works without problems
Actual behavior
mc:  Unable to validate source `GCS/XXXX-translations/XXX/XXXX: The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.
Steps to reproduce

Copy a file from a GCS Bucket

Duplicate issue #4552: Google Cloud Storage gives "The request signature we calculated does not match the signature you provided" since RELEASE.2023-04-12T02-21-51Z
Created: 2023-04-17T09:48:04Z
Expected behavior
No error
Actual behavior
mc: <ERROR> Unable to read from `gcs/bucket-name/file`. The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.

Steps to reproduce the behavior
With the same credentials, this doesn't work
docker run --rm -ti -e MC_HOST_gcs=rotating_credentials minio/mc:RELEASE.2023-04-12T02-21-51Z cat gcs/bucket-name/file 
But this works
docker run --rm -ti -e MC_HOST_gcs=rotating_credentials minio/mc:RELEASE.2023-04-06T16-51-10Z cat gcs/bucket-name/file

Closing comment (2023-04-17T16:33:46Z): Closing as duplicate of #4547
Repository: minio/mc

Issue #3187: mc not preserving ownership
Created: 2020-04-22T15:50:14Z
Expected behavior
mc should preserve ownership
Actual behavior
mc doesnt
Steps to reproduce the behavior
~ ls -l cont/box0/ | grep scripts
drwxr-xr-x 2 sshd daemon 4096 Apr 22 15:10 scripts
~ mc mirror -a --remove --overwrite cont/box0/ dot9/cont/box0/
0 B / ?
~ rm -rf cont/box0
~ mc mirror -a dot9/cont/box0/ cont/box0/
...000/cont/box0/testFile: 149 B / 149 B 7.03 KiB/s 0s
~ ls -l cont/box0/ | grep scripts
drwxr-xr-x 2 root root 4096 Apr 22 15:13 scripts
@klauspost i am using -a flag which is same as --preserve as per ticket #3186
Also tested with --preserve instead of -a, same result
mc --version
mc version RELEASE.2020-04-19T19-17-53Z

Duplicate issue #2980: mc cp -a not working on macos
Created: 2019-12-04T11:46:36Z
Expected behavior
if I call mc cp -r -a foo local then mc cp -r -a local/foo foo_2 I should get a copy of the files in foo with their timestamps preserved.
Actual behavior
I can call mc cp -r -a foo local successfully, but subsequently calling mc cp -r -a local/foo foo_2 fails with errors "mc:  Failed to copy 'blah'. Error in parsing file system attribute"
When I stat the file with mc cp -r -a local/foo/blah I see that the metadata is stored as:
  X-Amz-Meta-Mc-Attrs: atime:2019-12-04 11:07:31.90513642 +0000 GMT/ctime:2019-12-04 10:52:58.282475048 +0000 GMT/gid:20/gname:staff/mode:33252/mtime:2019-12-04 10:52:58.282475048 +0000 GMT/uid:501/uname:william.plano

Steps to reproduce the behavior
mc cp -r -a foo local
mc cp -r -a local/foo foo_2

mc version
built from source at 3f426ff
System information
mac osx mojave 10.14.6 (18G1012)

Closing comment (2020-05-04T05:17:29Z): Closing as duplicate of #3187
Repository: minio/mc

Issue #3990: Memory leak when mirroring older minio servers.
Created: 2022-02-18T08:18:36Z
Expected behavior
The container version of minio/mc should use the available S3 APIs and mirror minio servers no matter their age.
Actual behavior
The containerized version of mc eventially consumes all memory and is OOM killed by docker.
Steps to reproduce the behavior
I am running an older minio server as a source server. It was installed circa 2020 and for regulatory reasons has not been updated. It is a simple minio in front of a single disk setup.
The target minio instance is a 4 node cluster that is up-to-date.
I run mc as a docker container on docker swarm using this stack file:
version: "3.9"

configs:
  mc-2:
    file: .mc/config.json

networks:
  net:

services:
  sync-zfp-iob:
    image: minio/mc:latest
    command: >
      mirror
      --watch
      --monitoring-address=0.0.0.0:8080
      --quiet
      zfp/downloads
      iob/downloads
    networks:
      net:
    configs:
      - source: mc-2
        target: /root/.mc/config.json
    deploy:
      resources:
        limits:
          cpus: "0.2"
          memory: 1G
      restart_policy:
        max_attempts: 1

Prepar a .mc/config.json which contains an iob config pointing to a new minio instance and a zfp config pointing to an older - circa 2020 - minio instance. Have a "downloads" bucket on the old instance you want to mirror to the new instance.
docker stack deploy --compose-file sync-stack.yml sync
wait 30 minutes
docker service ps sync_sync-zfp-iob
It should be oom killed by docker by now.

mc --version

mc version RELEASE.2022-02-16T05-54-01Z

System information
Additional Info
Without the addition of --watch the command performs the mirror operation pretty flawlesslessly, but we need to mirror new content as it arrives. At any rate, if this operation is not supported, mc should fail outright, or log errors to the prometheus endpoint, NOT leak memory and die.

Duplicate issue #3997: mc on window memory can't reuse
Created: 2022-02-23T08:31:38Z
Expected behavior
memory can limit  below 1G
Actual behavior

Steps to reproduce the behavior
mc --version
RELEASE.2022-02-13T23-26-13Z
System information
winserver 2008r2

Closing comment (2022-02-23T09:48:47Z): related to #3990
Repository: minio/mc

Issue #3060: mc mirror overwrite currently broken
Created: 2020-01-28T23:51:33Z
Expected behavior
mc mirror --overwrite should detect changed files
Actual behavior
It seems, it currently doesn't
Steps to reproduce the behavior
$ mc mb myminio/mybucket 
Bucket created successfully `myminio/mybucket`.

$ echo one > testdir/testfile.txt

$ cat testdir/testfile.txt 
one

$ mc mirror --overwrite testdir myminio/mybucket 
...estfile.txt:  4 B / 4 B ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 227 B/s 0s

$ mc cat myminio/mybucket/testfile.txt
one

$ echo two > testdir/testfile.txt

$ cat testdir/testfile.txt 
two

$ mc mirror --overwrite testdir myminio/mybucket 
 0 B / ? ┃░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓┃ 0s

$ mc cat myminio/mybucket/testfile.txt
one

mc --version
mc version RELEASE.2020-01-25T03-02-19Z
System information
Client and Server: Fedora 31 with XFS as filesystem
minio version 2020-01-25T02:50:51Z

Duplicate issue #3331: Minio fails to mirror file after changes if file's size matches
Created: 2020-07-30T09:17:46Z
Expected behavior
mc mirror should always mirror files with changes
Actual
As described in the original issue I'm still able to reproduce this behavior. Files with the same size will not be synced even if the content has changed. #2187
mc --version
mc version RELEASE.2020-07-11T05-18-52Z
System information
Ubuntu 18.08

Closing comment (2020-09-02T21:18:15Z): @ebozduman
Just realised this issue is a duplicate of #3060
From all the discussion here and there, I understand why the default behavior is what it is but would be nice if this issue could be documented in the help for mc mirror
Seems the only workaround at this stage is to use rclone
Repository: minio/mc

Issue #1513: Fix cli arguments to handle order of arguments properly
Created: 2015-12-01T02:49:18Z
For example
mc cp play/testbucket -r . 

would end up copying all contents from 'current' working directory '.' to play/testbucket while not conveying those when providing cli arguments.

Duplicate issue #1747: mc copies the wrong selection in this case?
Created: 2016-07-04T12:27:50Z
$ cd /tmp/test/
$ mkdir mc
$ touch mc_test.go
$ mc cp -r mc myminio/bucket/
[0] ◐ mc_test.go

Closing comment (2016-07-08T22:37:29Z): Closing this as duplicate of #1513
Repository: minio/mc

Issue #1716: mc mirror outputs error for directory created in S3 console
Created: 2016-05-12T07:23:40Z
To reproduce, use Amazon S3 console to

create a bucket
create a directory images using 'Create Folder'

Setup credentials.
Test:
mc mirror s3/s3.jooki.rocks .
Responds with:
mc: <ERROR> Failed to copy ‘https://s3.amazonaws.com/s3.jooki.rocks/images’. Object key is missing, object key cannot be empty
However the files inside images/ are actually mirrored.
Tested using mc built from latest source. (current release fails to mirror at all)

Duplicate issue #1696: Suggestion: We have the "mirror" sub command, but what about deleting left over files on the Remote ?
Created: 2016-04-22T09:33:27Z
at the moment mirror is pretty good.
mc mirror --force --json $LOCAL $REMOTE
But in the above script, if i deleted a file locally, up on s3 (or mini server) it will not also delete the file. It leaves it there on s3.
If would be great if a second flag can be set to force deletes.
The use cases are many for this.
For me, i am in charge of a code base, and its got many binaries that others need. At the moment there is no way (as fas as i can see) to do a miror UP to s3, which also deletes left overs.
Looking forward to your responses on this ...
thanks Joe

Closing comment (2016-06-16T19:07:25Z): Closing as duplicate of #1716
Repository: minio/mc

Issue #2722: do not edit user configuration files without notifying user/confirmation
Created: 2019-03-21T19:56:56Z
Expected behavior
don't edit user configuration files without explicit confirmation
Actual behavior
adds
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /home/atomi/go/bin/mc mc

to .zshrc
Steps to reproduce the behavior
run mc
mc version

(paste output of mc version)

System information
guys this is no bueno.

Duplicate issue #2750: MC should not modify my .zshrc without special permission
Created: 2019-04-17T06:30:50Z
Expected behavior
Program asks to install or not completion.
And if it is allowed to install, it should use correct binary name.
Because this mc conflicts with Midnight Commander i renamed binary to minio-mc, but completion is set for mc.
Actual behavior
Program writes to shell rc file without any approval.
Always uses mc name for completion.
Steps to reproduce the behavior
Run any mc command, e.g. mc version.
mc version
Version: 2019-04-15T17:01:49Z
Release-tag: DEVELOPMENT.2019-04-15T17-01-49Z
Commit-id: 5729a01
System information
Distributor ID:	Ubuntu
Description:	Ubuntu 18.10
Release:	18.10
Codename:	cosmic

Closing comment (2019-05-09T20:53:03Z): @vooon Closing this issue as duplicate of #2722 . The status can be tracked in issue #2722 . Please feel free to reach out to us if you have further questions.
Repository: minio/mc

Issue #4231: net/http: HTTP/1.x transport connection broken: http: ContentLength=334173 with Body length 0
Created: 2022-09-02T07:45:59Z
When i use mc mirror command to sync files between to bucket ,i saw some errors ,and files with this error will not be synced.
mc:  Failed to copy http://xxx:9000/erp-prd/ProductPic/2022/08/31/630f231a327ffa0002db475c.png. Put "https:/xxxx/2022/08/31/630f231a327ffa0002db475c.png": net/http: HTTP/1.x transport connection broken: http: ContentLength=334173 with Body length 0

Duplicate issue #4635: minio failed to mirror bucket; failing with "transport connection broken"
Created: 2023-07-17T19:18:33Z
Expected behavior
I expect mc mirror to successfully mirror a bucket from a source to a destination.
Actual behavior
The mirror operation fails with:

mc:  Failed to copy https://s3.openshift-storage.svc/openshift-logging-objectbu-aceba6c1-ad0b-48e1-8bd6-53b816aeec9c/application/4b634d8c87a01139:18932aab87f:1893318bd1b:e4c9fb25. Put "https://log-backup.s3.dualstack.us-east-1.amazonaws.com/application/4b634d8c87a01139%3A18932aab87f%3A1893318bd1b%3Ae4c9fb25": net/http: HTTP/1.x transport connection broken: http: ContentLength=1882613 with Body length 0

Steps to reproduce the behavior
The failing script looks like this:
mc -C /tmp/.mc alias set openshift $SRC_ENDPOINT $SRC_ACCESS_ID $SRC_SECRET_KEY
mc -C /tmp/.mc alias set backup $DEST_ENDPOINT $DEST_ACCESS_ID $DEST_SECRET_KEY
mc -C /tmp/.mc mirror --newer-than 14d --overwrite openshift/$SRC_BUCKET backup/$DEST_BUCKET

Where SRC_* points at a Noobaa bucket, and DEST_* points at either a Minio bucket or an AWS S3 bucket (we've seen the same problem with multiple destinations).
mc --version
mc version RELEASE.2023-07-11T23-30-44Z (commit-id=c1193fc29d61d8aa69e3725a519abd95ee9da910)
Runtime: go1.19.11 linux/amd64
Copyright (c) 2015-2023 MinIO, Inc.
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>

System information
Red Hat CoreOS (OpenShift 4.10)

Closing comment (2023-07-17T19:36:02Z): Astute readers will note that the symptoms here are a duplicate of #4231. That issue was closed without much of an explanation; @harshavardhana says:

mc gave up because this is an unrecoverable error - it cannot be retried since the connection was broken mid-flight during the socket read @dingsongjie

Why is this an unrecoverable error? We're transferring distinct objects over a stateless protocol. If the connection breaks, you establish a new connection and re-send the object.
Is the solution here to wrap mc mirror in a while loop?
while ! mc -C /tmp/.mc mirror --newer-than 14d --overwrite openshift/$SRC_BUCKET backup/$DEST_BUCKET; do
  sleep 1
done

That seems like logic that should be wrapped around the transfers of each object, rather than the entire mirror operation.
Repository: mistic100/jQuery-QueryBuilder

Issue #653: Multi-tiered filter category
Created: 2018-03-16T16:50:47Z
I'm trying to implement this library, but I need the ability to add a multi-tiered filter categories. Where the first tier opens another select box with 2nd tier options and so on... Is this currently possible or will this be a new feature?

Duplicate issue #853: Multi-level Menu of Filters
Created: 2020-01-06T12:24:12Z
Hi, I need to add multi-level filter. As you can see in below mock-up screen there is Demographic filter and I want to have its multiple levels. Can I do this using plugin's or events. When ever the specific value i.e Date or Code selected from sub menu, its input should show accordingly.
Please guide me.

Thanks,

Closing comment (2020-01-06T12:36:48Z): Duplicate of #653 (and many others).
TLDR : is not currently possible.
Repository: mistic100/jQuery-QueryBuilder

Issue #284: Complex Operators with custom inputs (eg modulo)
Created: 2016-05-03T12:41:40Z
I am looking for a way to implement a modulo operator, but I am not sure what might be the way to do so.
When selecting the modulo op the resulting rule should display something like this (please ignore the first and last select, the image is taken from the current implementation):

The idea is to model operations like:
field % value = 5
field % value > 10
....

I've been able to add the modulo operator but all the fields are now shown as inputs for numbers:
(function() {

  var QueryBuilder = jQuery.fn.queryBuilder,
      operators = QueryBuilder.defaults('operators'),
      operatorsAsArray = Object.keys(operators).map(function (key) {return operators[key]});

  operatorsAsArray.push({
    type: 'modulo',
    nb_inputs: 3,
    apply_to: ['number']
  });

  QueryBuilder.defaults({operators: operatorsAsArray});
})();

Is there a way to specify custom inputs or a template for an operator?

Duplicate issue #925: I am updating the value of the textfield through jquery but when i run queryBuilder('getRules') it is empty. May i know if there are still some functions that need to trigger for the rules to be not empty?
Created: 2021-09-22T16:08:41Z
I am updating the value of the textfield through jquery but when i run queryBuilder('getRules') it is empty. May i know if there are still some functions that need to trigger for the rules to be not empty?
Originally posted by @PIlepRusel in #581 (comment)
I noticed the exact same issue... I think the queryBuilder isn't binding the events to these generated input elements

Closing comment (2021-09-22T18:41:28Z): I suppose you are trying to change the input based in the operator, which is not supported (there is an issue for that).
Of course if you manually overwrite the inputs it will destroy the existing listeners and nothing will update.
Your solution is correct I guess.
If it works please close this issue, the input/operator feature will be tracked in #284
(disclaimer : I don't really work on this project anymore)
Repository: mistic100/jQuery-QueryBuilder

Issue #284: Complex Operators with custom inputs (eg modulo)
Created: 2016-05-03T12:41:40Z
I am looking for a way to implement a modulo operator, but I am not sure what might be the way to do so.
When selecting the modulo op the resulting rule should display something like this (please ignore the first and last select, the image is taken from the current implementation):

The idea is to model operations like:
field % value = 5
field % value > 10
....

I've been able to add the modulo operator but all the fields are now shown as inputs for numbers:
(function() {

  var QueryBuilder = jQuery.fn.queryBuilder,
      operators = QueryBuilder.defaults('operators'),
      operatorsAsArray = Object.keys(operators).map(function (key) {return operators[key]});

  operatorsAsArray.push({
    type: 'modulo',
    nb_inputs: 3,
    apply_to: ['number']
  });

  QueryBuilder.defaults({operators: operatorsAsArray});
})();

Is there a way to specify custom inputs or a template for an operator?

Duplicate issue #488: Textarea input for specific operators
Created: 2017-05-10T13:38:48Z
The documentation tells me I can set input types per filter. Might there also be a way to set input types per operator?
For all my filters the input is set to 'text' to show a normal small input field. When the 'in' and 'not_in' operators are selected though, I would like to show a textarea.

Closing comment (2017-05-10T14:26:39Z): Duplicate of #284
Repository: mistic100/jQuery-QueryBuilder

Issue #653: Multi-tiered filter category
Created: 2018-03-16T16:50:47Z
I'm trying to implement this library, but I need the ability to add a multi-tiered filter categories. Where the first tier opens another select box with 2nd tier options and so on... Is this currently possible or will this be a new feature?

Duplicate issue #892: New Feature : Entity Mode
Created: 2020-10-16T20:04:48Z
Is there a way to add additional field for entity to current filters ? It would be great if anyone has done this and share a link or info on how to achieve this.

Closing comment (2020-10-18T17:06:43Z): Ok.
This is the same as #653 and #576
Repository: mistic100/jQuery-QueryBuilder

Issue #114: SELECT & GROUP BYclause
Created: 2015-04-29T13:28:04Z
Awesome job @mistic100 !
Do you have plans to add visual construction of SELECT or GROUP BY clauses of the query?
I imagine that the underling database schema is received via ajax call or provided as fixed JSON object.

Duplicate issue #197: MongoDB Aggregation Plugin?
Created: 2015-11-24T20:56:53Z
Are there any plans to build a MongoDB aggregation plugin?

Closing comment (2016-01-05T08:29:31Z): My answer is the same as #114
This will not be part of QueryBuilder (at least for a loooong time)
Good luck
Repository: mistic100/jQuery-QueryBuilder

Issue #284: Complex Operators with custom inputs (eg modulo)
Created: 2016-05-03T12:41:40Z
I am looking for a way to implement a modulo operator, but I am not sure what might be the way to do so.
When selecting the modulo op the resulting rule should display something like this (please ignore the first and last select, the image is taken from the current implementation):

The idea is to model operations like:
field % value = 5
field % value > 10
....

I've been able to add the modulo operator but all the fields are now shown as inputs for numbers:
(function() {

  var QueryBuilder = jQuery.fn.queryBuilder,
      operators = QueryBuilder.defaults('operators'),
      operatorsAsArray = Object.keys(operators).map(function (key) {return operators[key]});

  operatorsAsArray.push({
    type: 'modulo',
    nb_inputs: 3,
    apply_to: ['number']
  });

  QueryBuilder.defaults({operators: operatorsAsArray});
})();

Is there a way to specify custom inputs or a template for an operator?

Duplicate issue #414: Define operator's input type
Created: 2017-01-03T18:58:35Z
Hello,
I want add custom operator with selectbox to every filter. Options of selectbox will be same in every filter. How can I do that?
{ type: 'join', optgroup: 'custom', nb_inputs: 1, multiple: false, apply_to: ['string', 'integer'] }

mistic100 edit: define the input type at operator level, ie: filter A is type: 'text' unless operator 'customOp' is selected, then the input becomes a selectbox

Closing comment (2017-01-03T20:47:09Z): This is actually a duplicate of #284
Repository: mistic100/jQuery-QueryBuilder

Issue #251: feature request: plugin based on operator
Created: 2016-02-24T23:02:43Z
right now plugins defined at the filters level, we have a use case where we would like to load plugin based on operator.
for instance equal might be selectize (if data source, but maxItems: 1) but if in, not in, no maxItems
if no data source such as a documentNumber, no selectize, but if IN, NOT IN operator could use selectize with create true option and empty (or no) data source.

Duplicate issue #518: Operator dependent input type
Created: 2017-06-23T10:38:44Z
Hello,
I'm stuck with a problem, maybe someone would have some idea. By default input type is defined for a filter (like 'text', 'number', 'textarea', 'radio', 'checkbox' or 'select').
Is it possible to change input field type according to operator we choose?
Examples:

for 'equal' operator -> select with one option possible to select
for 'contains' operator -> input text
for 'in' operator -> select with multiple options to select or even better - sth like bootstap collecion

Is it possible to achieve this somehow? Thanks for any clue.

Closing comment (2017-06-23T12:24:06Z): Hello
duplicate of #251 and #284
Repository: mistic100/jQuery-QueryBuilder

Issue #284: Complex Operators with custom inputs (eg modulo)
Created: 2016-05-03T12:41:40Z
I am looking for a way to implement a modulo operator, but I am not sure what might be the way to do so.
When selecting the modulo op the resulting rule should display something like this (please ignore the first and last select, the image is taken from the current implementation):

The idea is to model operations like:
field % value = 5
field % value > 10
....

I've been able to add the modulo operator but all the fields are now shown as inputs for numbers:
(function() {

  var QueryBuilder = jQuery.fn.queryBuilder,
      operators = QueryBuilder.defaults('operators'),
      operatorsAsArray = Object.keys(operators).map(function (key) {return operators[key]});

  operatorsAsArray.push({
    type: 'modulo',
    nb_inputs: 3,
    apply_to: ['number']
  });

  QueryBuilder.defaults({operators: operatorsAsArray});
})();

Is there a way to specify custom inputs or a template for an operator?

Duplicate issue #481: add custom Operator with two inputs: text and select
Created: 2017-05-02T10:35:43Z
I need some new operators apply_to: ['string'].
I use the new and the default operators on filters - operators.
I found #403 and was able to create operator
"contains_one"
{ type: 'contains_one',  nb_inputs: 1, multiple: false, apply_to: ['string'] },
It works, thank you very much!
Now I need a new operator "contains_near". By these operator I need a standard text input AND a selectbox.
With
{ type: 'contains_near',  nb_inputs: 2, multiple: false, apply_to: ['string'] },
I create two standard text inputs.
Where can I define differend types of inputs?
How can I change the second one to a select?
Thank for your help!

Closing comment (2017-05-02T12:03:35Z): Hello
duplicate of #284
Repository: mistic100/jQuery-QueryBuilder

Issue #310: SELECT/ORDER/JOINS with jQuery Query Builder?
Created: 2016-06-27T13:57:59Z
Hello all,
Firstly, thank you very much for your hard work on this project - it has been very useful to me.
I have an issue though - when using SQL, how would one specify SELECT statements? Here's the example I'm trying to achieve:
SELECT city, airport
FROM mytable
WHERE owner = "admin"
AND (
    city = "Venice"
    OR city = "Palma"
);

My database table is, very simply, as follows:
+--------------------------------------+
| city       | owner      | airport    |
+--------------------------------------+
| ...        | ...        | ...        |
|            |            |            |
+--------------------------------------+

The query builder handles the WHERE part very well, but could it be used to express SELECTs as well? And building upon that, what about COUNT() and GROUP BY, or ORDER BY and LIMIT? Is that something that I could start doing with the query builder or would I have to write it all myself?
Thanks!

Duplicate issue #751: Use having clause
Created: 2018-12-12T14:27:30Z
Is it possible to implement having clause ?

Closing comment (2018-12-12T17:21:23Z): Same as #310
Repository: mistic100/jQuery-QueryBuilder

Issue #432: Bootstrap 4 support
Created: 2017-02-09T17:58:57Z
All other aspects of the QueryBuilder, except Plugins, are working
I have already included the following javascript libraries on my page
	<script src="js/jQuery.extendext.js"></script>
	<script src="js/doT.js"></script>
	<script src="js/moment.js"></script>
	<script src="js/tether.js"></script>
	<script src="js/bootstrap.js"></script>
	<script src="js/query-builder.js"></script>
Bootstrap version being used is Bootstrap v4.0.0-alpha.2 (http://getbootstrap.com)
My QueryBuilder init looks as follows:
                 $('#builder').queryBuilder({
			plugins: ['bt-tooltip-errors'],
		  	filters: [{
                               id:"datetime",
                               label:"datetime",
                              type:"datetime",
                              plugin: "datetimepicker"
                        }]
		});
Error received: "Bootstrap Tooltip is required to use "bt-tooltip-errors" plugin"

Duplicate issue #551: Bootstrap 4 support
Created: 2017-08-11T12:04:11Z
Bootstrap is currently v4.0.0-beta
sooo npm gives me 4 and query builder does not compile properly with plugins (
please please upgrade library

Closing comment (2017-08-11T12:39:39Z): Duplicate #432
The only thing I can do is to set the dependency to >=3.1.0 <4
Repository: mit-cml/appinventor-sources

Issue #1987: Multiselect fails when dealing with Cmd+action on macOS
Created: 2020-01-15T14:25:33Z
Describe the bug
On macOS, and possibly others but I haven't observed it, the browser doesn't always trigger the keyup event for the command key. This can cause App Inventor to think it is in multiple component select mode when it is really not. This results in all sorts of havoc with properties changing when they shouldn't because two or more components are selected when the user didn't intend it.
Affects


 Designer
 Blocks editor
 Companion
 Compiled apps
 Buildserver
 Other... (please describe)

Expected behavior

Selecting a component should only trigger a multiple select if the corresponding key is pressed when the click action occurs.
Steps to reproduce

It's hard to reproduce, but I seem to trigger it more often when switching to/from App Inventor because Cmd+Tab switches apps and it may not be the case that the browser is dropping the keyup since it's no longer the active app.

Duplicate issue #2055: Multi-select status issue in design view
Created: 2020-02-23T04:41:45Z
Describe the bug
When user switch out of the web page with control pressed, the select mode of components would always multi-select mode unless use press and release control key again.
Affects


 Designer
 Blocks editor
 Companion
 Compiled apps
 Buildserver
 Other... (please describe)

Expected behavior
Would detect the status of control key more "smartly"
Steps to reproduce


Open Design view, select any component
Press control key (left or right control keys behave the same)
Switch to any other tabs or windows
Release control key and switch back to App Inventor page
Try click on any other components in the component list or the viewer, you will see it's in multi-select mode even you are not pressing control key.

Closing comment (2020-02-24T14:42:09Z): Duplicate of #1987
Repository: mit-cml/appinventor-sources

Issue #892: Comment bubbles no longer captured in PNG with Blockly update
Created: 2017-06-27T22:14:25Z
See the forum post. Previously blocks and bubbles were in the same group element. With the Blockly update we are only capture the blocks group and not the bubble group. Ideally we should capture both to provide consistent behavior with older versions of App Inventor.

Duplicate issue #2089: "Download blocks as image" does not include comment bubbles
Created: 2020-03-09T19:05:37Z
Describe the bug

Comment bubbles are not included in the image of the workspace when you select "download block as image" from the context menu.
Note that this is different from #624 as in that case bubbles were included, but the text did not show. Here there are no bubbles at all.
Affects


 Designer
 Blocks editor
 Companion
 Compiled apps
 Buildserver
 Other... (please describe)

Expected behavior

Comments should be included in the downloaded image. As they are helpful for documenting how something is working.
Steps to reproduce


Drag a block from the toolbox.
Add a comment and type text into it.

Right click on the workspace background and select "Download blocks as image" from the context menu.

Open your image and observe how comments were not included.

Request for Assignment
I don't want to fix this issue (I've got quite a few projects atm hehe) I'm just reporting it.

Closing comment (2020-03-09T19:13:40Z): Duplicate of #892?

Yessir! I did do a search before I posted this, but I must have missed that one. Thank you for the link :D
Closing as dupe.
Repository: mit-cml/appinventor-sources

Issue #2196: add full support for aar files
Created: 2020-05-26T09:31:28Z
Describe the desired feature
hi i wish you can add full support for aar files
https://developer.android.com/studio/build/manifest-merge
Give an example of how this feature would be used
like in android studio all the tags in androidmanifest.xml in the aar will be transfered to the main project that will help reduce the time and the work while creating compnents by keep us away from add all thses tag manually <!--
Explain why the use case cannot be completed using the features of the current system.:
because the current system doesn't support it

Duplicate issue #2218: .aar Library Support For Extension
Created: 2020-06-29T07:46:55Z
From Many Days AppInventor Team Is Able To Add Support Of Many Features  ....Which Was Supposed To Impossible To For External component :/
But adding .aar support For Extension Will Be More Awesome :) If AppInventor Team Will Help To Add This Feature than It Would Be Great :)

Closing comment (2020-07-20T08:40:19Z): Duplicate of #2196
Repository: mit-cml/appinventor-sources

Issue #630: Backpack image is not big when holding blocks from another screen
Created: 2015-12-08T17:17:30Z
On Screen2 of my app, I added blocks to the backpack.
Going to Screen1 from the blocks editor, the backpack is the smaller image, although it contains the blocks from Screen2.
It should be the larger backpack image because blocks are in it, even though I didn't add them on Screen1.

Duplicate issue #712: Backpack state (empty or full of blocks) does not track properly across screen switches
Created: 2016-02-22T20:18:24Z
... But if you go to another screen, it does not show that items are in the backpack (saved in the previous screen)

Closing comment (2016-02-22T21:31:29Z): @jisqyv this is a duplicate of #630 which one you want to close?
Repository: mit-cml/appinventor-sources

Issue #2196: add full support for aar files
Created: 2020-05-26T09:31:28Z
Describe the desired feature
hi i wish you can add full support for aar files
https://developer.android.com/studio/build/manifest-merge
Give an example of how this feature would be used
like in android studio all the tags in androidmanifest.xml in the aar will be transfered to the main project that will help reduce the time and the work while creating compnents by keep us away from add all thses tag manually <!--
Explain why the use case cannot be completed using the features of the current system.:
because the current system doesn't support it

Duplicate issue #2245: implement manifest-merger
Created: 2020-07-17T00:28:21Z
First sorry cause this is my second time asking this
i wish you add support for manifest-merger
i've started learning how to create extensions recently and i've create some extensions
when i was trying to learn the most thing i hated is write activities lines and meta-data line from the aar
and sometimes i write it wrong while sometimes i need to decompile my app to check if it was correct or not you know how hard it is to write all this small stuff and sometimes i even leave the extension im creating just because of it
so i told myself that it's okay to ask again hopefully something will change since this feature will help many developers who wants to learn or contribute to appinventor
some links:
https://developer.android.com/studio/build/manifest-merge.html
https://maven.google.com/web/index.html?#com.android.tools.build:manifest-merger

Closing comment (2020-07-20T08:43:41Z): Duplicate of #2196.
I did my research on integrating manifest merger earlier and I will be working on that soon.