primordic/IssueDupesLite huggingface dataset:
Repository: HaxeFoundation/haxe

Issue #2586: haxe.Http class should not use Strings to represent binary data
Created: 2014-01-29T16:56:51Z
We have modified the C++ String implementation to correctly support UTF-8 strings.  Our implementation does not accept improperly encoded UTF-8 strings, and we have found that when using the haxe.Http class, the representation of binary data as Strings in functions like onData and setPostData causes problems.
Using a String as a container for binary data implies that the String internal representation is in bytes; but this is a problematic assumption to make when the String internal representation is UTF-8.
Another issue is the fact that binary data used in onData and setPostData may have embedded 0 values (nulls), and embedded nulls are in general at odds with string representations.
Why don't onData and setPostData use Bytes objects instead of Strings?

Duplicate issue #3541: Null terminated string in Http request
Created: 2014-11-04T02:04:07Z
When the raw bytes of an Http request callback include a 0x00 byte, the string which gets sent to the onData() function is terminated and the data is dropped. Ex:
var b = haxe.io.Bytes.alloc(5);
b.set(0,72); // H
b.set(1,97); // a
b.set(2,120); // x
b.set(3,0x00); // \0
b.set(4,0x101); // e
// important data

haxe.Log.trace(b.toString().length); // 3, "Hax"
haxe.Log.trace(b.toHex().length / 2); // 5+, "48 61 78 00 65 ..."
Obviously you can't do anything about \0 in strings, but the Http request callback should be worked with so it doesn't drop data. Right now it forces all data into a string, so there's nothing a user can do with the binary. flash.net.URLLoaderDataFormat gives you the option to get the raw binary instead of text for this reason among others.
Maybe have the request come in as binary data, and loop through it to form a string with each \0 dropped? Or make onData take a dynamic and output the Bytes directly.
Tested in (openfl) flash and js.

Closing comment (2014-11-04T05:20:12Z): duplicate of #2586
Repository: HaxeFoundation/haxe

Issue #1107: Issue 1107 - CS: Erase Generics - haxe
Created: 2013-05-28T04:30:58Z
[Google Issue #1107 : https://code.google.com/p/haxe/issues/detail?id=1107]
by franco.p...@gmail.com, at 30/07/2012, 14:21:38
Improve Micro Framework compatibility by erasing generics.

Duplicate issue #3248: Abstracts of external generic classes do not compile on C# platform
Created: 2014-08-13T09:01:12Z
import cs.NativeArray;
import cs.system.ArraySegment_1;

class Foo {}

class CSharpAbstract
{
    public static function main()
    {
        var a:AbstractSegment<Foo> = new ArraySegment_1<Foo>(new NativeArray<Foo>(4));
        a.bar();
    }
}

abstract AbstractSegment<T>(ArraySegment_1<T>) from ArraySegment_1<T>
{

    public function new(underlying:ArraySegment_1<T>)
    {
        this = underlying;
    }
    public function bar()
    {
        trace(this.Count);
    }

}
$ haxe -main CSharpAbstract.hx -cs cs
haxelib run hxcs hxcs_build.txt --haxe-version 3200
d:\Documents\csharp-abstract\CSharpAbstract.hx(11,63): error CS0030: 无法将类型“System.ArraySegment<Foo>”转换为“System.ArraySegment<object>”
Compilation error
Native compilation failed
Error: Build failed

Closing comment (2014-08-13T09:08:55Z): Related to #1107
Repository: HaxeFoundation/haxe

Issue #3008: [neko] Identifier clash with package name
Created: 2014-05-19T09:27:29Z
// Main.hx
class Main {
    static function main() {
        var t = new pack.C("foo");
        t.call();
    }
}

// pack/C.hx
package pack;

class C {
    public function new(pack:String) { }
    public function call() { }
}

haxe -main Main -x neko
Called from ? line 1
Called from Main.hx line 4
Uncaught exception - Invalid call
Error: Command failed with error 1

From looking at -D neko_source the error is pretty obvious:
    @tmp.new = function(pack) {
        var @o = $new(null);
        $objsetproto(@o,pack.@C); // <-- here
        $call(this.__construct__,@o,$array(pack));
        return @o;
    }

Duplicate issue #3593: constructor argument, named same as package name, causes weird errors on neko
Created: 2014-11-19T16:30:54Z
Say we have a test class packagename/Test:
package packagename;

class Test
{
    public function new(?packagename:Dynamic)
    {

    }
}
and a main class
package;

import packagename.Test;

class TestsThis
{
    public static function main():Void
    {
        var t:Test = new Test();
    }
}

which we compile to neko and js targets.
When I am running the example on nodejs, it's alright.
When I am running on neko, I get:
Called from ? line 1
Called from TestsThis.hx line 9
Called from packagename/Test.hx line 3
Uncaught exception - Invalid field access : @Test

Closing comment (2014-11-19T16:32:57Z): That should be the same as #3008.
Repository: HaxeFoundation/haxe

Issue #9100: [nullsafety] not compatible with key-value-iteration over DynamicAccess
Created: 2020-01-18T17:00:39Z
No idea what's going on here / where the value : Null<String> comes from:
source/Main.hx:8: characters 24-25 : Null safety: Cannot unify { value : Null<String>, key : String } with { value : String, key : String }

import haxe.DynamicAccess;

@:nullSafety
class Main {
	static function main() {
		var a = new DynamicAccess<String>();
		var b = new DynamicAccess<String>();
		for (key => value in a) {
			b[key] = value;
		}
	}
}

Duplicate issue #10182: Null safety and DynamicAccess iterators
Created: 2021-03-18T09:13:42Z
https://try.haxe.org/#19780187
@:nullSafety(Loose)
function main() {
  var a: haxe.DynamicAccess<String> = {}
  for (key => value in a)
    trace(key);
  for (value in a)
    trace(value);
}
Test.hx:4: characters 24-25 : Null safety: Cannot cast nullable value to not nullable type.
Test.hx:6: lines 6-7 : Null safety: Cannot cast nullable value to not nullable type.

Probably because they eventually inline DynamicAccess.get which returns Null<T>?

Closing comment (2021-03-18T09:17:06Z): Duplicates: #9100 #8097
Repository: HaxeFoundation/haxe

Issue #9421: [ide] poor/no completion for expression macro arguments
Created: 2020-05-15T01:37:05Z
#7885 seems related, but i think we should do something here for better IDE support of macro methods:

Consider this situation:
class Main {
	#if !macro
	static function main() {
		f(|
	}
	#end

	static macro function f(a, b) {
		trace("call", a, b);
		return macro null;
	}
}
Invoking toplevel completion will NOT call the macro, thus we can't wrap given EDisplay into some typecheck to trigger completion.
If we now type the first argument, e.g. f(1,| and invoke toplevel completion, the macro will be called and will receive EConst(1), EDisplay(DKMarked).
So it is only possible to provide completion for the last argument, unless we use rest macro arguments (Array<Expr>), in which case it will correctly pass all of the arguments (but that's extra work for the macro authors and it still shows ugly in signature help, so it's not really an option)
Maybe we could always call the macro but pass missing arguments as EDisplay(DKMissing) or something?
PS It's not super high priority, but I'm still labeling it with hf-partner, because I want to have a simple macro method with 3 arguments and I want IDE features to work for it :)

Duplicate issue #10429: Improve display for ExprOf
Created: 2021-10-13T06:26:56Z
Currently i have two functions.
typedef MatrixStruct = {
    test:String
};

public function createWithoutMacros(matrix:MatrixStruct) {
    return this;
}
public macro function createWithMacros(tthis:Exp, matrix:ExprOf<MatrixStruct>) {
    return tthis;
}
Without macros i get a autocomplete for fields:


With macros:


also enums do not work. etc.

Closing comment (2021-10-27T11:56:19Z): That part kinda duplicates #9421 which kinda duplicates #7699, closing here.
Repository: HaxeFoundation/haxe

Issue #11711: Diagnostic cause compiler failure Unbound variable src/filters/renameVars.ml
Created: 2024-07-04T09:35:52Z
Project: hashlink-debugger master (3e37095e)
Haxe: 7b92f74. Same error with 2106be4 (Juin).
Add var exc= before line 435 var excPos = jit.align.ptr * 5 + 8; gives a compiler failure in VSCode. But when disabled diagnostic, the failure does not exists anymore and show a normal error.

Error: hld/Debugger.hx:424: lines 424-465 Compiler failure: Unbound variable: excPos<21761>
hld/Debugger.hx:424: lines 424-465 Please submit an issue at https://github.com/HaxeFoundation/haxe/issues/new
hld/Debugger.hx:424: lines 424-465 Attach the expression example and the following information:
Haxe: 5.0.0-alpha.1+d3cb40e8a; OS type: windows;
File "src/filters/renameVars.ml", line 418, characters 20-27
Called from file "src/filters/renameVars.ml", line 418, characters 2-27
Called from file "src/std.ml", line 26, characters 6-9
Called from file "list.ml", line 121, characters 24-34
Called from file "src/core/tUnification.ml", line 513, characters 10-15
Called from file "src/filters/filtersCommon.ml", line 74, characters 23-91
Called from file "list.ml", line 110, characters 12-15
Called from file "src/filters/filtersCommon.ml", line 79, characters 2-45
Called from file "list.ml", line 110, characters 12-15
Called from file "src/filters/filters.ml", line 750, characters 1-71
Called from file "src/compiler/compiler.ml", line 16, characters 3-7
Called from file "src/compiler/compiler.ml", line 342, characters 1-91

When using haxe 15731ea (December 2023), the message changed to

File "src/core/globals.ml", line 175, characters 1-7: Assertion failed

Duplicate issue #11594: lines 23-45 Compiler failure: Failed to locate variable declaration
Created: 2024-02-25T15:05:32Z
running flixel 5.5.0, openfl 9.3.2 and lime 8.1.1 if that helps
the line im experiencing issues on is override public function new() { so I dont get why its failing.

Closing comment (2024-07-21T07:46:39Z): Same as #11711 which has a repro
Repository: HaxeFoundation/haxe

Issue #3083: Doc parsing - Typedef comments not parsed on members declared a certain way
Created: 2014-05-30T19:38:11Z
When comments are included for documentation on members declared in the less formal method, their comment is not parsed and does not end up being exported in the -xml.
Note how the first test comments do not exist, while the ones in the second test do.
    /** Root level Test1. This comment will exist */
typedef Test1 = {
        /** test one (this comment will not exist) */
    ? a: Int,
        /** test other (this comment will not exist either) */
    b: Int
}

    /** Root level Test2. This comment will exist */
typedef Test2 = {
        /** test two (this comment will exist) */
    var a: Int;
}

Duplicate issue #4655: Support meta on anonymous object
Created: 2015-11-20T07:10:42Z
Is it possible to support meta in both ways of anonymous object declaration?
typedef A = {
    @:myMeta // ok
    var a:Int;
}

typedef B = {
    @:myMeta // fail
    a:Int,
}

Closing comment (2015-11-20T07:20:42Z): This is similar to #3083 and might have the same problems.
Repository: HaxeFoundation/haxe

Issue #4950: Is the Http class able to handle large, chunked requests?
Created: 2016-03-17T01:25:16Z
Is the Http class able to handle large, chunked requests?
The code below returns a status of 200, but an error of "Invalid chunk"
 var conn = new Http("http://www.pathofexile.com/api/public-stash-tabs");

 conn.onStatus = function(status:Int) {
   trace("Status: " + status);
 }

 conn.onData = function(data:String) {
   trace("Data: \n" + data);
 }

 conn.onError = function(msg:String) {
   trace("Error: " + msg);
 }

 conn.request(false);


I've tried both Neko and C++ targets. Replacing the above URL (which returns a LARGE amount of data) with https://jigsaw.w3.org/HTTP/ChunkedScript works just fine.
Thanks.

Duplicate issue #4933: Http.requestUrl fails with "Invalid chunk"
Created: 2016-03-11T05:17:41Z
When trying to use Docker to launch a haxelib server for testing on Ubuntu, the integration test failed with  error:
ERR: exception thrown : Invalid chunk

Called from /usr/lib/haxe/std/haxe/Http.hx line 782
Called from /usr/lib/haxe/std/haxe/Http.hx line 345
Called from /usr/lib/haxe/std/haxe/Http.hx line 530
Called from /usr/lib/haxe/std/haxe/Http.hx line 347
Called from /usr/lib/haxe/std/haxe/Http.hx line 784
Called from tests/integration/TestEmpty.hx line 68
Called from IntegrationTests.hx line 77
Called from tests/integration/TestEmpty.hx line 68
Called from a C function
Called from /usr/lib/haxe/std/haxe/unit/TestRunner.hx line 115

The only failing page is "documentation/using-haxelib". All other pages can be fetched correctly...
Firefox doesn't show any error for that page, so I suspect it is a bug in Http.requestUrl instead of the server.
I cannot reproduce the problem on a Mac. I will investigate further and post new info here.

Closing comment (2016-03-18T10:08:54Z): Is this the same as #4950 (request vs. requestUrl)?
Repository: HelloZeroNet/ZeroNet

Issue #873: hello,i cannot open 15441 port on the ISP router so i cannot publish my site.
Created: 2017-03-25T08:43:43Z
the 15441 port is blocked.so how can i publish my site to the zeronet?

Duplicate issue #840: Port forwarding question
Created: 2017-02-22T09:20:10Z
On some routers(Like my TL-WR886N), Port forwarding needs two ports: One for access, The other for hosting port.
I need to forward port 15441, should I use 43110(ZeroNet's port) for internal port?

Closing comment (2017-04-07T23:45:35Z): Similar to #873 , but it's so bad that we can't have a public IP.
Repository: HelloZeroNet/ZeroNet

Issue #2434: Site Data not downloading for new installation
Created: 2020-02-21T11:51:25Z
Step 1: Please describe your environment

ZeroNet version: 4452
Operating system: Windows / Android
Web browser: Edge latest
Tor status: available
Opened port: yes

Step 2: Describe the problem:
If you install zeronet with latest revision, site data is not downloading, but if we have site data, then sites are working as usual
Steps to reproduce:
update zeronet to latest rev
if it is fresh install open zerotalk
if you already have data folder rename to data-org as backup and restart zeronet
and open zerotalk
it shows Initial sync in progress...
after some time site showing as your own site.
Observed Results:

Expected Results:
Should download site data.

Duplicate issue #2433: Starting ZeroNet fresh forces you to make a ZeroMe profile even if you have one already.
Created: 2020-02-20T15:23:55Z
I don't know why I can't avoid having to create a new profile. I download the hubs after ZeroMe to prevent such a thing, but it no longer works. I'm still forced to create a profile now.
This occurs on Android and Linux, py3, latest revision.

Closing comment (2020-02-21T14:13:41Z): Probably related to #2434
Repository: HelloZeroNet/ZeroNet

Issue #859: [feature request] Static link to a specific version of a site
Created: 2017-03-13T22:05:36Z
[ Edit: This was not initially well thought out. To keep the record of the conversation intact, I have kept the rest of this post as I first posted it; for those just joining us, the actual feature request is further downthread. ]

It would be nice to be able to have static (immutable, non-updatable) zites. There are many cases where immutability is a positive feature from a security perspective, especially from the perspective of auditability.
A static zite would differ from e.g. an IPFS site in that it could access the ZeroFrame API, and therefore act as a client for a networked protocol, whereas an IPFS site is purely read-only. Through the API, static zites could have mutable state; only the code would be immutable, not the data.

Duplicate issue #900: [Feature] Protect sites with GIT versioning
Created: 2017-04-10T18:56:26Z

Closing comment (2017-04-13T14:38:43Z): Is this a duplicate of #859
or we are talking about something else ?
Repository: HelloZeroNet/ZeroNet

Issue #1545: Enhancement: Add description when adding permission
Created: 2018-08-29T13:18:21Z
A lot of permissions (I don't know the exact list of which are available) don't have any description.
For example the permission Merger:___ says nothing about it, and as a user the first time I saw it in GitCenter I did not know what I was granting...

Duplicate issue #1547: Message about risks in permissions
Created: 2018-08-29T13:53:22Z

Closing comment (2018-08-29T16:51:00Z): Dupe: #1545
Repository: HelloZeroNet/ZeroNet

Issue #1324: ZeroNet cannot be stably used on GCP
Created: 2018-03-11T05:03:17Z
Step 1: Please describe your environment

ZeroNet version: 0.6.2
Operating system: google cloud platform, ubuntu
Web browser: firefox
Tor status: always/disabled
Opened port: yes
Special configuration: -p 15441:15441 -p 127.0.0.1:43110:43110

Step 2: Describe the problem:
Steps to reproduce:

I could visit my ZeroNet site just for 3 seconds, then the connection lost
then "FileServer Checking port 15441"
finally is stays "FileServer Trying to open port using UpnpPunch"

Observed Results:
[04:57:05] FileServer Internet offline
[04:57:35] ChartCollector Collector connection_ping_min error: min() arg is an empty sequence
[04:57:37] - UiWSGIHandler error: error: [Errno 32] Broken pipe in UiServer.py line 40 > pywsgi.py line 909 > pywsgi.py line 895 > pywsgi.py line 737 > pywsgi.py line 726 > pywsg
i.py line 701 > _socket2.py line 419 > _socket2.py line 355 > _socket2.py line 323
[04:57:37] - UiWSGIHandler error: error: [Errno 32] Broken pipe in UiServer.py line 40 > pywsgi.py line 909 > pywsgi.py line 895 > pywsgi.py line 737 > pywsgi.py line 726 > pywsg
i.py line 701 > _socket2.py line 419 > _socket2.py line 355 > _socket2.py line 323
[04:58:50] FileServer Internet online
[04:58:51] FileServer Checking port 15441 using portchecker.co...
[04:58:51] FileServer Checking port 15441 using canyouseeme.org...
[04:59:00] FileServer [BAD :(] Port closed: Error: I could not see your service on 35.195.180.250 on port (15441) Reason: Connection timed out
[04:59:00] FileServer Trying to open port using UpnpPunch...```

#### Expected Results:

  Could it be used stably on google cloud platform? Thanks!

Duplicate issue #1320: How can I install ZeroNet on google cloud platform?
Created: 2018-03-10T05:43:11Z
Hello,
I would like to install ZeroNet on google cloud platform as a peer to help transforming datas. How should I do? I have tried many methods, but all failed.
Thanks!

Closing comment (2018-03-11T23:07:54Z): dupe: #1324
Repository: HelloZeroNet/ZeroNet

Issue #1208: [Suggestion] Documentation about how to create plugins
Created: 2017-12-18T04:10:39Z

Duplicate issue #1207: [Suggestion] Better documentation about Plugins
Created: 2017-12-18T04:10:01Z

Closing comment (2018-03-11T23:14:49Z): dupe: #1208
Repository: HelloZeroNet/ZeroNet

Issue #523: Server error (zero net is not opening)
Created: 2016-08-01T12:12:03Z
Err: UnicodeDecodeError: 'utf8' codec can't decode byte 0xa7 in position 219990: invalid start byte in UiServer.py line 81 > UiRequest.py line 82 > UiRequest.py line 209 > UiRequest.py line 285 > UiRequest.py line 167 > utf_8.py line 16

Duplicate issue #1234: window Server error
Created: 2018-01-02T10:30:05Z
Server error
Err: UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 219110: invalid continuation byte in UiServer.py line 95 > UiRequest.py line 130 > MutePlugin.py line 138 > UiRequest.py line 299 > UiRequest.py line 394 > UiRequest.py line 249 > utf_8.py line 16
Please report it if you think this an error.

Closing comment (2018-01-05T00:28:45Z): Finally we can close these duplicates. #523, #814, #920, #1132, #1219
The cause is a computer virus. @kofzhanganguo where did you download ZeroNet from?
Repository: HelloZeroNet/ZeroNet

Issue #142: Emercoin support
Created: 2015-08-25T21:36:33Z
ZeroNet should support Emercoin in addition to Namecoin

Duplicate issue #558: Support Emercoin domain extensions
Created: 2016-08-30T11:51:25Z
.emc extension
 .coin extension
 .lib extension
 .bazar extension

Closing comment (2016-12-16T19:19:59Z): Duplicate of #142
Repository: HelloZeroNet/ZeroNet

Issue #1626: [Feature] Data synced on multiple devices with same user ID
Created: 2018-09-19T21:57:43Z
Added content to this comment on 12/12/2018.
Yesterday I thought about data sync on multiple devices with same ID, then I realized how it is possible.
How ZeroSync can work
One device is set as Master, and creates a different UI IP server where other ZeroNet instances from other devices can connect (with privatekey authentication). From any device, users connected to same network and having ZN authentication, can access the Master's ZeroNet (download new zites, use the ID, sign/publish zites, sign to post/comment, etc). The detail is that the data is being remotely accessed, but not downloaded to the device to be used on-go, but:
To sync data after use: If the PC (for example) is the Master, and user needs to take the phone on-go, he presses a button to pull all Master data to the phone, or to any or all other devices. All this with the same ID. Then user can leave the area of the wireless network, and the data is already portably downloaded on the device.

Duplicate issue #1705: Sync between computer, phone and any other device, using same identy and zites
Created: 2018-10-09T17:21:31Z

Closing comment (2018-12-12T03:59:50Z): Duplicate of: #1626
Repository: HiddenRamblings/TagMo

Issue #608: [Email]: Nov 7, 2022, 3:08 AM PST
Created: 2022-11-07T13:15:20Z
Issue Description
None
Logcat Output
TagMo 3.3.6 (Google Play Release) #1df444b2
Android R (11) - 3.66 GB RAM

java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{8e6e14f 14463:com.hiddenramblings.tagmo.eightbit/u0a308} (pid=14463, uid=10308) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
at android.os.Parcel.createException(Parcel.java:2357)
at android.os.Parcel.readException(Parcel.java:2340)
at android.os.Parcel.readException(Parcel.java:2282)
at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5782)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:7396)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:3001)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2484)
at android.content.ContentResolver.query(ContentResolver.java:1169)
at android.content.ContentResolver.query(ContentResolver.java:1116)
at android.content.ContentResolver.query(ContentResolver.java:1072)
at com.hiddenramblings.tagmo.amiibo.AmiiboDocument.listFiles(AmiiboDocument.java:89)
at com.hiddenramblings.tagmo.amiibo.AmiiboDocument.listFiles(AmiiboDocument.java:66)
at com.hiddenramblings.tagmo.amiibo.AmiiboManager.listAmiiboDocuments(AmiiboManager.java:383)
at com.hiddenramblings.tagmo.browser.BrowserActivity.lambda$loadAmiiboDocuments$39(BrowserActivity.java:1840)
at com.hiddenramblings.tagmo.browser.BrowserActivity.$r8$lambda$I_9J5GuQIX3MODKF9w3mcj-fRno(Unknown Source:0)
at com.hiddenramblings.tagmo.browser.BrowserActivity$$ExternalSyntheticLambda50.run(Unknown Source:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Use Authorizations

 I am authorized to submit this issue by TagMo collaborators

Duplicate issue #609: [Review]: Nov 7, 2022, 06:07 AM PST
Created: 2022-11-07T14:43:11Z
Issue Description
When I try to use app I get this
Logcat Output
TagMo 3.3.6 (Google Play Release) #1df444b2
Android S_V2 (12) - 7.22 GB RAM 
java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{80412af 1770:com.hiddenramblings.tagmo.eightbit/u0a335} (pid=1770, uid=10335) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs at android.os.Parcel.createExceptionOrNull(Parcel.java:2438) at android.os.Parcel.createExceptio
Use Authorizations

 I am authorized to submit this issue by TagMo collaborators

Closing comment (2022-11-07T14:46:36Z): Duplicate of #608 (fortunately)
Repository: HiddenRamblings/TagMo

Issue #576: [Bug]: Failed to decrypt tag data
Created: 2022-09-29T01:45:21Z
Issue Description
Failed to decrypt tag data
Logcat Output
09-28 21:43:30.295 16571 17902 W Exception: java.lang.Exception: Failed to decrypt tag data
09-28 21:43:30.295 16571 17902 W Exception: 	at com.hiddenramblings.tagmo.amiibo.KeyManager.decrypt(KeyManager.java:130)
09-28 21:43:30.295 16571 17902 W Exception: 	at com.hiddenramblings.tagmo.nfctech.TagWriter.writeToTagAuto(TagWriter.java:93)
09-28 21:43:30.295 16571 17902 W Exception: 	at com.hiddenramblings.tagmo.NfcActivity.onTagDiscovered(NfcActivity.java:379)
09-28 21:43:30.295 16571 17902 W Exception: 	at com.hiddenramblings.tagmo.NfcActivity.lambda$onNewIntent$0(NfcActivity.java:249)
09-28 21:43:30.295 16571 17902 W Exception: 	at com.hiddenramblings.tagmo.NfcActivity.$r8$lambda$vP5NXNBqg2kDV8eg_wytd2g-zlQ(Unknown Source:0)
09-28 21:43:30.295 16571 17902 W Exception: 	at com.hiddenramblings.tagmo.NfcActivity$$ExternalSyntheticLambda16.run(Unknown Source:4)
09-28 21:43:30.295 16571 17902 W Exception: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
09-28 21:43:30.295 16571 17902 W Exception: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
09-28 21:43:30.295 16571 17902 W Exception: 	at java.lang.Thread.run(Thread.java:1012)
Usage Requirements

 I have read and understood the usage requirements for TagMo

Duplicate issue #581: [Bug]: encryption error
Created: 2022-09-30T14:48:07Z
Issue Description
when I scan a blank tag on the foomiibo catalog, I get an error saying failed to decrypt tag data. the nfc scanner on my phone is fine, and the chip itself works. I don't understand why it's even trying to decrypt data, anyway. shouldn't it be encrypting it ? please help me !
Logcat Output
TagMo - #420566f4
Android S (12)
2.67 GB RAM
Installed by publish

--------- beginning of main
09-30 10:34:16.882 17709 18151 W Exception: java.lang.Exception: Failed to decrypt tag data
09-30 10:34:16.882 17709 18151 W
Usage Requirements

 I have read and understood the usage requirements for TagMo

Closing comment (2022-09-30T14:50:26Z): Fixed by 903fd25, duplicate of #576
Repository: HiddenRamblings/TagMo

Issue #315: Every time I open the app it crashes immediately
Created: 2021-11-03T15:33:28Z
Every time I type the letter k into the search bar the app crashes. Here's the video

Duplicate issue #322: App crashes when searching for amiibo in certain directories.
Created: 2021-11-04T14:37:50Z
I have a Samsung Galaxy s9 and the app works okay until I'm going through the file directory to find amiibo bin files. Once I get to the directory with the bin files OR a parent directory the app immediately crashes.
This doesn't happen if emulated storage isn't turned on; however it doesn't recognize the amiibo bin files when emulated storage isn't turned on. I'm not sure why this is because the files are in my phone's internal storage.
I can't get any logs because once I have selected a directory that causes it to crash I can't get into the app to change the directory; this means from that point onward it continues to crash on startup.

Closing comment (2021-11-04T14:40:54Z): Closing as a duplicate of #315. Fix is currently building.
If the files are stored on emulated storage and emulated storage is disabled, there are no files being searched. Since sorting the files is crashing the app and there are no files to sort, there is also no crash.
Repository: HiddenRamblings/TagMo

Issue #642: [Email]: Nov 28, 2022, 10:10 AM PST
Created: 2022-11-28T19:40:24Z
Issue Description
Well I just got hit with an error, I don't know how to use this app and none of your guides help.
Logcat Output
TagMo 3.4.3 (Google Play Release) #8ab7bc71
Android S (12) - 3.56 GB RAM

java.lang.StringIndexOutOfBoundsException: begin 8, end 12, length 0
at java.lang.String.checkBoundsBeginEnd(String.java:3942)
at java.lang.String.substring(String.java:2467)
at com.hiddenramblings.tagmo.browser.BrowserActivity.lambda$updateAmiiboView$51(BrowserActivity.java:2314)
at com.hiddenramblings.tagmo.browser.BrowserActivity.$r8$lambda$v54--xYbeBoH_u5qNFEGmWaj0dQ(Unknown Source:0)
at com.hiddenramblings.tagmo.browser.BrowserActivity$$ExternalSyntheticLambda24.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8751)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Use Authorizations

 I am authorized to submit this issue by TagMo collaborators

Duplicate issue #643: [Email]: Nov 28, 2022, 10:14 AM PST
Created: 2022-11-28T19:41:09Z
Issue Description
Again?
Logcat Output
TagMo 3.4.3 (Google Play Release) #8ab7bc71
Android S (12) - 3.56 GB RAM

java.lang.StringIndexOutOfBoundsException: begin 8, end 12, length 0
at java.lang.String.checkBoundsBeginEnd(String.java:3942)
at java.lang.String.substring(String.java:2467)
at com.hiddenramblings.tagmo.browser.BrowserActivity.lambda$updateAmiiboView$51(BrowserActivity.java:2314)
at com.hiddenramblings.tagmo.browser.BrowserActivity.$r8$lambda$v54--xYbeBoH_u5qNFEGmWaj0dQ(Unknown Source:0)
at com.hiddenramblings.tagmo.browser.BrowserActivity$$ExternalSyntheticLambda24.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8751)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Use Authorizations

 I am authorized to submit this issue by TagMo collaborators

Closing comment (2022-11-28T19:41:29Z): Duplicate of #642
Repository: Hopding/pdf-lib

Issue #177: [Feature Request]: Use PDF as a template, similar to mail merge in word
Created: 2019-09-02T12:44:17Z
I'm looking for a client-side library that will allow me to create a preview of a document for a client.
Idea is to create a simple HTML form with couple of inputs and a preview button that will generate a pdf based on a template.
I'm aware that I can load an existing PDF and add an overlay to it (as shown in samples), but I'd like to replace text, for example, I'd like to replace {{name}} with John and  {{surname}} with Smith.
I've searched over the issues and found #33 and #137, as I understand Your library doesn't support reading the text, so please consider this as a feature request.
With this one feature, Your library would be an ideal solution for client-side pdf manipulation.

Duplicate issue #474: Possible solution for "merge template"?
Created: 2020-06-05T15:58:30Z
I'm curious if it would be possible to use this library to "find" specific elements in the page and write to their location.
The most common use case would be adding "initials" to various places in a document, adding a signature, etc.
I'm guessing if you wanted to build a full on templating engine, it makes more sense to generate the PDF from scratch, but just wondering if there is a way to do this with this library.

Closing comment (2020-06-06T08:46:56Z): Duplicate of #177
Repository: Hopding/pdf-lib

Issue #472: [Feature Request] Set document permissions
Created: 2020-06-04T10:48:26Z
It would be very useful to set permission for example only print.
Thank you awesome pdf-lib

Duplicate issue #627: Restrict Pdf Editing
Created: 2020-10-10T12:37:17Z
We are using pdf-lib to generate pdfs . it works perfectly . we are trying to find a way to restrict editing generated PDF,  we did understand that is not possible for now , because permissions pass by encryption.  My question is did you plan in short or medium term to support encryption and permissions ?

Closing comment (2020-11-14T17:42:17Z): Support for setting document permissions is being tracked in #472. Support for loading encrypted documents is being tracked in #233.
Adding support for encrypted documents is the next feature I personally plan to work on for pdf-lib. Not sure when I'll get around to document permissions. Happy to provide assistance to anybody that would like to submit a PR for it though.
Note also that you can set fields to be read-only using the PDFField.enableReadOnly() method.
Repository: Hopding/pdf-lib

Issue #233: [Feature Request]: Document decryption
Created: 2019-11-07T08:25:28Z
I would find it useful to support Encryption Handling as discussed in https://github.com/Hopding/pdf-lib#encryption-handling

Duplicate issue #703: PDF Decryption
Created: 2020-12-12T18:32:46Z
So all I want to do is to be able to open decrypted documents to write on top. I don't need any ability to read text inside the document or parse other data inside (it would be great to have the amount that pdf.js allows when viewing it), and as a matter of fact I am just trying to visually overlay some data. My app allows users to select a pdf and decide where to write some data. I am using pdf.js to visualize these and overlay some data on top and I want to create a new pdf with pdf-lib to print it.
Also I want to say this is an amazing project, great job : D

Closing comment (2021-01-02T20:27:38Z): Hello @Ayfel!
If you're input document is encrypted then it must be decrypted before anything can be done with it, even for a simple task like drawing content on top. Built in support for document decryption is being tracked in #233. In the meantime, you might consider using another library or CLI tool to decrypt the document before passing it to pdf-lib for processing.
Repository: Hopding/pdf-lib

Issue #953: Inconsistent line height when rendering multiline text inside form with custom font
Created: 2021-08-03T15:32:40Z
Line height seems to be out of place, it doesn't really matter which custom font to use - happens to all of them. Maybe something is wrong here with rendering textLines, I'm not really sure.
Also, this was the only was to embed default form font:
const font = await pdfDoc.embedFont(CUSTOM_FONT);
const form = pdfDoc.getForm();
form.defaultFontCache = Cache.populatedBy(() => font);

Otherwise it was rewritten by Helvetica.
Here's an example of options list:



Standard Font - Helvetica
Custom Font - San Francisco
Custom Font - Open Sans










I could've used Helvetica of course, but it doesn't support cyrillic characters unfortunately.

Duplicate issue #974: Flatten does not format multiline field correctly
Created: 2021-08-27T11:13:20Z
Hi,
i have a template with a textfield, which is being filled.
template.pdf
After being filled, this is the result:
without flatten.pdf
After calling flatten, it looks like this:
with flatten.pdf
I took a quick look into flatten, but i don't have enough experience with the internals of PDF.

Closing comment (2021-08-30T14:41:05Z): I think it's the same as #953
Repository: Hopding/pdf-lib

Issue #233: [Feature Request]: Document decryption
Created: 2019-11-07T08:25:28Z
I would find it useful to support Encryption Handling as discussed in https://github.com/Hopding/pdf-lib#encryption-handling

Duplicate issue #257: Encryption
Created: 2019-12-17T11:42:39Z
I am wondering if it's posible transform an encrypted document to one unencrypted copying pages from the document encrypted to the another with this library.
Is any differerence between if the document is encrypted for reading or for another permissions?
Can anyone guide me?
Thanks

Closing comment (2019-12-22T15:30:57Z): Hello @jotae1e! pdf-lib does not currently support reading/writing encrypted documents at all. However, this is a feature that will likely be implemented in the future. The request is currently being tracked in #233. So I'm going to close this issue in favor of that one, to keep things organized.
Repository: Hopding/pdf-lib

Issue #169: [Feature Request]: Clone pages
Created: 2019-08-23T22:01:50Z
Hi,
I have an SVG backgound image that repeats in many pages, what I have done so far is the following:

create a PDF for the SVG background image 'pdfFromSvg.pdf' (using inkscape)
create the final pdf document 'pdfDoc'
const pdfDoc = await PDFDocument.create()
load the 'pdfFromSvg.pdf' in a temporary PDFDocument
const imgPdfDoc = await PDFDocument.load(base64of('pdfFromSvg.pdf'))
loop through my loop and call:
const [imgPage] = await pdfDoc.copyPages(imgPdfDoc, [0])
const pdfPage = pdfDoc.insertPage(idx, imgPage)
do the specific rendering on the newly inserted 'pdfPage'

I think that there is room to enhance the performance if there is a 'copyPage' version of 'copyPages' that copy a single page from a source pdf and that returns multiple instances of the same page,

the code will be:
const pdfDoc = await PDFDocument.create()
const imgPdfDoc = await PDFDocument.load(base64of('pdfFromSvg.pdf'))
const imgPages = await pdfDoc.copyPage(imgPdfDoc, 0, N) // copy the first page and return an array of N pages
loop through my loop and call:
const pdfPage = pdfDoc.insertPage(idx, imgPages[idx])
do the specific rendering on the newly inserted 'pdfPage'

By inserting the same page, my tests show that for a backround image that repeats 70 times:

the processing time improves from 3 minutes to 10 seconds
and the size of the pdf decreases from 18 MB to 1MB

Regards,
Saeed

Duplicate issue #157: Feature Request: Remove duplicate objects in PDF
Created: 2019-08-07T21:05:30Z
I am creating a large PDF document that is essentially the same one PDF page repeated over multiple times with a little bit of text added to each page. The simplified code looks something like this:
  const originalPdfBytes = ...
  const pdfDoc = await PDFDocument.create();
  
  const pdfDoc2 = await PDFDocument.load(originalPdfBytes);
  pdfDoc2.getPages()[0].drawText('This is a page', { size: 13, color: rgb(0, 0, 0) });
  const [ copiedPage1 ] = await pdfDoc.copyPages(pdfDoc2, [0]);
  
  pdfDoc.addPage(copiedPage1);
  pdfDoc.addPage(copiedPage1);
  pdfDoc.addPage(copiedPage1);
  await pdfDoc.save();

Because each page adds all its own Objects to the new PDF document the size of the new document grows linearly.
Ideally added pages should be able to reuse existing Objects. Adding the same pdf page to the document should only make the final document grow by the size of the additional text and whatever references it needs to refer to the existing objects.
I've dug into this for a few hours now and have an inkling of an idea of the complexity involved. Just wondering if this is something on your roadmap and/or if you could give some pointers on implementing this myself in order to create a PR.

Closing comment (2019-12-27T17:58:51Z): Hello @thebenlamm! I've provided an updated version of my copy pages example in #47 (comment). My apologies for the (very) delayed response.
I'm planning to create official support for this in the future. Something like PDFPage.clone(), perhaps. This is being tracked in #169.
Repository: Hopding/pdf-lib

Issue #210: [Feature Request]: `opacity` option for `drawText()` method
Created: 2019-10-03T10:38:19Z
I want to draw text with opacity 50% but i can see i cannot pass alpha value in rgb()
function.
export const rgb = (red: number, green: number, blue: number): RGB => {
  assertRange(red, 'red', 0, 1);
  assertRange(green, 'green', 0, 1);
  assertRange(blue, 'blue', 0, 1);
  return { type: ColorTypes.RGB, red, green, blue };
};

 drawText(text: string, options: PDFPageDrawTextOptions = {}): void {
    assertIs(text, 'text', ['string']);
    assertOrUndefined(options.color, 'options.color', [[Object, 'Color']]);
    assertOrUndefined(options.font, 'options.font', [[PDFFont, 'PDFFont']]);
    assertOrUndefined(options.size, 'options.size', ['number']);
    assertOrUndefined(options.rotate, 'options.rotate', [[Object, 'Rotation']]);
    assertOrUndefined(options.xSkew, 'options.xSkew', [[Object, 'Rotation']]);
    assertOrUndefined(options.ySkew, 'options.ySkew', [[Object, 'Rotation']]);
    assertOrUndefined(options.x, 'options.x', ['number']);
    assertOrUndefined(options.y, 'options.y', ['number']);
    assertOrUndefined(options.lineHeight, 'options.lineHeight', ['number']);
    assertOrUndefined(options.maxWidth, 'options.maxWidth', ['number']);
    assertOrUndefined(options.wordBreaks, 'options.wordBreaks', [Array]);

    const [originalFont] = this.getFont();
    if (options.font) this.setFont(options.font);
    const [font, fontKey] = this.getFont();

    const fontSize = options.size || this.fontSize;

    const wordBreaks = options.wordBreaks || this.doc.defaultWordBreaks;
    const textWidth = (t: string) => font.widthOfTextAtSize(t, fontSize);
    const lines =
      options.maxWidth === undefined
        ? cleanText(text).split(/[\r\n\f]/)
        : breakTextIntoLines(text, wordBreaks, options.maxWidth, textWidth);

    const encodedLines = new Array(lines.length) as PDFHexString[];
    for (let idx = 0, len = lines.length; idx < len; idx++) {
      encodedLines[idx] = font.encodeText(lines[idx]);
    }

I cannot see how i can set opacity value.
Does this library support?
If not, it would be really nice if you consider it.

Duplicate issue #280: Transparent rect background
Created: 2019-12-26T14:52:31Z
Unable to set transparent background color to a rectangle.  Found only three color https://pdf-lib.js.org/docs/api/enums/colortypes
How I can set the transparent background color?

Closing comment (2019-12-26T15:30:05Z): Hello @prosenjit-manna! Adjusting the opacity of shapes (or text) is not currently possible with pdf-lib's high level APIs. This issue is currently being tracked in #210, so I'm going to close this one to keep things organized.
It's worth noting that it's not impossible to do this with pdf-lib. There just aren't any high level APIs for it. If you want to dig into some lower-level stuff, you can certainly achieve it. I'm afraid I don't have time to write up an example right now, but you could take a look at how pdfkit does this if you'd like to give it a shot: https://github.com/foliojs/pdfkit/blob/master/lib/mixins/color.js#L109-L144.
Repository: Hopding/pdf-lib

Issue #93: Reading text contents of page
Created: 2019-04-15T16:38:36Z
Hi, thanks for working on this project. It has met my needs beautifully with one exception (and it's probably a lack of understanding on my part).
I couldn't find a very intuitive way to get the contents of a page and verify its text content.
While generating a new page and inserting it into a document was very straight-forward, I'd like to also test this functionality, including that the expected contents end up on the page (it's dynamically generated). So when writing a test, I'd like to create a page, insert several lines of text, and then bring that page back in to verify that the expected lines of text exist on that page.
Am I overlooking something obvious, or are we lacking this functionality in a straight-forward way?
Thanks!

Duplicate issue #641: Extract text from existing PDF?
Created: 2020-10-21T01:06:30Z
Hello @Hopding,
I am trying to extract the (plain) text from existing PDF documents and stumbled upon this library after it turned out that the pdfjs-dist is not as portable as needed in my project.
Could you share a few quick pointers on what might be the best approach to find the text nodes and extract the values with your library?
I have already browsed the API docs but realized that (while they're very extensively covering the creation and extension of PDFs) the information on processing PDFs is rather scarce. I am guessing that I should iterate over all pages and then descend into the .node trees? I tried that out but quickly faced another problem: the most of the types (PDFDict, PDFObject, ...) in these trees seem to be missing in the d.ts file, which makes the drill-down pretty cumbersome and leaves me puzzled about the actual chances of success??
Thanks in advance.

Closing comment (2020-10-21T06:51:10Z): Duplicate of #93
Repository: Hopding/pdf-lib

Issue #233: [Feature Request]: Document decryption
Created: 2019-11-07T08:25:28Z
I would find it useful to support Encryption Handling as discussed in https://github.com/Hopding/pdf-lib#encryption-handling

Duplicate issue #624: Load and edit fillable pdf forms 
Created: 2020-10-08T16:33:39Z
Need to fil the encrypted pdf forms

Closing comment (2020-11-14T17:37:53Z): Support for loading encrypted PDFs is being tracked in #233.
Repository: HugoBlox/hugo-blox-builder

Issue #26: Filter by publication type (e.g. conference/journal)
Created: 2016-09-07T09:39:20Z
Hi
I was wondering if you could add this feature in http://mywebsite/publications page. I mean instead of sorting publications based on publication date, sort it based on publication type and within publication type, sort it base on publication date.

Duplicate issue #80: Plan to support publication categorization?
Created: 2017-01-02T20:54:29Z
Hi there,
I am gladly using this theme for my personal website. Thank you very much.
I'd like to suggest adding categorization of publications such "Conference", "Journal' and "Technical Report". Do you have any plan to add this feature?
Thanks again and happy new year :)

Closing comment (2017-01-02T20:57:47Z): This is a duplicate of #26
Repository: HugoBlox/hugo-blox-builder

Issue #1672: Order of author is not maintained in publication
Created: 2020-04-30T12:23:49Z
In a publication page, the ordered of the author list is not maintained. It is being shown in the alphabetical order.
Since this is a publication page, the order of the author list needs to be maintained
I am using academic version 4.8.

As you can see, in the index.md the authors are written in an order which is not followed.
Please help.

Duplicate issue #1678: Academic automatically sets the authors of a publication in alphabetical order
Created: 2020-05-01T18:36:37Z
Describe the bug
A clear and concise description of what the bug is.
Academic automatically sets the authors of a publication in alphabetical order and does not respect the order given in the markdown file
Technical details:
https://github.com/borghenry/mysite

Academic Version: 4.9
Hugo Version: 0.69.2
Browser/OS: Chrome

If applicable, add screenshots to help explain the issue.

Closing comment (2020-05-01T18:38:52Z): Duplicate of #1672
Repository: HugoBlox/hugo-blox-builder

Issue #351: about widget: Add support for linking to forum/chat/mailing-list
Created: 2017-10-24T02:22:28Z
See gonum/website#11.
We are using the academic theme for the https://gonum.org/ website and have a mail contact pointer to the google-groups page we use for development and user discussion. For practical reasons (avoiding spam) we ask people people (at least at first) to sign up with google groups/use the web client. This means that a mailto: scheme is incorrect for the URI we provide, but academic prefixes the URI with this scheme, giving us a link "mailto:https://groups.google.com/forum/#!forum/gonum-dev".
It could be said that we are holding it wrong, but a mailing list does seem appropriately signified with an envelope, and this is the only was that seems possible to achieve this. Are we missing an alternative, or if not, would a fix be considered? Two approaches are mentioned in the issue above, to allow configuration of the mail contact to not add a scheme, or add code to detect a scheme and not add one if it is present.

Duplicate issue #408: Add ability to use reCAPTCHA for email/contact
Created: 2017-12-14T06:10:08Z
It would be nice to have a way to integrate the use of reCAPTCHA to hide your email in the contact widget.
You can generate the reCAPTCHA link at the following address:
https://www.google.com/recaptcha/admin#mailhide
Currently, I have modified the contact.html widget to create another list item when $.Site.Params.email_link is set. I was thinking that you would simple paste the generated recaptcha <a href='"google.com/asdf">n...</a>@blah.com  link into their config.toml using a multi-line string literal.
Thanks,
Craig

Closing comment (2017-12-16T10:19:32Z): Duplicate of #351